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")
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!