Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. webconfig error in webhosting server

webconfig error in webhosting server

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasesysadmin
21 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Abhijit Jana

    First all, your config file is not in your post. second , did you install .NET Framework on database server?

    cheers, Abhijit

    P Offline
    P Offline
    pavanip
    wrote on last edited by
    #3

    connectionstring add name="localsqlserver" connectionstring="Data Source=mssql302.ixwebhosting.com;Initial Catalog=Eminoso_yellowebsite;User ID=xxxx;Password=xxxx" providername="System.Data.SqlClient" This is my web config file.And i installed .net framework in serevr. thank u i am waiting for your reply.

    A P 2 Replies Last reply
    0
    • P pavanip

      connectionstring add name="localsqlserver" connectionstring="Data Source=mssql302.ixwebhosting.com;Initial Catalog=Eminoso_yellowebsite;User ID=xxxx;Password=xxxx" providername="System.Data.SqlClient" This is my web config file.And i installed .net framework in serevr. thank u i am waiting for your reply.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #4

      Still same problem. Just do one thing while posting web.config code, please select "Ignore HTML tags in this message (good for code snippets)" check box in the bottom of editor !!!

      cheers, Abhijit

      1 Reply Last reply
      0
      • P pavanip

        connectionstring add name="localsqlserver" connectionstring="Data Source=mssql302.ixwebhosting.com;Initial Catalog=Eminoso_yellowebsite;User ID=xxxx;Password=xxxx" providername="System.Data.SqlClient" This is my web config file.And i installed .net framework in serevr. thank u i am waiting for your reply.

        P Offline
        P Offline
        pavanip
        wrote on last edited by
        #5

        ok.Sorry for the inconvinience.this is my config file

        A 1 Reply Last reply
        0
        • P pavanip

          ok.Sorry for the inconvinience.this is my config file

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #6

          <remove name="LocalSqlServer"/> why are you using this ? cheers, Abhijit

          P 1 Reply Last reply
          0
          • A Abhijit Jana

            <remove name="LocalSqlServer"/> why are you using this ? cheers, Abhijit

            P Offline
            P Offline
            pavanip
            wrote on last edited by
            #7

            ok. i removed that name.now also i am getting same error.

            A 1 Reply Last reply
            0
            • P pavanip

              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 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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". " can you please help me how to resolve this ixwebhosting problem. Thanks in advance pavani

              P Offline
              P Offline
              Paddy Boyd
              wrote on last edited by
              #8

              Have you tried doing what the message suggests and changing the error settings to permit you to see the actual error remotely?

              P 1 Reply Last reply
              0
              • P pavanip

                ok. i removed that name.now also i am getting same error.

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #9

                How did you deploy the side ? Did you published it first then deploy or what ?

                cheers, Abhijit

                P 1 Reply Last reply
                0
                • P Paddy Boyd

                  Have you tried doing what the message suggests and changing the error settings to permit you to see the actual error remotely?

                  P Offline
                  P Offline
                  pavanip
                  wrote on last edited by
                  #10

                  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.

                  M 1 Reply Last reply
                  0
                  • A Abhijit Jana

                    How did you deploy the side ? Did you published it first then deploy or what ?

                    cheers, Abhijit

                    P Offline
                    P Offline
                    pavanip
                    wrote on last edited by
                    #11

                    I directly deployed, didn't publish it

                    A 1 Reply Last reply
                    0
                    • P pavanip

                      I directly deployed, didn't publish it

                      A Offline
                      A Offline
                      Abhijit Jana
                      wrote on last edited by
                      #12

                      pavanip wrote:

                      I directly deployed, didn't publish it

                      Just do one thing, Publish it from VS. then copy the Precompiled Web into IIS , then create virtual Directory . Hope that will resolve your problem. Good luck !!

                      cheers, Abhijit

                      P 1 Reply Last reply
                      0
                      • A Abhijit Jana

                        pavanip wrote:

                        I directly deployed, didn't publish it

                        Just do one thing, Publish it from VS. then copy the Precompiled Web into IIS , then create virtual Directory . Hope that will resolve your problem. Good luck !!

                        cheers, Abhijit

                        P Offline
                        P Offline
                        pavanip
                        wrote on last edited by
                        #13

                        ok. I will try it.Thanks for your quick response.

                        A 1 Reply Last reply
                        0
                        • P pavanip

                          ok. I will try it.Thanks for your quick response.

                          A Offline
                          A Offline
                          Abhijit Jana
                          wrote on last edited by
                          #14

                          Please let me know when done !!!

                          cheers, Abhijit

                          P 1 Reply Last reply
                          0
                          • A Abhijit Jana

                            Please let me know when done !!!

                            cheers, Abhijit

                            P Offline
                            P Offline
                            pavanip
                            wrote on last edited by
                            #15

                            I tried you suggested way.Now web config error is not coming but aspx pages are not opening.only html are displying.

                            A 1 Reply Last reply
                            0
                            • P pavanip

                              I tried you suggested way.Now web config error is not coming but aspx pages are not opening.only html are displying.

                              A Offline
                              A Offline
                              Abhijit Jana
                              wrote on last edited by
                              #16

                              :omg: :wtf:

                              pavanip wrote:

                              but aspx pages are not opening.only html are displying.

                              Why ? Is there any error coming ? Please verify the path for aspx page. It will work fine !!!

                              cheers, Abhijit

                              P P 2 Replies Last reply
                              0
                              • A Abhijit Jana

                                :omg: :wtf:

                                pavanip wrote:

                                but aspx pages are not opening.only html are displying.

                                Why ? Is there any error coming ? Please verify the path for aspx page. It will work fine !!!

                                cheers, Abhijit

                                P Offline
                                P Offline
                                Paddy Boyd
                                wrote on last edited by
                                #17

                                By which he maybe means he's getting the error first described... Plain HTML page will open fine, as it's not suffering from the same problem as the .net pages...

                                1 Reply Last reply
                                0
                                • A Abhijit Jana

                                  :omg: :wtf:

                                  pavanip wrote:

                                  but aspx pages are not opening.only html are displying.

                                  Why ? Is there any error coming ? Please verify the path for aspx page. It will work fine !!!

                                  cheers, Abhijit

                                  P Offline
                                  P Offline
                                  pavanip
                                  wrote on last edited by
                                  #18

                                  thanks for your great response. When i open aspx pages "page can not be displayed error is coming". i followed these steps to create virtual directory in web hosting server web options->select domain->web directories settings->Add->we directory name,web directory path(virtual directory path),Authentication level(Anonymous access),Execute permissions(scripts and Executables),and Allow read access. I set these settings for virtual directory.if anything wrong in that can you please tell me the procedure to create virtual directory Or can i change any other setting in hosting server?

                                  1 Reply Last reply
                                  0
                                  • P pavanip

                                    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.

                                    M Offline
                                    M Offline
                                    Ma tju
                                    wrote on last edited by
                                    #19

                                    Make sure you select the correct asp.net version under Default Web Site Properties, ASP.NET tab, ASP.NET version

                                    ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

                                    P 2 Replies Last reply
                                    0
                                    • M Ma tju

                                      Make sure you select the correct asp.net version under Default Web Site Properties, ASP.NET tab, ASP.NET version

                                      ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

                                      P Offline
                                      P Offline
                                      pavanip
                                      wrote on last edited by
                                      #20

                                      I checked in my hosting server,I used the correct aspnet version in hosting server.

                                      1 Reply Last reply
                                      0
                                      • M Ma tju

                                        Make sure you select the correct asp.net version under Default Web Site Properties, ASP.NET tab, ASP.NET version

                                        ma tju Pengaturcara Perisian Subang Jaya,Selangor, Malaysia Ring Master SB MVP 2008 ;p Subang Jaya MOP (Otai)

                                        P Offline
                                        P Offline
                                        pavanip
                                        wrote on last edited by
                                        #21

                                        I am telling my special thanks to Abjit jana,Paddy boyd and ma Tju. i solved my problem with your suggestions. Problem with complilation in my visual studio.I tried it from some other system its working. I am very thankful to codeproject.

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups