views:

67

answers:

2

I have a web service that creates files on the server. It works great locally. As soon as I deploy the service to the shared host, it hangs. No exception is caught in the front end web site. When I inspect the folder where it should have written a file, I see the file written with 0 bytes.

Is this a permissions issue?

Any help is appreciated

EDIT: The exception I get is: An existing connection was forcibly closed by the remote host

A: 

I don't think it's about permissions. Because you can create a file. I think your issue is about getting the data that will be written into the file. If you're posting a file into server, maybe your max request length is exceeding.

Canavar
I added the <httpRuntime maxRequestLength="2097151"/> in the web.config but the error persists
A: 

There are separate create and modify permissions in windows. You could be creating the file but not able to write to it but that would be unusual. Remember that the ID running the webserver needs permissions not you.

rerun