I have a WCF service with the following lines of code:
WebClient Client = new WebClient();
Stream strm = Client.OpenRead(fPath); < -- Exception Occurs exactly here
Everything works great when I am hosting the service via the ASP.NET Development server, but when I publish the service to IIS, the following runtime error is thrown:
The underlying connection was closed: The connection was closed unexpectedly.\r\n at System.Net.WebClient.OpenRead(Uri address)
As stated, the program opens the file without any problems when the service is hosted in the ASP.NET development server. When hosted in IIS, an exception is thrown at the location specified above. I thought that it might be an issue of security,
so I went berserk in permission granting. I sort of ruled that out at this point as every group has full access and the exception is still being thrown.
Any assistance on this would be greatly appreciated...
View Complete Post