10-27-2011 08:29 AM
Hi,
I created C# apllication in Visual Studio .NET which is compiled as class library with user control. I put on my control some label, textbox and button and add them event handing functions. Then I placed this my userform control on html page using the object tag (for example: <object id="ctrl1" classid="http:dotnetclass.dll#dotnetclass.myControl" width="400" height="200">no control</object>). After publish this on the web using by IIS it works fine and I see my control with standard .NET framework's buttons, labels,... But if I place on this control some UI control from Meas.Studio (LED, ScatterGraph,...), and I put it into the web dir I can't see my control. I googled that all depending assemblies should be in the same dir as my class dll. I put in this dir all referenced NI assemblies and also .licx file. But it didn't help.
My goal is to create an application where I would like to use NI controls to present data read from sql server. I will deploy my application on the web server and clients will use Internet Explorer to host my application. (I have also oter ODBC security permissions problem on client machine, but it is for other forum 🙂
Thanks.
Robert.
Note: Here are few links which I used to create simple control hosted in IE browser.
http://www.15seconds.com/issue/030610.htm
http://msdn.microsoft.com/en-us/magazine/cc301932.aspx
http://flylib.com/books/en/3.59.1.112/1/
http://www.c-sharpcorner.com/UploadFile/dsandor/ActiveXInNet11102005040748AM/ActiveXInNet.aspx
Btw, I had no success to host user control in IE when I did it in VS2010. When I did the same in VS.NET it works fine.
10-31-2011 02:37 PM
Hi Robert,
I hope you are doing well today! Could you tell us what version of Internet Explorer you are using? Also, are you receiving any errors when trying to view these Measurement Studio UI controls, or are the controls simply missing from your user interface? Also, can you run your solution on the host machine without error?
One thing you could try is upgrading to the latest version of Internet Explorer. I have attached a link to this below. Please try upgrading and let us know if you still have this same behavior. Thanks, Robert! Have a great day!
Internet Explorer - Web Browser for Microsoft Windows
10-31-2011 04:21 PM
Unfortunately, various problems occur when running applications with the latest versions of any web browser. It is not uncommon for web based applications to break with new releases of Internet Explorer. Currently Measurement Studio 2010 SP1 and prior do not support Internet Explorer 9.
To expand on what Taylor requested, what version of IE are you using? And sometimes problems may occur with specific control styles. Are there particular control styles that are not working, or are all the control styles not working? Have you tried Internet Explorer compatiblilty view?
11-02-2011 07:07 AM
Hi Taylor,
Thanks for answer. I use Internet Explorer 6.0 with SP3. If I create the new release dll without NI UI controls then I see the main form of my control with buttons and labels on the web page. If I add some LED or ScatterGraph control on this panel and do the new release dll then I can't see my control on web page. I see in the browser only empty square with little icon in the corner, similar as you see in the case off missing picture on web page. I can't see my control with other buttons, it looks like if assembly is bad. Also I don't receive any errors and controls are not missing because I can't see any user interface. My host machine and development machine are the same PC. I simply created virtual directory on IIS and navigate it to release dir of my .NET project. I know that I am trying it on old browser but this is standard in our company. We are changing it to the newer version (IE 😎 but many clients still use version 6. I will try this on IE 8 and will see...
Thanks.
Robert.
11-03-2011 02:09 PM
This sounds like a common issue for Measurement Studio applications when they cannot find MESA.DLL. This can manifest as controls with a 3D style not rendering (without errors). Make sure that your web form has access to MESA.DLL (this is typically installed in C:\Program Files (x86)\National Instruments\Shared\Mesa). Another way to verify this is to change your control styles from 3D to non-3D.