Re: Web Service - System.UnauthorizedAccessException

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Eric Fintel (efintel_at_glasstech.com)
Date: 02/19/04


Date: Thu, 19 Feb 2004 06:46:07 -0800

I agree, but I'm not sure how or where to look. To complicate things a little this web service is running on a server with Sharepoint Portal 2003 Server and Windows Sharepoint Services installed.

Regards,
Eric Fintel
     
     ----- Ken Onweller (.NET MCSD) wrote: -----
     
     sounds like you need to increase the trust granted to either the intranet
     domain entirely, or at least to your
     webservice dll, specifically.
     
     
     "Eric Fintel" <efintel@glasstech.com> wrote in message
     news:95189CB1-EA38-4026-A9AD-022E8B45E4D7@microsoft.com...
> I am in the process of developing a webservice which copies files from a
     supplied UNC path to a supplied Sharepoint website. The problem I am having
     is accessing the files on the UNC path to a remote machine within the same
     domain and on the same network. The error is
     System.UnauthorizedAccessException "Access to the path
     '\\server\sharename\folder' is denied. If the UNC path points to a folder
     on the server running the Web Service everything is fine. For test purposes
     the group "everyone" has full access to both the UNC Share and the full path
     to the documents to be copied. I have tried various "<Impersonate />" and
     "new NetworkCredential" without success.
>> I'm using the System.IO namespace to access the files on the given UNC
     path.
>> Any help on this problem will be greatly appreciated.
> Eric Fintel
> efintel@glasstech.com
     
     
     



Relevant Pages

  • RE: Sharepoint Profile Update
    ... I actually found a site with a clear answer on how to get a web service into ... Here is the disassembled code of it(which accept a SpSite as ... code is not the server with central admin or the shared service provider. ... Subject: Sharepoint Profile Update ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: XML/XSL and SharePoint
    ... 'Use the web service to find the appropiate program' to find.. ... "Microsoft Windows SharePoint Services technology ... open source server such as Tomcat? ... about Tomcat than MS SharePoint..). ...
    (comp.lang.java.help)
  • Re: Unable to pass credentials to webservice
    ... I did this by placing the webservices on the same server as Sharepoint. ... Mahesh ... > I have a web service that checks user credentials prior to executing. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Web Service - System.UnauthorizedAccessException
    ... here's one of the best explanations of setting up Code Access Security I've ... Server and Windows Sharepoint Services installed. ... > supplied UNC path to a supplied Sharepoint website. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: SharePoint and Company Web not working
    ... How did you install the SharePoint 3.0, side by side install or In-place ... If you made in-place upgrade for companyweb, you must uninstall SharePoint ... Select Windows Small Business Server 2003, ...
    (microsoft.public.windows.server.sbs)