Unable to Auto-Create ASPNETDB.MDF - Visual Web Developer Express 2008 / SQL Express 2008

后端 未结 1 1104
天涯浪人
天涯浪人 2021-01-24 17:20

I Recently began learning ASP.net / SQL. I Installed Sql Server 2008R2 Express Edition; and Visual Web Designer 2008 Express Edition. I recently tried to create a login page and

相关标签:
1条回答
  • 2021-01-24 18:04

    I Was able to get it working! Things worth mentioning / thinking about if your debugging the same issue.

    When connecting to databases i would have to use Localhost\ As opposed to an instance. If you do as well and cannot connect properly and have the error listed above then install a named instance (install sql server and when you get to the Instance menu, dont use "default" use a named instance - i used SQLExpress) I also changed the fact that before i would use only "windows authentication" for logging on to my server and when i re-installed i allowed "Mixed" instead.

    Those were the only changes i made that actually allowed my Database to be automatically created the way i needed it to.

    also in web.config change the authentication section to "Forms" instead of "Window.

    also be sure that your visual web developer has the correct SQL instance in visual web developer (i used 2008) go to - Tools -> options -> Click the show all settings box at the bottom left -> database tools -> Data connections -> SQL Server instance should have the Same name as the instance you installed prior.

    These should handle the error 26 you get when trying to use a login page for the first time. Other helpful links were posted in this page: Creating .MDF With SQL 2008 EXPRESS/ Visual Web Developer 2008

    0 讨论(0)
提交回复
热议问题