webconfig error in webhosting server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavanip
    New Member
    • Mar 2008
    • 53

    #1

    webconfig error in webhosting server

    I placed my asp.net code in my server and i placed my database stuff in web hosting server.I created a virtual directory in web hosting server to access my files from my server.I have written the code in webconfig file like this
    <connectionStri ngs><remove name="LocalSqlS erver"/>
    <add name="localsqls erver" connectionStrin g="Data Source=mssql302 .ixwebhosting.c om;Initial Catalog=Eminoso _yellowebsite;U ser ID=loginid;Pass word=password" providerName="S ystem.Data.SqlC lient"/></connectionStrin gs>
    when i run this local its working but when i am trying to run using website server address i am getting webconfig error.
    "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><cu stomErrors mode="Off"/></system.web></configuration>"

    can you please help me how to resolve this ixwebhosting problem.

    Thanks in advance
    pavani
  • nukefusion
    Recognized Expert New Member
    • Mar 2008
    • 221

    #2
    Well it's not telling you much at the moment other than some sort of error occurred. It might be an idea to do what it says to allow access to a more meaningful error message which would then allow you to debug the problem.

    Edit your web.config file and add or merge the following:

    Code:
    <configuration>
        <system.web>
             <customErrors mode="Off"/>
        </system.web>
    </configuration>"
    Run again and you should get some details on the real error.

    Comment

    • pavanip
      New Member
      • Mar 2008
      • 53

      #3
      webconfig error in web hosting server

      I tried that way also.i tried with custom error mode On, Off,Remoteonly
      For above all i am getting the same error.when i put html file in that folder it is opening correctly, that is the error for only aspx pages.

      Comment

      Working...