Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hi,
I have uploaded my website.But it is not pulling up.Its showing an error

Server Error in '/' Application.O many times,I have changed my web.config file.I have also used custom error tag there on my web.config.but still iam getting the same error.
Here web.config file code:


<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionstrings>

    <add name="ApplicationServices" connectionstring="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true">
      providerName="System.Data.SqlClient" />
    <add name="DotnetadherentsString" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=E:\dotnetadherents.in\dotnetadherents\App_Data\dotnetadherents.mdf;Integrated Security=True;User Instance=True">
      providerName="System.Data.SqlClient" />
    <add name="ConnectionString1" connectionstring="Data Source=.\SQLEXPRESS;AttachDbFilename=E:\simplycode.com\simplycode\App_Data\Database.mdf;Integrated Security=True;User Instance=True">
      providerName="System.Data.SqlClient" />
    <add name="ConnectionString" connectionstring="Data Source=184.168.47.10;User Id=myadherents_123;Password=Stoneman2305#;">
      providerName="System.Data.SqlClient" />
    <add name="simplycodeEntities" connectionstring="metadata=res://*/App_Code.Model.csdl|res://*/App_Code.Model.ssdl|res://*/App_Code.Model.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\simplycode.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=True"">
      providerName="System.Data.EntityClient" />
    <add name="ConnectionString2" connectionstring="Expression: ForumsConnectionString">
      providerName="System.Data.SqlClient" />
  </add></add></add></add></add></add></connectionstrings>
  <system.webserver>
    <httperrors errormode="Detailed" />
    <asp scripterrorsenttobrowser="true" />
  </system.webserver>
  <system.web>
    <customerrors mode="Off" />
    <compilation debug="true" />
    

    <compilation debug="true" targetframework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
      <buildproviders>
        <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
      </buildproviders>
    </compilation>
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>
    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionstringname="ApplicationServices" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="false" requiresuniqueemail="false" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/" />
      </providers>
    </membership>
    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionstringname="ApplicationServices" applicationname="/" />
      </providers>
    </profile>
    <rolemanager enabled="false">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionstringname="ApplicationServices" applicationname="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationname="/" />
      </providers>
    </rolemanager>
  </system.web>
  <system.webserver>
   
    <modules runallmanagedmodulesforallrequests="true" />
  </system.webserver>
</configuration>
Posted
Updated 23-Dec-13 8:06am
v2
Comments
Nagaraj Muthuchamy 24-Dec-13 0:11am    
Check all connection settings in web.config.
Posting the screen shot of error message will help to know more details about error.
Nandakishore G N 24-Dec-13 2:07am    
are you sure the error is in web.config file?
[no name] 24-Dec-13 2:10am    
Here is the error.

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">




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">


1 solution

 
Share this answer
 

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