error in asp.net application
-
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
-
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
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
-
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
-
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
Did you run aspnet_regsql?
only two letters away from being an asset
-
Did you run aspnet_regsql?
only two letters away from being an asset
-
Did you run aspnet_regsql?
only two letters away from being an asset
-
Hello sir Thanks for your rep. what is it and how do i run it ? waiting for your kind rep. have a nice day
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 RunC:\%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
-
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
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
-
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
-
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.
-
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
-
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
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
-
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
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 :)
-
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 :)
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
-
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
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.
-
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.
yes sure.. 2morrow . Just signed off.. Enjoy Christmas !!!
cheers :beer:, Abhijit