Link to home
Start Free TrialLog in
Avatar of DAL_Group
DAL_GroupFlag for United States of America

asked on

Problem When i host asp.net project

I have asp.net & vb.net Project it work fine in my local laptop but when i host it in ixwebhosting i have problem you can try it www.sudantrade.gov.sd the problem is :-

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

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

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


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

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

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

That page is the default error page for an application in error it contains no specific information about your problem. You should check the logs on the server if you are able to see if your error has been written or do your own logging to discover the actual problem.
Avatar of DAL_Group

ASKER

How do i do my own logging to discover the actual problem.

this is the log i found it:-

#Software: H-Sphere log plugin
#Date: 2009-04-26 01:31:01
#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes time-taken cs-version cs(User-Agent) cs(Cookie) cs(Referer)
2009-04-26 01:31:01 208.80.195.39 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3256 143 47 HTTP/1.0 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; LocalNet3) - -
2009-04-26 01:32:17 65.55.106.236 - W3SVC282 IIS318 98.131.160.227 80 GET /robots.txt - 404 2 1704 198 0 HTTP/1.1 msnbot/2.0b ( http://search.msn.com/msnbot.htm) - -
2009-04-26 01:49:43 41.209.77.241 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3261 479 47 HTTP/1.0 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) - -
2009-04-26 02:05:32 66.249.71.48 - W3SVC282 IIS318 98.131.160.227 80 GET /robots.txt - 404 2 1704 262 0 HTTP/1.1 Mozilla/5.0 (compatible; Googlebot/2.1;  http://www.google.com/bot.html) - -
2009-04-26 02:05:32 66.249.71.48 - W3SVC282 IIS318 98.131.160.227 80 GET /newsdetils.asp field=tech_enews&id=11|-|0|404_Not_Found 404 0 1723 272 31 HTTP/1.1 Mozilla/5.0 (compatible; Googlebot/2.1;  http://www.google.com/bot.html) - -
2009-04-26 03:02:46 38.99.44.108 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3256 193 531 HTTP/1.0 Mozilla/5.0 (Twiceler-0.9 http://www.cuil.com/twiceler/robot.html) - -
2009-04-26 03:09:57 88.252.246.171 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 257 1218 HTTP/1.1 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322) - -
2009-04-26 03:09:57 88.252.246.171 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 257 1063 HTTP/1.1 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322) - -
2009-04-26 03:57:32 65.55.51.70 - W3SVC282 IIS318 98.131.160.227 80 GET /robots.txt - 404 2 1704 198 125 HTTP/1.1 msnbot/2.0b ( http://search.msn.com/msnbot.htm) - -
2009-04-26 05:34:27 41.209.76.194 - W3SVC282 IIS318 98.131.160.227 80 GET /ARABIC/information1.htm - 404 2 1728 746 156 HTTP/1.0 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) - http://search.msn.com/results.aspx?srch=106&FORM=AS6&q=ÙÆزارة Ø§Ùتجارة اÙخارجÙ`Ø© جÙ&Ù!ÙÆرÙ`Ø© اÙسÙÆداÙ
2009-04-26 05:34:57 41.209.76.194 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3261 449 188 HTTP/1.0 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) - -
2009-04-26 05:35:07 67.18.18.210 - W3SVC282 IIS318 98.131.160.227 80 GET /guestbook.asp |-|0|404_Not_Found 404 0 1723 234 0 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 - -
2009-04-26 05:35:07 67.18.18.210 - W3SVC282 IIS318 98.131.160.227 80 GET /guestbook.asp |-|0|404_Not_Found 404 0 1723 234 141 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 - -
2009-04-26 05:45:25 41.209.76.194 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3261 546 3234 HTTP/1.0 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) - http://search.msn.com/results.aspx?srch=106&FORM=AS6&q=Ministry of Foreign Trade sudan
2009-04-26 06:28:33 66.249.71.48 - W3SVC282 IIS318 98.131.160.227 80 GET /callus.htm - 404 2 1704 295 0 HTTP/1.1 Mozilla/5.0 (compatible; Googlebot/2.1;  http://www.google.com/bot.html) - -
2009-04-26 06:47:02 41.202.178.8 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 385 3016 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) - -
2009-04-26 06:47:03 41.202.178.8 - W3SVC282 IIS318 98.131.160.227 80 GET /favicon.ico - 404 2 1704 366 0 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) - -
2009-04-26 06:47:06 41.202.178.8 - W3SVC282 IIS318 98.131.160.227 80 GET /favicon.ico - 404 2 1704 396 0 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) - -
2009-04-26 06:47:09 41.202.178.8 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 428 15 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) - -
2009-04-26 06:47:30 41.202.178.8 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 428 63 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) - -
2009-04-26 06:50:07 41.202.178.8 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 385 47 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) - -
2009-04-26 06:50:10 41.202.178.8 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 428 16 HTTP/1.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) - -
2009-04-26 07:17:06 196.202.23.92 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 260 297 HTTP/1.1 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) - http://www.dalil.sd/fr1.php?sd=81&sel=56
2009-04-26 07:19:27 124.254.86.38 - W3SVC282 IIS318 98.131.160.227 80 GET /Default.aspx - 500 0 3237 463 46 HTTP/1.1 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0) - https://www.experts-exchange.com/questions/24356134/Problem-When-i-host-asp-net-project.html
That is your IIS log and doesn't contain errors, only logs of visitors. You should delete that post as it contains information that shouldn't be that easily found.
Have you got a web.config file? If so then do what it tells you on the page just to see what the error is.

(Quote)
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
(End Quote)
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Open in new window

this is my config file:

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
      <configSections>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                              <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        </sectionGroup>
                  </sectionGroup>
            </sectionGroup>
      </configSections>
      <appSettings/>
      <connectionStrings/>
      <system.web>
            <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions
            where data loss can occur.
            Set explicit="true" to force declaration of all variables.
        -->
            <compilation debug="true" strict="false" explicit="true">
                  <assemblies>
                        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                  </assemblies>
            </compilation>
            <pages>
                  <namespaces>
                        <clear/>
                        <add namespace="System"/>
                        <add namespace="System.Collections"/>
                        <add namespace="System.Collections.Generic"/>
                        <add namespace="System.Collections.Specialized"/>
                        <add namespace="System.Configuration"/>
                        <add namespace="System.Text"/>
                        <add namespace="System.Text.RegularExpressions"/>
                        <add namespace="System.Linq"/>
                        <add namespace="System.Xml.Linq"/>
                        <add namespace="System.Web"/>
                        <add namespace="System.Web.Caching"/>
                        <add namespace="System.Web.SessionState"/>
                        <add namespace="System.Web.Security"/>
                        <add namespace="System.Web.Profile"/>
                        <add namespace="System.Web.UI"/>
                        <add namespace="System.Web.UI.WebControls"/>
                        <add namespace="System.Web.UI.WebControls.WebParts"/>
                        <add namespace="System.Web.UI.HtmlControls"/>
                  </namespaces>
                  <controls>
                        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                  </controls>
            </pages>
            <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
            <authentication mode="Windows"/>
            <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
            <httpHandlers>
                  <remove verb="*" path="*.asmx"/>
                  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                  <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                  <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            </httpHandlers>
            <httpModules>
                  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </httpModules>
      </system.web>
      <system.codedom>
            <compilers>
                  <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="WarnAsError" value="false"/>
                  </compiler>
                  <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="OptionInfer" value="true"/>
                        <providerOption name="WarnAsError" value="false"/>
                  </compiler>
            </compilers>
      </system.codedom>
      <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
      <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                  <remove name="ScriptModule"/>
                  <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </modules>
            <handlers>
                  <remove name="WebServiceHandlerFactory-Integrated"/>
                  <remove name="ScriptHandlerFactory"/>
                  <remove name="ScriptHandlerFactoryAppServices"/>
                  <remove name="ScriptResource"/>
                  <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                  <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                  <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </handlers>
      </system.webServer>
      <runtime>
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                  <dependentAssembly>
                        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
                  </dependentAssembly>
                  <dependentAssembly>
                        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
                  </dependentAssembly>
            </assemblyBinding>
      </runtime>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
ASKER CERTIFIED SOLUTION
Avatar of gsalier
gsalier

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial