server error

Discussion in 'ASP.NET 2.0' started by rouazene, May 13, 2005.

  1. All files are there. It was working locally. Do I need to make any changes to the web.comfig file?
     
  2. when I deployed Personal web Site starter kit to discountAsp.net I get the error below</o:p>
    Server Error in '/' Application.</o:p>
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /Default.aspx
     
  3. This is a 404 error (file not found), check your web space and make sure all the files are there for your application.
     
  4. Here is web.config





    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">


    <connectionStrings>


    <add name="Personal" connectionString="Data Source=mssql09.discountasp.net; initial Catalog=DB_150347; User ID=pcsupportsu; Password=??????" providerName="System.Data.SqlClient"/>


    <remove name="LocalSqlServer"/>


    <add name="LocalSqlServer" connectionString="Data Source=mssql09.discountasp.net; initial Catalog=DB_150347; User ID=pcsupportsu; Password=??????/"/>


    </connectionStrings>


    <system.web>


    <pages styleSheetTheme="White"/>


    <customErrors mode="RemoteOnly"/>


    <compilation debug="true" urlLinePragmas="true"/>


    <authentication mode="Forms">


    <forms loginUrl="Default.aspx" protection="Validation" timeout="300"/>


    </authentication>


    <authorization>


    <allow users="*"/>


    </authorization>


    <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>


    <roleManager enabled="true"/>


    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">


    <providers>


    <add name="XmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>


    </providers>


    </siteMap>


    </system.web>


    <location path="Admin">


    <system.web>


    <authorization>


    <allow roles="Administrators"/>


    <deny users="*"/>


    </authorization>


    </system.web>


    </location>


    </configuration>

    Post Edited (quaz) : 5/18/2005 3:40:34 AM GMT
     
  5. The web.config looks fine, can you post your URL so we can see the error?
     
  6. 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".





    Code:
    <!-- 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.





    Code:
    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>
     
  7. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    quaz - follow the instructions on the generic error page to see the detailed error.

    DiscountASP.NET
    http://www.DiscountASP.NET
     

Share This Page