2013-03-19 5 views
0

사이트를 Godaddy 서버에 업로드하는 과정에서 MySql을 사용하는 DataGrid가 문제를 일으키고 있습니다. 오류는 웹 구성과 함께 아래에 출력됩니다. 문제는 서버가 My Web 구성의 MySql.Data와 같은 적절한 설치 요구 사항을 가지고 있지 않은 것 같지만 어떻게해야할지 확신하지 못합니다. .NET MySql 커넥터가 로컬 시스템에 설치되어 잘 실행됩니다. 여기에 오류가 출력됩니다.ASP.Net 찾을 수 없습니다 .Net Framework Provider

Unable to find the requested .Net Framework Data Provider. It may not be installed. 
Description: An unhandled exception occurred during the execution of the current web   request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed. 


[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.] 
    System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1419911 
    System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactory() +67 
    System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure() +22 
    System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) +11 
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +117 
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21 
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143 
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74 
    System.Web.UI.WebControls.GridView.DataBind() +4 
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66 
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75 
    System.Web.UI.Control.EnsureChildControls() +102 
    System.Web.UI.Control.PreRenderRecursiveInternal() +42 
    System.Web.UI.Control.PreRenderRecursiveInternal() +175 
    System.Web.UI.Control.PreRenderRecursiveInternal() +175 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean  includeStagesAfterAsyncPoint) +2496 

웹 구성 :

<?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> 

<add name="GoDaddy" connectionString=" Server=***; Database=kappalambda; User ID=***; Password=***; Trusted_Connection=False" providerName="System.Data.SqlClient" /> 



<!--<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-Kappa Lambda-20130125180802;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-Kappa Lambda-20130125180802.mdf" 
    providerName="System.Data.SqlClient" />  
     --> 
    <add name="noahtk_DirectoryKappaSigAppConnectionString" connectionString="server=***;User Id=noahtk_klofks;password=***;database=***" 
    providerName="MySql.Data.MySqlClient" /> 




    <!-- <add name="liveConnection" connectionString="server=****; User  Id=***; password=****#; database=****" providerName="System.Data.SqlClient"/> 
    --> 

    </connectionStrings> 

</authentication> 

<profile defaultProvider="Godaddy"> 
    <providers> 
    <add name="Godaddy" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="Godaddy" applicationName="/" /> 
    </providers> 
</profile> 
<membership defaultProvider="Godaddy"> 
    <providers> 

<!-- 
     If you are deploying to a cloud environment that has multiple web server instances, 
     you should change session state mode from "InProc" to "Custom". In addition, 
     change the connection string named "DefaultConnection" to connect to an instance 
     of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express. 
     --> 
<sessionState mode="InProc" customProvider="DefaultSessionProvider"> 
    <providers> 
    <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" /> 
    </providers> 
</sessionState> 

,536,

답변

1

데이터 공급자를 bin-deploy해야 할 수 있습니다. This GoDaddy의 링크는 ASP.NET MVC dll을 bin-deploy하는 방법을 설명하지만 데이터 공급자가 포함 된 MySQL DLL과 프로세스가 비슷해야합니다 (즉, copy-local을 true로 설정해야 함).

내가 옳은 길에 없다면 죄송합니다.

HTH,

+0

닫기 나단,하지만 난 webconfig뿐만 아니라 뭔가를 필요로 생각합니다. – Klinetel

+0

아마 [이] 하단의 답변 (http://stackoverflow.com/questions/13887486/unable-to-find-the-requested-net-framework-data-provider-it-may-not-be- instal) 도움이 될까요? – nkvu

+0

안녕하세요,이 서버가 MySQL 서버를 지원합니까? –

관련 문제