On the client machine where in which the contol is gettting loaded , we can see the contol dll file (WindowsControlLibrary1.dll) in the temporary internet files.
But on the machine, where in which control is not getting loaded , we can not see the control dll file in the temporary internet files.Instead it will be like "WindowsControlLibrary1.dll#WindowsControlLibrary1.UserControl1". without any extension.
I think its problem with content downloading from the server (not because of CAS blocking the control.)
We have one server (OS :Windows 2003 server).It has a virtual host to host a web site.(built on .net 1.1 and VS 2003).
If, we access this server form some of the system, the control is not getting loaded in the page.
The client machine OS is Windows 2000.
But on this client machine, if we access some other servers which have the same control, then the control is getting loaded.
This means, it may not be an issue with Code Access Security.
Hi
Since that control is granted the Full permission to do what it needs to do. I think there is some problem for the control to get download in your client browser.
Best Regards
XiaoYong Dai
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
well Code Acess Security is set on the client m/c and once full trust is set for all code this automatically takes care of the zone policy and there by browser security policy doesn't affect the loading of control. To justify this, the same client is able
to load the control from a different server.
Windows2003 Server - client was unable to load the control from WindowsXP server the client m/c was able to load the same control
however one observation was made: once the Use Http 1.1 settings was unchecked the client m/c was able to load the control from the W2003 server as well
I thing you need to include the virtue directory in "classid" attribute in order for the client browser to download the control, A more efficient way is register the WindowsControlLibrary1.dll in GAC using C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe
(.NET 1.1 is similar C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools)
I've made some local test and it seems that if this UserControl is not well registered on your Win2003 server, will also failed to render and here is the solution might help, (Test on my Win2003 server with VS 2005 and it works well)
<div mce_keep="true">Open the property page of WindowsControlLibrary1 project in VS IDE, on Application panel, </div>
<div mce_keep="true">click the “Assembly Information…” button and check "Make assembly COM-Visible" option. </div>
<div mce_keep="true">then on Build panel, check Register for COM interop option. Build your UserControl again.</div>
<div mce_keep="true">Open OleView.Exe in C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\ and expand nodes "Object Classes"->"Grouped by Component Category"->".NET category", (.NET 1.1 is similar)</div>
<div mce_keep="true">Right click on "WindowsControlLibrary1.UserControl1" node, choose ->Copy HTML tag to Clipboard</div>
<div mce_keep="true">Package the components of the application into a CAB file, This CAB file will also contain an INF file that is used for installing your ActiveX control</div>
<div mce_keep="true">I assume that you'll have the following code in your test page (generate a different classid).</div>
At last, Please make sure your Internet Explorer security policy allows Activex and will not displays information like "This website wants to run the following add-on......."
Hope the above information helps
Best Regards
XiaoYong Dai
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
naveen1382
0 Points
3 Posts
aspx page fails to load a control in the page
Dec 10, 2007 10:22 AM|LINK
Hi All,
i have one windows control (Windows control Lib Project type).Built on .Net 1.1 and VS 2003 . This control is added in a page like object.
This control access the system resources like(FileOpenDialog, etc).
We have given FullTrust for All_Code group at machine level on a one of the test machine.
Control get loaded and everything works fine.
But its failing in one specific scenario.
We have one server (OS :Windows 2003 server).It has a virtual host to host a web site.(built on .net 1.1 and VS 2003).
If, we access this server form some of the system, the control is not getting loaded in the page.
The client machine OS is Windows 2000.
But on this client machine, if we access some other servers which have the same control, then the control is getting loaded.
This means, it may not be an issue with Code Access Security.
[All_Code-FullTrust-MachineLevel, has been given for all tests on every client machine].
we have added the control object in the we page as below.
<object id="MyWinControl" classid="http:WindowsControlLibrary1.dll#WindowsControlLibrary1.UserControl1"
height="100" width="300" VIEWASTEXT/></object>
On the client machine where in which the contol is gettting loaded , we can see the contol dll file (WindowsControlLibrary1.dll) in the temporary internet files.
But on the machine, where in which control is not getting loaded , we can not see the control dll file in the temporary internet files.Instead it will be like "WindowsControlLibrary1.dll#WindowsControlLibrary1.UserControl1". without any extension.
I think its problem with content downloading from the server (not because of CAS blocking the control.)
Web site is hosted on Virtual host.
Can any body, help me in some solving this issue.
XiaoYong Dai...
All-Star
38310 Points
4229 Posts
Re: aspx page fails to load a control in the page
Dec 12, 2007 06:46 AM|LINK
Hi
Since that control is granted the Full permission to do what it needs to do. I think there is some problem for the control to get download in your client browser.
If some of the client could not load this control from server, can you make adjustments to the client machine security policy like this? http://technet2.microsoft.com/WindowsServer/en/library/910d7a79-fd6f-447e-9bb1-bc9e57d54ec41033.mspx?mfr=true
XiaoYong Dai
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
naveen1382
0 Points
3 Posts
Re: aspx page fails to load a control in the page
Dec 13, 2007 09:48 AM|LINK
hi,
well Code Acess Security is set on the client m/c and once full trust is set for all code this automatically takes care of the zone policy and there by browser security policy doesn't affect the loading of control. To justify this, the same client is able to load the control from a different server.
Windows2003 Server - client was unable to load the control from WindowsXP server the client m/c was able to load the same control
however one observation was made: once the Use Http 1.1 settings was unchecked the client m/c was able to load the control from the W2003 server as well
Any suggestions regarding this issue.
XiaoYong Dai...
All-Star
38310 Points
4229 Posts
Re: aspx page fails to load a control in the page
Dec 14, 2007 07:21 AM|LINK
Hi
I thing you need to include the virtue directory in "classid" attribute in order for the client browser to download the control, A more efficient way is register the WindowsControlLibrary1.dll in GAC using C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe (.NET 1.1 is similar C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools)
http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx
I've made some local test and it seems that if this UserControl is not well registered on your Win2003 server, will also failed to render and here is the solution might help, (Test on my Win2003 server with VS 2005 and it works well)
<body bgcolor="#223344">
<object id="UserControl1" classid="clsid:6024AC3D-1499-3348-AD3E-FA368B0E537C" CODEBASE="../installcab/Install.cab" height="100" width="400" VIEWASTEXT>
<span style="color: red">ActiveX control doesn't register</span>
</object>
</body>
At last, Please make sure your Internet Explorer security policy allows Activex and will not displays information like "This website wants to run the following add-on......."
Hope the above information helps
XiaoYong Dai
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.