A network-related or instance-specific error occurred while establishing a connection to SQL Server

后端 未结 4 1390
梦谈多话
梦谈多话 2021-01-24 01:09

I HOST MY ASP.NET WEBSITE ON WEBSERVER ..But after upload when i try to access my site ...

http://www.vbi.volvobusesindia.com

Then following error occurs ....

4条回答
  •  故里飘歌
    2021-01-24 01:39

    I saw on you other post before they closed it that may have held the key to your problem. I noticed your server was saying cannot find "C:\Users\Ashis..."

    It looks to me like your server is using client side code to get the path to the database. Therefore the browser is always looking on the "clients" machine.

    You need to use server side script, something like Server.MapPath("mydbname") (c# syntax) to get path of the database.

提交回复
热议问题