Interview Question in SQL Server Configurations


 

Interview Question :: How launch the ASP.Net website on Internet


Hi,
i am beginer in ASP.Net........i developed an ASP.Net site..which runs on local machine........but when i upload the default.aspx file along with web.config,App_Web_3nqdctht.dll and Default.aspx.cs
when i run the my website on internet explorer then a page display but this is not my default page which displays som errors like :
Server Error in '/' Application.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

-----------
IIS,Visual Studio 2005,SQl Server2005 are installed on my PC.

------------
please solve my problem
Answers to "How launch the ASP.Net website on Internet"
RE: How launch the ASP.Net website on Internet?

You can find step by step guide on how to create a website at website like

http://oktutorial.com/webdesign.htm .

You can also earn from adsense using your website.
 
Vote for this answer ::  
RE: How launch the ASP.Net website on Internet?

First of all open the web.config file and locate the code for customerrors, then set the mode="Off". Now run your application by pressing F5 in Visual Studio 2005, this will display the code line error, means it will locate the line in C# code having error. Then alter the code as per error details and set the customerror mode="RemoteOnly"



The custom error mode has 3 vlaue types:

1. On: Always display custom (friendly) messages.

2. Off: Always display detailed ASP.NET error

3. RemoteOnly: Display custom (friendly) messages only to users not running on the local Web server.



RemoteOnly is used when you are hosting your web site on the web server.



Hope this will help you
 
Vote for this answer ::  
Update Alert Setting