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. error in asp.net application

error in asp.net application

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadmincsharpasp-net
16 Posts 3 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.
  • B Offline
    B Offline
    bapu2889
    wrote on last edited by
    #1

    hello I am studying asp.net and I have one assignment to create small content management system still I am not getting any were but now I have used VWD help to find out about it but it's not the same thing i am looking for but I found WebPartManager control so I read that artical and then start droping controls on web page and follow all the instrutions but now I am getting this SQL Error and I have no idea where it comes from because there is not even a single sql database in this application at this stage but I am going to use it after getting that stage, on web form there is one WebPartManager control two WebPartZone but if i remove this two controls and then i try to run application then it runs without any problem and this is the error as bellow :confused::confused::confused::confused: Server Error in '/TestWebSite' Application. -------------------------------------------------------------------------------- A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. SQLExpress database file auto-creation error: The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database: If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist. If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database alr

    A 1 Reply Last reply
    0
    • B bapu2889

      hello I am studying asp.net and I have one assignment to create small content management system still I am not getting any were but now I have used VWD help to find out about it but it's not the same thing i am looking for but I found WebPartManager control so I read that artical and then start droping controls on web page and follow all the instrutions but now I am getting this SQL Error and I have no idea where it comes from because there is not even a single sql database in this application at this stage but I am going to use it after getting that stage, on web form there is one WebPartManager control two WebPartZone but if i remove this two controls and then i try to run application then it runs without any problem and this is the error as bellow :confused::confused::confused::confused: Server Error in '/TestWebSite' Application. -------------------------------------------------------------------------------- A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. SQLExpress database file auto-creation error: The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database: If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist. If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database alr

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

      Do you have SQL Server Express install in your system ? Web part used Personalization purpose and its need to data base to store user personalized data. Introduction to Web Parts[^] and Read This[^]

      cheers, Abhijit

      B 1 Reply Last reply
      0
      • A Abhijit Jana

        Do you have SQL Server Express install in your system ? Web part used Personalization purpose and its need to data base to store user personalized data. Introduction to Web Parts[^] and Read This[^]

        cheers, Abhijit

        B Offline
        B Offline
        bapu2889
        wrote on last edited by
        #3

        hello thanks for your kind rep. yes i have SQL SERVER EXPRESS installed on my computer and SQL SERVER it self is working ok waiting for rep. have a nice day

        N 1 Reply Last reply
        0
        • B bapu2889

          hello thanks for your kind rep. yes i have SQL SERVER EXPRESS installed on my computer and SQL SERVER it self is working ok waiting for rep. have a nice day

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Did you run aspnet_regsql?


          only two letters away from being an asset

          B 2 Replies Last reply
          0
          • N Not Active

            Did you run aspnet_regsql?


            only two letters away from being an asset

            B Offline
            B Offline
            bapu2889
            wrote on last edited by
            #5

            Hello sir Thanks for your rep. what is it and how do i run it ? waiting for your kind rep. have a nice day

            A 1 Reply Last reply
            0
            • N Not Active

              Did you run aspnet_regsql?


              only two letters away from being an asset

              B Offline
              B Offline
              bapu2889
              wrote on last edited by
              #6

              Yes I found that exe and I ran it and I have selected all the defaults and then finished but still it's same error waiting for your kind rep. have a nice day

              A 1 Reply Last reply
              0
              • B bapu2889

                Hello sir Thanks for your rep. what is it and how do i run it ? waiting for your kind rep. have a nice day

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

                As I have already told you web parts need SQL Express to store personalized and membership information. This is ASP.NET SQL Server Registration Tool (Aspnet_regsql.exe) aspnet_regsql command is used to create all the tables and procedure for that membership and personalization information to that database. You can Explore aspnet_regsql Here[^] To Run C:\%windir%\Microsoft.NET\Framework\\aspnet_regsql.exe A wizerd will come , and you just follow the steps and then run your application with web parts !!! let us know if any issue !!

                cheers, Abhijit

                modified on Wednesday, December 24, 2008 10:22 AM

                1 Reply Last reply
                0
                • B bapu2889

                  Yes I found that exe and I ran it and I have selected all the defaults and then finished but still it's same error waiting for your kind rep. have a nice day

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

                  Did you check my answer ? If yes which database did you select on that wizards ? Did you given the same databases at connection string? Even try with a new application !!!

                  cheers, Abhijit

                  B 1 Reply Last reply
                  0
                  • A Abhijit Jana

                    Did you check my answer ? If yes which database did you select on that wizards ? Did you given the same databases at connection string? Even try with a new application !!!

                    cheers, Abhijit

                    B Offline
                    B Offline
                    bapu2889
                    wrote on last edited by
                    #9

                    as i said i have seleted all the defaults, and at this time i dont have any database in my application waiting for your kind rep.

                    A 1 Reply Last reply
                    0
                    • B bapu2889

                      as i said i have seleted all the defaults, and at this time i dont have any database in my application waiting for your kind rep.

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

                      Did you read This[^] , Link that I have already provided to you. This will clears your doubts !!

                      cheers, Abhijit

                      B 1 Reply Last reply
                      0
                      • A Abhijit Jana

                        Did you read This[^] , Link that I have already provided to you. This will clears your doubts !!

                        cheers, Abhijit

                        B Offline
                        B Offline
                        bapu2889
                        wrote on last edited by
                        #11

                        thanks again yes i have read it but i am using VWD express 2005 edition so there is no command prompt so i have drill down to the exe. file and just double clicked it and wizard started and i have seleted all the defauls but still i dont know what to do waiting for your rep. have a nice day

                        A 1 Reply Last reply
                        0
                        • B bapu2889

                          thanks again yes i have read it but i am using VWD express 2005 edition so there is no command prompt so i have drill down to the exe. file and just double clicked it and wizard started and i have seleted all the defauls but still i dont know what to do waiting for your rep. have a nice day

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

                          Ohhh... Soryy about that.... that's not from command prompt. you have to run for Framework dir C:\%windir%\Microsoft.NET\Framework\\aspnet_regsql.exe When you run that command, In first screen , do nothing , Next -> in second screen Give the database server name and Authentication Settings and Select Database from database list [ Create a new database first then Select that one ] . Then Next , Then Finished . That's All !!! Hurry up man !!! Its Times for :beer: !!!

                          cheers, Abhijit

                          B 1 Reply Last reply
                          0
                          • A Abhijit Jana

                            Ohhh... Soryy about that.... that's not from command prompt. you have to run for Framework dir C:\%windir%\Microsoft.NET\Framework\\aspnet_regsql.exe When you run that command, In first screen , do nothing , Next -> in second screen Give the database server name and Authentication Settings and Select Database from database list [ Create a new database first then Select that one ] . Then Next , Then Finished . That's All !!! Hurry up man !!! Its Times for :beer: !!!

                            cheers, Abhijit

                            B Offline
                            B Offline
                            bapu2889
                            wrote on last edited by
                            #13

                            Hello sir I have created new database from SQL SERVER 2005 EXPRESS (Test database)and then start that wizard and then select Test database from listbox and then finish but my friend still it's same error :confused::confused::confused: waiting for your kind rep. I know it's time to beer :)

                            A 1 Reply Last reply
                            0
                            • B bapu2889

                              Hello sir I have created new database from SQL SERVER 2005 EXPRESS (Test database)and then start that wizard and then select Test database from listbox and then finish but my friend still it's same error :confused::confused::confused: waiting for your kind rep. I know it's time to beer :)

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

                              In my system, I am having VS Prof and SQL Server Ent. Edition. I have just create sample application, its working fine !!!! Are you trying with same application ? or have made a new after the database installation. What about the connection string !!! Ref1[^] Ref2[^] Merry XMAS Still Hanging in Office .... Still some pending task..... but :~ :beer: I have to sign off very soon !!!!

                              cheers :beer:, Abhijit

                              B 1 Reply Last reply
                              0
                              • A Abhijit Jana

                                In my system, I am having VS Prof and SQL Server Ent. Edition. I have just create sample application, its working fine !!!! Are you trying with same application ? or have made a new after the database installation. What about the connection string !!! Ref1[^] Ref2[^] Merry XMAS Still Hanging in Office .... Still some pending task..... but :~ :beer: I have to sign off very soon !!!!

                                cheers :beer:, Abhijit

                                B Offline
                                B Offline
                                bapu2889
                                wrote on last edited by
                                #15

                                hello thanks for your rep. yes i have tried with different application and which connection string? because there is no database in this application so could you please tell me about this if you have time today othervise 2more no problem have a nice x-mas and new year to you :rose: thanks for your help I will keep trying today but if i have same problem then i will let you know 2more is that ok with you waiting for your kind rep.

                                A 1 Reply Last reply
                                0
                                • B bapu2889

                                  hello thanks for your rep. yes i have tried with different application and which connection string? because there is no database in this application so could you please tell me about this if you have time today othervise 2more no problem have a nice x-mas and new year to you :rose: thanks for your help I will keep trying today but if i have same problem then i will let you know 2more is that ok with you waiting for your kind rep.

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

                                  yes sure.. 2morrow . Just signed off.. Enjoy Christmas !!!

                                  cheers :beer:, Abhijit

                                  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