SqlException (0x80131904): Unable to open the physical file

风流意气都作罢 提交于 2019-12-25 10:47:49

问题


I just deployed my website on IIS and fixed the connection to database via (LocalDB).\IIS_DB in my Web.config file for the connection string.

These 2 links for what i said above,

Using LocalDB with Full IIS, Part 1: User Profile,

Using LocalDB with Full IIS, Part 2: Instance Ownership

Everything works well

When i accessed the starting page which is set for Login.aspx, what i set in Default Document in IIS i could login with an account found from the database. But now when i accessed another page named AdminPanel.aspx i got this error down below..

I tried searching over stackoverflow to look for solutions but nothing seems to solve this error..

My web.config file from my publised website on IIS

Appreciate any help please.. I'm guessing this is the last error before i complete my school project - Publishing WebSite onto IIS to allow other computer in my network to access my site.. Thank you!


回答1:


Check your SQL DB, the MDF file that you are connecting is already present in DB server. Attach MDF file don't need the DB created in DB server.

Check your DB connection string.



来源:https://stackoverflow.com/questions/45370107/sqlexception-0x80131904-unable-to-open-the-physical-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!