Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everybody,
I make a web application in asp.net c#. now i am going to host it. i purchase myLittleAdmin 3.7 for sql server 2008.
The main issue is when i upload website and when i write domain name in browser address bar then i found this error

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.


I googled alot but no conclusion please help me why this error is coming. it is my first time for hosting.
Thanks alot
Posted
Updated 1-Nov-12 18:40pm
v2
Comments
Shanalal Kasim 2-Nov-12 0:41am    
please provide full error details

hi,

Try by including below in your web.config file

XML
<system.web>
    <customErrors mode="On" defaultRedirect="~/error">
        <error statusCode="404" redirect="~/404" />
    </customErrors>
</system.web>



With this, include the below part too

XML
<system.webServer>
    <httpErrors errorMode="Custom" >
        <remove statusCode="404" subStatusCode="-1"/>
        <error statusCode="404" path="/404" responseMode="ExecuteURL" />
    </httpErrors>
</system.webServer>


regards
sarva
 
Share this answer
 
Comments
veenusethi 2-Nov-12 0:53am    
I write this code and then upload web config file then it is showing default page blank
Sarrrva 2-Nov-12 4:27am    
Above code prevent from any Errors in your web applications. but there is a real problem for resource or path not found... please find your web site appropriate path in IIS... and then correct it
regards
sarva
Sarrrva 4-Nov-12 22:57pm    
then you should set target framework in IIS like 2.0, 3.5, 4.0 and so on.

regards
sarva
just open your website in first in Croma when default page open then right click on the page and click on insect element and see what error be catch there..if there is no error then open this site in firefox and see the error may be its give error like xml purse...
try this and tell what is the problem...
Thank You
 
Share this answer
 
Comments
Yatin chauhan 2-Nov-12 1:14am    
have you open this in firefox..!!
veenusethi 2-Nov-12 1:14am    
when i off custom error then this error is occured

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
veenusethi 2-Nov-12 1:15am    
yes i open this in firefox

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



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