Я опубликовал свой сайт на веб-хостинге, но у меня есть серьезные проблемы с базой данных. Это мои ошибкиОшибки базы данных ASP.NET MVC 4
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Line 255: <providers>
Line 256: <add name="AspNetSqlMembershipProvider"
Line 257: type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Line 258: connectionStringName="LocalSqlServer"
Line 259: enablePasswordRetrieval="false"
Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config Line: 257
Это строка подключения к моему хозяину:
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="SiteSqlServer" connectionString="Server=(localhost);Database=ulprojec_******-***;uid=ulprojec_***;pwd=********a;" />
</connectionStrings>
И это мое членство строка соединения, которые я получил от веб-сайта Microsoft, но он по-прежнему делает первые ошибки происходят:
<membership defaultProvider="SiteSqlServer"
userIsOnlineTimeWindow="15">
<providers>
<add
name="SiteSqlServer"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="SiteSqlServer"
applicationName="georgi-it"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10" />
</providers>
</membership>
Я действительно действительно очень благодарен за любую помощь, поскольку я уже в отчаянии.
EDIT: Я Сортировано это из
У меня этот вопрос сейчас:
Exception Details: System.ArgumentException: Invalid value for key 'attachdbfilename'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Вы видели [это] (http://stackoverflow.com/questions/10984507/the-connection-name-localsqlserver-was-not-found-in-the-applications-configura)? –
Я предполагаю, что вы посмотрели, и ваш файл конфигурации не содержит строку «attachdbfilename»? Это похоже на часть строки подключения. –