troubleshooting Question

Access to the path is denied.

Avatar of dcmorrell
dcmorrell asked on
Microsoft IIS Web Server.NET ProgrammingASP.NET
4 Comments1 Solution618 ViewsLast Modified:
I have a webpage with the following process that executes during a page load:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim writer As New StreamWriter("\\websrv\Inetpub\wwwroot\kmlTest\hello.txt")
        writer.Write("Why hullo thar")
    End Sub

As you can see, I'm attempting to write to folder being held on another server in my local network. When I access the page, I get the following error:

Access to the path '\\websrv\Inetpub\wwwroot\kmlTest\hello.txt' is denied.

I immediately knew this would be corrected by going to the folder kmlTest on the webSrv and granting the correct permission(s). I granted the user "Network Service" permission with full control and no luck. I have tried to add so many different users but I still can't figure out way it is denying.

I would sincerely appreciate any efforts to help with this problem!
SharePoint Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros