2012-12-14 2 views
0

나는 ASP.NET MVC 기반 웹 사이트를 개발하고 그것을 호스팅하기 위해 GoDaddy를 사용하고 있습니다. 그것은 내 컴퓨터에서 잘 작동하지만, 나는 다음과 같은 오류 얻을에서 GoDaddy 서버에 업로드 할 때 분명히"요청한 .Net Framework 데이터 공급자를 찾을 수 없습니다. 설치할 수 없습니다." GoDaddy와 함께

<?xml version="1.0" encoding="utf-8"?> 
<!-- 
    For more information on how to configure your ASP.NET application, please visit 
    http://go.microsoft.com/fwlink/?LinkId=169433 
    --> 
<configuration> 
    <configSections> 
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> 
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 
    </configSections> 
    <connectionStrings> 
    <add name="SifriaContext" connectionString="server=serveraddress;User Id=userid;password=password;database=database;Persist Security Info=True" providerName="MySql.Data.MySqlClient" /> 
    </connectionStrings> 
    <appSettings> 
    <add key="webpages:Version" value="2.0.0.0" /> 
    <add key="webpages:Enabled" value="false" /> 
    <add key="PreserveLoginUrl" value="true" /> 
    <add key="ClientValidationEnabled" value="true" /> 
    <add key="UnobtrusiveJavaScriptEnabled" value="true" /> 
    </appSettings> 
    <system.web> 
    <compilation targetFramework="4.0" /> 
    <authentication mode="Forms"> 
     <forms loginUrl="~/Account/Login" timeout="2880" /> 
    </authentication> 
    <customErrors mode="Off"></customErrors> 
    <pages> 
     <namespaces> 
     <add namespace="System.Web.Helpers" /> 
     <add namespace="System.Web.Mvc" /> 
     <add namespace="System.Web.Mvc.Ajax" /> 
     <add namespace="System.Web.Mvc.Html" /> 
     <add namespace="System.Web.Optimization" /> 
     <add namespace="System.Web.Routing" /> 
     <add namespace="System.Web.WebPages" /> 
     </namespaces> 
    </pages> 
    </system.web> 
    <system.webServer> 
    <validation validateIntegratedModeConfiguration="false" /> 
    <modules runAllManagedModulesForAllRequests="true" /> 
    <handlers> 
     <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /> 
     <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /> 
     <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> 
     <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /> 
     <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /> 
     <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> 
    </handlers> 
    </system.webServer> 
    <runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
     <dependentAssembly> 
     <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> 
     <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> 
     </dependentAssembly> 
     <dependentAssembly> 
     <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> 
     <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /> 
     </dependentAssembly> 
     <dependentAssembly> 
     <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> 
     <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> 
     </dependentAssembly> 
    </assemblyBinding> 
    </runtime> 
    <entityFramework> 
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> 
    </entityFramework> 
</configuration> 

내가 액세스 할 수 없습니다 : 여기

Unable to find the requested .Net Framework Data Provider. It may not be installed.

을 내 Web.config의의 machine.config 파일에 ... 이 문제를 해결하는 방법을 정말 모르겠다. ...

+0

무엇을 시도 했습니까? 오류 메시지를 검색하거나 GoDaddy 지원팀에 문의하셨습니까? http://stackoverflow.com/questions/8793261/godaddy-net-and-mysql http://support.godaddy.com/groups/web-hosting/forum/topic/the-underlying-provider-failed-on-open// sid = & sp = 1 – mcknz

+0

GoDaddy 지원팀에 연락했습니다. 그걸로 너무 많은 행운이 ... – YogevSitton

+4

godadday에서 질문해야하기 때문에 오프 주제로이 질문을 닫으려고합니다. –

답변

4

GoDaddy는 서버에 MySQL이 설치되어 있지 않습니다. bin 배포 할 수 있습니다. 당신은 같이 당신의 Web.config에 데이터베이스 공급자 섹션을 추가해야합니다 :

<system.data> 
    <DbProviderFactories> 
    <add name="MySQL Data Provider" 
     invariant="MySql.Data.MySqlClient" 
     description=".Net Framework Data Provider for MySQL" 
     type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> 
    </DbProviderFactories> 
</system.data> 

당신이 당신의 bin 디렉토리에 넣어 어떤 버전으로 버전을 변경해야합니다.

+0

그건 그렇고, 100 % 아닙니다. 신뢰 수준으로 인해 공급자를 bin bin으로 지정하더라도 MySQL Entity Framework가 GoDaddy에서 작동합니다. – Sam

+0

사용중인 MySql DLL의 버전과 일치하는 PublicKeyToken이 무엇인지 어떻게 알 수 있습니까? – YogevSitton

+0

나는 위대한 일한 DLL의 버전을 알아 냈어. - 고마워. – YogevSitton

관련 문제