Click here to Skip to main content
14,699,491 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every one i developed an website using the .net version 4.0 in c#, i published the website and uploaded it to the hosting server.

when i try to view my site online its showing me 500 internal server Error,initially when i upload any other simple html file its working.

No problem with the dotnet version also my vendor supports 4.0.the vendor informed that there are multiple start files i dont index.aspx,default.aspx(Master Page) how can i point out which file will run first.?
i dont know how to get out of this problem please any one help.
Updated 5-Jun-20 22:37pm
Ankur\m/ 20-Jul-12 2:07am
As CG said, the IIS is not configured properly. Check the event logs, you may have some more details there.
ashok_89 20-Jul-12 2:12am
Dear Sir
do u mean that i should set the IIS configuration properly in my local machine or in my hosting server

This means IIS is not configured properly. You set which file starts first in the IIS settings.
Ganesh Kumar Kaki 20-Jul-12 2:06am
Yes what he said is right. Go for the IIS setting and change the default startup page
ashok_89 20-Jul-12 2:08am
Dear Sir
do u mean that i should set the IIS configuration properly in my local machine or in my hosting server.
Christian Graus 20-Jul-12 2:13am
Why on earth would changing your local settings, where it works, fix your hosting server, where it doesn't ? Your hosting server IIS settings are wrong.
ashok_89 20-Jul-12 2:17am
Sir My hosting server is with my vendor where their IIS points to the Default.aspx as the starting page. If i create an create an simple HTML page named "Default.aspx " for testing and upload it to the server its working fine .But my website is not working PLs help me out sir
Christian Graus 20-Jul-12 2:26am
Honestly, either you did not deploy the site properly or IIS is not set up properly. That's all there is. We can't tell you how to fix it based on a generic error and none of your code. What I've told you is all anyone can work out. We'd need a lot more info, probably more than you can easily give in a forum reply, to give you exact steps. That's why it's called programming, sometimes you can get general advice, but you still need to be smart enough to work it out yourself.
The server encountered an internal error or misconfiguration and was unable to complete your request.

For fixing this error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.

they can trace the exact reason for the error. Correcting the error may require recoding program logic for the Web server software, which could take some time.

Please see following article:[^]

On server priority is defined for start file. please check if all your required files are listed there ?

Secondly you said that html is working fine. So create one simple application with single button and try on the server(try this with Dot net version 2.0 and 4.0).

Basically this is issue with locating your webpage. if you are using domain name then try with IP address if DNS is not resolved.

Let us know if this is not working.

After Many suggestions i found that there was an file named app_offline with some extension extension i just removed the file .Then it started Working.Thanks for all of ur suggestions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900