asp.net 4 mvc 2 error

0

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

sql-server
iis
asp.net-mvc-2
replication
asked on Stack Overflow Oct 23, 2010 by Massive Boisson • edited Oct 23, 2010 by Kirk Woll

1 Answer

1

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.

answered on Stack Overflow Oct 23, 2010 by Remus Rusanu

User contributions licensed under CC BY-SA 3.0