migrated and error occured

Discussion in 'ASP.NET 2.0' started by vagelis, Sep 28, 2010.

  1. i have migrated today and i receive this error at this time

    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>










    i did that(insert <customErrors mode="Off"/> in the web config but nothing happens)

    in localhost i play with the new connection string to database
    so the problem is not from database..
     
  2. Go in your web.config and find the section that says:

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

    Make sure it says:

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

    Not Correcct:
    <customErrors mode="Off" defaultRedirect="mycustompage.htm"/>

    Correct!!!!!!!:
    <customErrors mode="Off"/>

    Try it out and let us know it still gives you errors.
     
  3. i post the whole web config..

    <?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>
    <connectionStrings>
    <add name="ConnectionString" connectionString="server=(local);database=CutechatStandalone;uid=test;pwd=test"/>
    </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.
    -->
    <customErrors mode="Off"/>
    <globalization culture="el-GR" uiCulture="el-GR" requestEncoding="windows-1253" responseEncoding="windows-1253" fileEncoding="windows-1253"/>
    <httpModules>
    <add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
    </httpModules>
    <compilation debug="false" strict="false" explicit="true">
    <assemblies>
    <!--<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
    <pages enableViewStateMac="true">
    <namespaces>
    <clear/>
    <add namespace="System"/>
    <add namespace="System.Collections"/>
    <add namespace="System.Collections.Specialized"/>
    <add namespace="System.Configuration"/>
    <add namespace="System.Text"/>
    <add namespace="System.Text.RegularExpressions"/>
    <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>
    </pages>
    <!--
    The <authentication> section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.
    -->
    <authentication mode="Forms">
    <forms loginUrl="login.aspx" cookieless="UseCookies" timeout="35000" name="myappauth"/>
    </authentication>
    <machineKey validationKey="..." validation="SHA1" decryption="AES"/>

    </system.web>
    </configuration>
     
  4. I took a few moments to check out your account, and I can tell you with the settings are not changed on the server.

    I'd have to make sure you're uploading your files to the new UK server, using the following address:

    eweb702.discountasp.net

    Also, the connection string you're using is:

    <add name="ConnectionString" connectionString="server=(local);database=Cutechat Standalone;uid=test;pwd=test"/>

    That will work fine in your local environment, but it doesn't work on the hosting account as that's not the connection string we provided in our control panel. This connection string is from your local computer and you must update it to use the SQL server we provided in order for it to work.
     
  5. i dont use this conection string
    it was to test a chat from cute soft

    i removed it to be sure before 30 seconds and the same again..

    where have i to put the eweb702.discountasp.net??
     
  6. <?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>

    <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.
    -->
    <customErrors mode="Off"/>
    <globalization culture="el-GR" uiCulture="el-GR" requestEncoding="windows-1253" responseEncoding="windows-1253" fileEncoding="windows-1253"/>
    <httpModules>
    <add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
    </httpModules>
    <compilation debug="false" strict="false" explicit="true">
    <assemblies>

    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
    <pages enableViewStateMac="true">
    <namespaces>
    <clear/>
    <add namespace="System"/>
    <add namespace="System.Collections"/>
    <add namespace="System.Collections.Specialized"/>
    <add namespace="System.Configuration"/>
    <add namespace="System.Text"/>
    <add namespace="System.Text.RegularExpressions"/>
    <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>
    </pages>
    <!--
    The <authentication> section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.
    -->
    <authentication mode="Forms">
    <forms loginUrl="login.aspx" cookieless="UseCookies" timeout="35000" name="myappauth"/>
    </authentication>
    <machineKey validationKey="..." decryptionKey="..." validation="SHA1" decryption="AES"/>

    </system.web>
    </configuration>
     
  7. I don't think you're uploading to the right server, as I checked your settings, and nothing has changed. I'll have to recommend you use "eweb702.discountasp.net" in your FTP client, or whatever client you're using to upload. This makes sure you're connecting to the new server where you'll be uploading your files.
     
  8. where exactly have i to eshtablish that??


    in my visual studio i have server: www.paokeisai.com
    port:21
    passive mode
    username :
    password:
     
  9. ok i changed the www.paokeisai.com with eweb702.discountasp.net
    i tranferred the web config
    and i have that
    Login failed for user 'SQL2005_750385_vagelis_user'.
     
  10. the connection string is
    Data Source=tcp:esql2k502.discountasp.net;Initial Catalog=SQL2005_750385_vagelis;User ID=SQL2005_750385_vagelis_user;Password=...;
     
  11. ok fixed..
    thank you!!
     
  12. Great to hear everything is working fine now!
     

Share This Page