How to fix error ::Format of the initialization string does not conform to specification starting at index 0::

后端 未结 18 1966
一向
一向 2020-11-30 11:04

I uploaded my site on godaddy shared host. I can access this database from my management studio. I can\'t access this database from my site

18条回答
  •  日久生厌
    2020-11-30 11:42

    I was having the same issue when accessing a published ASP.NET Web Api. In my case, I realized that when I was about to publish the Web Api, I had not indicated a connection string inside the Databases section:

    So I generated it using the three dot button, and after publishing, it worked.

    What is weird, is that for a long time I am pretty sure that there was no connection string in that configuration but it still worked.

提交回复
热议问题