0

SMOを使用してアプリケーションを作成しました。このアプリケーションは、別の場所にインストールして実行しても、開発用PCに正常にインストールされて実行されますが、別のマシンに移動すると、次のエラーが発生します。

Log Name:      Application
Source:        .NET Runtime
Date:          4/10/2012 12:03:56 PM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      ip-0A3AF6C2
Description:
Application: DataExport.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.SqlServer.Management.Common.ConnectionFailureException
Stack:
   at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
   at DataExport.Data.SqlDataService.GetTableNames(System.String)
   at DataExport.Adapter.DataExportAdapter.GetTableNames(System.String)
   at DataExport.DataExportForm.SetInitialEditDisplay(DataExport.Adapter.IDataExportAdapter)
   at DataExport.DataExportForm..ctor(DataExport.Adapter.IDataExportAdapter)
   at DataExport.Program.Main()

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2012-04-10T11:03:56.000Z" />
    <EventRecordID>72945</EventRecordID>
    <Channel>Application</Channel>
    <Computer>ip-0A3AF6C2</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: DataExport.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.SqlServer.Management.Common.ConnectionFailureException
Stack:
   at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
   at DataExport.Data.SqlDataService.GetTableNames(System.String)
   at DataExport.Adapter.DataExportAdapter.GetTableNames(System.String)
   at DataExport.DataExportForm.SetInitialEditDisplay(DataExport.Adapter.IDataExportAdapter)
   at DataExport.DataExportForm..ctor(DataExport.Adapter.IDataExportAdapter)
   at DataExport.Program.Main()
</Data>
  </EventData>
</Event>

私はこれを解決する方法がわかりません、SMOdllはパッケージに含まれています

インストール後のファイルリスト

古いバージョンのsmo(10より前)が含まれているdllをオーバーライドしている可能性はありますか?

4

1 に答える 1

0

解決策は、SMO10はServer2008専用であり、2005 SQL Expressでは機能しないということです。そのため、答えはバージョンを9.0に下げることでした。

于 2012-04-11T12:25:34.437 に答える