.net security

Sriniahcc
Sriniahcc used Ask the Experts™
on
I have the following code in the form load event of a c# windows app written in .net 2.0.
string website = "http://test/test.html"
            System.Diagnostics.Process.Start("iexplore.exe", website);
            this.Close();

When I invoke the executable which is located in the network drive I get the following message,

Application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission, contact your system administrator, or use the Microsoft .NET Framework Configuration tool.

When I clicked the details button I saw the exceptions and at the end I have the following error.

The action that failed was:
LinkDemand
The type of the first permission that failed was:
System.Security.PermissionSet
The Zone of the assembly that failed was:
Intranet
What do I need to do to avoid this security error?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You can configure the permissions via Start > Admin Tools > .NET Configuration Tool or using the command line

http://www.west-wind.com/WebLog/posts/275.aspx

to get the .net config tool, you need to have the .net 2.0 sdk (comes with visual studio).

http://www.microsoft.com/downloads/details.aspx?FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en

Author

Commented:
I am sorry if my question was not clear enough.  I knew I had to use .NET Configuration Tool but I didn't know what to configure to stop getting that error.
The first link explains it pretty well I think. http://www.west-wind.com/WebLog/posts/275.aspx

Author

Commented:
Thanks for your reply.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial