Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

System.Security.SecurityException  Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael [Multnomah] - 05 May 2005 17:20 GMT
Hello All,

I have built and deployed a .NET web service to a web server
[DBADMIN-DEV1].  Then, I created a C# console application wrapper
around this web service to pass the parameters from the command line.
When I run this console EXE LOCALLY calling the web service on the
remote machine, it works fine.  When I copy the EXE to the remove web
server where the web service is running and run it LOCALLY on the web
server, it runs fine.  But now I have created a share with a UNC path,
so I can call the EXE directly on the remote machine from anywhere,
without having to maintain a local copy of the EXE.  So, I try to make
this call:

\\dbadmin-dev1\multco_console_remedy\multco_console_remedy.exe param1
param2 param3 ...

BUT I get the following security error:

ERROR: System.Security.SecurityException: Request for the permission of
type System.Net.WebPermission, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
  at
System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet
grantedSet, PermissionSet deniedSet, CodeAccessPermission demand,
PermissionToken permToken)

What permissions or changes do I need to make on the web service or
console app to allow remote execution?
Yunus Emre ALPÖZEN [MCAD.NET] - 05 May 2005 20:27 GMT
Using .NET configuration tool you may set network zone as trusted. But it is
not an acceptable solution, i know. I would like to ask u what about calling
web service dynamic discovery or static discovery is used....

Signature

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

> Hello All,
>
[quoted text clipped - 24 lines]
> What permissions or changes do I need to make on the web service or
> console app to allow remote execution?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.