Security Issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a console application which run fine on my workstation. I
have move the code to a shared drive and I have created a "bat" file which
will invoke the application. When I double click on this file and attempt to
run, I get a security error. If I log on to the shared drive an run it from
there, then it runs just fine.

So what do I need to do so that I can runn the application from a shared
drive rather then having to log on to the server which owns the shared drive?

Thanks!!
 
Hi,

Have you tried impersonation?

http://www.dotnet247.com/247reference/msgs/28/144136.aspx

Ken
--------------
I have created a console application which run fine on my workstation. I
have move the code to a shared drive and I have created a "bat" file which
will invoke the application. When I double click on this file and attempt
to
run, I get a security error. If I log on to the shared drive an run it from
there, then it runs just fine.

So what do I need to do so that I can runn the application from a shared
drive rather then having to log on to the server which owns the shared
drive?

Thanks!!
 
Is this for both windows and ASP.Net environments? I am running the
application in the windows environment and the provided references the
ASP.Net features...but pehaps they can be used in both environments????
 
Jim,
By default shared drives are not "trusted" by the framework as any one can
place an executable on the shared drive, hence it could contain a virus...

You can use "Control Panel - Administrative Tools - Microsoft .NET Framework
Configuration" to adjust the settings.

For an overview of using the above tool see:

http://msdn.microsoft.com/library/d...ide/html/cpconsecuritypolicyconfiguration.asp

I would consider using Group Policy to deploy the new settings to all
desktops.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top