Connection to SQL server files (*.mdf) require SQL express 2005 to function properly. please verify the installation of the component or download fromhttp://go.microsoft.com/fwlink/?linkid=49251
I AM GOING TO RIP MY HAIR OUT WITH THIS PROBLEM. I have reinstalled both sql server express 2005 and VWD about 5 times with the same problem. please, please, please someone throw me a bone here and help me resolve this problem.
When I create a new EMPTY website and I rightclick on my website in the solution explorer and choose add item, I chooe SQL Database, I give it a name 'database.mdf' and click add. I get the following message:
you are attempting to add a database to an asp.net application. for a database to be gfenerally consumable in your site, it should be placed inside the 'app_data' folder. would you like to place the database inside the 'app_data' folder? I click YES (I know this message is normal)
then I get the following message:
Connection to SQL server files (*.mdf) require SQL express 2005 to function properly. please verify the installation of the component or download fromhttp://go.microsoft.com/fwlink/?linkid=49251
I can add anything else but this damn mdf file.
thanks for all your help in advance.
FYI to anyone who has had this problem and cannot find a resolution. I have found the solution in a another forum:
Not yet rated
Rating:
Thanks Jeffrey, the problem turned out to be a problem in Visual Studio
with an incorrect setting.
What I did was go into Tools, Options, Database Tools, Data Connections.
UnderSQLServer Instance Name (blank for default) i had the following
in there: MyComputerName\SQLEXPRESS
I changed it to the following: SQLEXPRESS
I also tested it just leaving it blank and working too.
Of course I would love to say a favorite end user quote "I never changed
it", but I'm too geeky to know that.
Happy Coding!
Brian Piesik
Thanksbigdbingo, for this valuable post