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 / November 2004

Tip: Looking for answers? Try searching our database.

Virtual directories and Web Services

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
steve - 12 Nov 2004 05:43 GMT
Could anyone help with the following?

I have an web application that has a regular ASP.Net interface and a Web
service interface. Bot the the ASP.NET and Web Serivce do very little before
passing control into a common Class Library (C#).

Both methods work fine accessing a virtual directory on the local web
server, however if I redirect the virtual directory to a share on another
computer, requests (for example File.exist)  orignating from the ASP.NET are
OK, but the web service requests  are refused. Do web services run under a
different account or do I need to do something different ?
Signature

Any help truly appreciated.

Dan Rogers - 16 Nov 2004 22:16 GMT
I hope I can help.

Code that is running in the CLR, such as ASP.NET web services uses policy
based .NET security.  This is a new, value-add addition to the web
programming stack that any .NET based code will need to work with.

By default, requests coming in from an unauthorized user are not given any
permissions to access files, create directories or call system code.  The
programmers of your web services, if they need to do this, have to add in
the appropriate code access security attributes and use strongly named
assemblies to get the CLR to "break out of the sandbox" - so to speak.

For a primer, search in MSDN on "code access security" and read about how
it works, how administrators get to choose the level of security on a
policy basis, and how developers declaratively add in requests for certain
explicit permissions in their code.

I hope this helps

Dan Rogers
Microsoft Corporation

--------------------
>Thread-Topic: Virtual directories and Web Services
>thread-index: AcTIenlnW7xtgKeUQFqLLMTEISf3aQ==
[quoted text clipped - 17 lines]
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26491
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 9 lines]
>OK, but the web service requests  are refused. Do web services run under a
>different account or do I need to do something different ?

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.