开发者

asp.net 4 mvc 2 error

开发者 https://www.devze.com 2023-01-21 06:33 出处:网络
when I run the app on server I get: Could not load file or assembly \'Microsoft.SqlServer.Replication.DLL\' or one of its dependencies. This application has failed to start because the application co

when I run the app on server I get:

Could not load file or assembly 'Microsoft.SqlServer.Replication.DLL' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

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.IO.FileLoadException: Could not load file or assembly 'Microsoft.SqlServer.Replication.DLL' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

Some points:

  • On machines with sql server 2005 installed (from which that dll is copied) the app works. But the server does not have it, so I need to get it 开发者_开发知识库to work without sql server.

  • The file is in wwwroot/bin folder: Microsoft.SqlServer.Replication.dll

  • Do I need to include the file in References folder in VS? Set it to CopyLocal?

Any advice or solutions would be greatly appreciated

--MB


The Microsoft.SqlServer.Replication.DLL is part of the Replication Management Objects which in turn are part of the SMO pack. The only supported redistribution path for SMO is to use the installer that comes with the SQL Server feature pack download, see Distributing an Application That Uses SQL Server Management Objects. You must install the SMO redistributable packet on the server.

0

精彩评论

暂无评论...
验证码 换一张
取 消