My web applications embeds a 'windows controls' application in it which requires the following settings on each client machine to give 'FullTrust' to my web application on 'Machine' level code:
1. From the Start menu, point to Administrative Tools, and then click
Microsoft .NET Framework 2.0 Configuration.
If you don't have Administrative Tools on the Start menu, from the
Control Panel open Administrative Tools, and then double-click Microsoft .NET Framework 2.0 Configuration.
2. Under My Computer, expand the Runtime Security Policy node, the
Machine node, Code Groups node, the All_Code node, and then right-click the
All_Code node and click New to open the Create Code Group dialog box.
3. Name the new code group 'MY WEB APPLICATION NAME', and then click Next.
4. Select a 'Site' membership condition from the drop down box
5. Under 'Site name' type in the URL to my web application
Give 'FullTrust' permission set and click Finish
7. To apply the new settings, close and restart Internet Explorer
Now the problem is that I cannot expect every client to do the above settings manually on their system, so how would I do the above settings at client's end through my website without the client side user not getting involved in this messy business?
It is not possible for the server side code to force the client side web browser to trust web server – security restriction – web application should not do anything bad on clients.
Hmm, What about using CasPol.exe to Fully Trust a website? This may simplify your operations.
Please run the following code in command line.
%windir%\Microsoft.NET\Framework\v2.0.50727\caspol -quiet -m -ag All_Code -url "http://localhost/*" FullTrust
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.
That's a great way of saving hassle from going step by step over the phone to the client and create a node.
Now, is there anyway I can have some kinda dialog box saying out about Terms n conditions etc. asking fro client's permission to run the code and if they click on yes then this command line creates a code behind it for thepage until the next windows control
page appear?
Windows Script Host will let you access to the windows command-line by script. But it's restricted and unsafe.
I suggest you guide user through a demonstrate picture on how this embedded 'windows controls' works.
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.
Is there anyway I can capture values from text labels and datarow from the global variables defined within the 'windows control' and access it on my web application on which the 'windows control' is embedded?
This privacy information will not send by browser. One approach may be use
embed Activex control. But this technology is not support in FireFox 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.
UmerTahir
Member
183 Points
66 Posts
How to create Configure Security Settings for web application?
Oct 09, 2007 11:37 AM|LINK
Hi,
My web applications embeds a 'windows controls' application in it which requires the following settings on each client machine to give 'FullTrust' to my web application on 'Machine' level code:
1. From the Start menu, point to Administrative Tools, and then click Microsoft .NET Framework 2.0 Configuration.
If you don't have Administrative Tools on the Start menu, from the Control Panel open Administrative Tools, and then double-click Microsoft .NET Framework 2.0 Configuration.
2. Under My Computer, expand the Runtime Security Policy node, the Machine node, Code Groups node, the All_Code node, and then right-click the All_Code node and click New to open the Create Code Group dialog box.
3. Name the new code group 'MY WEB APPLICATION NAME', and then click Next.
4. Select a 'Site' membership condition from the drop down box
5. Under 'Site name' type in the URL to my web application
7. To apply the new settings, close and restart Internet Explorer
Now the problem is that I cannot expect every client to do the above settings manually on their system, so how would I do the above settings at client's end through my website without the client side user not getting involved in this messy business?
Any suggestion will be much appreciated.
Thanks
Umer
XiaoYong Dai...
All-Star
38310 Points
4229 Posts
Re: How to create Configure Security Settings for web application?
Oct 11, 2007 05:40 AM|LINK
Hi
It is not possible for the server side code to force the client side web browser to trust web server – security restriction – web application should not do anything bad on clients.
Hmm, What about using CasPol.exe to Fully Trust a website? This may simplify your operations.
Please run the following code in command line.
%windir%\Microsoft.NET\Framework\v2.0.50727\caspol -quiet -m -ag All_Code -url "http://localhost/*" FullTrust
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.
UmerTahir
Member
183 Points
66 Posts
Re: How to create Configure Security Settings for web application?
Oct 11, 2007 02:25 PM|LINK
Hey Xiao,
That's a great way of saving hassle from going step by step over the phone to the client and create a node.
Now, is there anyway I can have some kinda dialog box saying out about Terms n conditions etc. asking fro client's permission to run the code and if they click on yes then this command line creates a code behind it for thepage until the next windows control page appear?
Thanks for your reply.
Umer
XiaoYong Dai...
All-Star
38310 Points
4229 Posts
Re: How to create Configure Security Settings for web application?
Oct 12, 2007 06:11 AM|LINK
Hi
Windows Script Host will let you access to the windows command-line by script. But it's restricted and unsafe.
I suggest you guide user through a demonstrate picture on how this embedded 'windows controls' works.
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.
UmerTahir
Member
183 Points
66 Posts
Re: How to create Configure Security Settings for web application?
Oct 30, 2007 03:57 PM|LINK
Is there anyway I can capture values from text labels and datarow from the global variables defined within the 'windows control' and access it on my web application on which the 'windows control' is embedded?
Thanks
Umer
XiaoYong Dai...
All-Star
38310 Points
4229 Posts
Re: How to create Configure Security Settings for web application?
Oct 31, 2007 02:37 AM|LINK
Hi
This privacy information will not send by browser. One approach may be use embed Activex control. But this technology is not support in FireFox browser.
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.
UmerTahir
Member
183 Points
66 Posts
Re: How to create Configure Security Settings for web application?
Oct 31, 2007 11:17 AM|LINK
Are there any examples of embeded Activex Control?
Thanks