Если ASMX WebService нужна DLL, куда ее поместить? - PullRequest
1 голос
/ 11 ноября 2011

Я использую какое-то стороннее программное обеспечение, которое не работает.Их API обернут в веб-сервис ASP.

Стек вызовов говорит мне, что ему может понадобиться MySQL.Data.DLL или что-то (не совсем точно) в правильном каталоге.Поэтому мне интересно, где будет этот каталог.Веб-сервер - это IIS.

Вот стек вызовов:

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

       at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
       at WebReports.Api.Data.SqlObject.CreateConnectionObject(String dbType, String dataConnStr)
       at WebReports.Api.Data.SqlObject..ctor(PageInfo pageInfo, Int32 dataSourceId)
       at WebReports.Api.Data.DataObjectBase.GetDataObject(PageInfo pageInfo, Int32 dataSourceId, String objectType, Boolean isSqlSpecific)
       at WebReports.Api.Reports.Entity.get_DataSource()
       at WebReports.Api.Reports.Entity.GetColumnProcess(String colName, Boolean isActual)
       at WebReports.Api.Reports.EntityColumnsCollection.GetColumnProcess(String colNameFull, Boolean isActual)
       at WebReports.Api.Common.PageInfo.GetMnemonicFromId(String id)
       at WebReports.Api.Reports.KeyColumnCollection.SetColumnMnemonics()
       at WebReports.Api.Reports.ReportEntityCollection.SetColumnMnemonics()
       at WebReports.Api.Reports.ReportEntityCollection.LoadData(DataSet ds, Boolean readSchema)
       at WebReports.Api.Reports.Report.get_Entities()
       at WebReports.Api.Common.PageInfo.GetMnemonicFromId(String id)
       at WebReports.Api.Reports.Cell.set_SaveText(String value)
       at WebReports.Api.Reports.ReportCellCollection.LoadData(DataSet ds)
       at WebReports.Api.Reports.Report.get_Cells()
       at WebReports.Api.Reports.Report.UpdateVersion()
       at WebReports.Api.Reports.Report.Validate(Boolean validateJoins)
       at WebReports.Api.Reports.Report.LoadData(Boolean validate)
       at WebReports.Api.Reports.Report.Load(String reportName)

Над этой строкой находится их API, поэтому я не могу его проверить:

       at eWebReportsLETG.ReportURLService.GenerateReportURL(Int32[] list, String m_szWebReportsVirtualDirectory, String m_szWebReportsUrl, String ReportDir, String ReportName, String PkSpecialName, Boolean& Failed) in C:\dev\eWebReports\eWebReportsLETG\ReportURLService.asmx.cs:line 51

1 Ответ

3 голосов
/ 12 ноября 2011

Мне нужно было скопировать MySQL.data.dll в каталог bin моего каталога приложения веб-службы.Я также добавил ключ конфигурации в web.config.

...