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

后端 未结 18 1976
一向
一向 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:53

    It might help to see what the actual connection string is. Add to Global.asax:

    throw new Exception(ConfigurationManager.ConnectionStrings["mcn"].ConnectionString);
    

    If the actual connection string is $(ReplacableToken_mcn-Web.config Connection String_0), that would explain the problem.

提交回复
热议问题