| re: Program works on localhost but not on server
A legendary and notorious error... best thing to do is to forget your app
(for now) and just upload a "hello world" aspx; the default one for a new
web project would suffice. If this doesn't work, then you know it isn't your
code.
I've mainly seen this when there have been permissions issues in an app
pool - i.e. the app-pool account was not correctly configured to e.g. run as
a service, etc, or didn't have NTFS permissions to the folder. Unfortunately
it is a right pain to resolve and debug, as IIRC as soon as it falls over it
suspends that app pool until reset at the server - so changing the files
isn't going to help. You may wish to review the event logs on the server if
you have access (or ask someone who does) to see if any clues are there.
More info on the server (i.e. which version of IIS, app pools, etc) might
help prompt some suggestions?
Marc |