Program works on localhost but not on server

  • Thread starter Thread starter Morrison
  • Start date Start date
M

Morrison

My HelloWorld program works on localhost but not on server. I have 2
hello world applications, one in VS 2003 and other in VS 2005. Both
programs is working on my computer but if I uppload it on server it
doesn't work. Message is "Server Error in '/' Application.". My web
hosting provider say that they have included NET Framework 2.0 (i don't

know is that means that 1.1 is included automaticly). I uploaded all
directory with subdirectories of both programs, but it doesn't work on
server. What is problem?

Thanx
 
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
 
Back
Top