0
,當我在服務器上運行應用程序,我得到:asp.net 4 MVC 2的錯誤
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)
幾點:
在安裝了SQL Server 2005的機器(從該DLL是複製)該應用程序的作品。但服務器沒有它,所以我需要讓它在沒有sql server的情況下工作。
的文件是在wwwroot文件/ bin文件夾:Microsoft.SqlServer.Replication.dll
我需要包括在VS中引用文件夾文件?將其設置爲CopyLocal?
任何意見或溶液,將不勝感激
--MB
功能包將安裝幷包含在應用程序中的dll是不可能的?我猜這不是,這就是爲什麼你只說,對吧? (並感謝信息) – 2010-10-23 18:41:45
而我們使用的sql server版本是2005. – 2010-10-23 18:58:16
SQL 2005有一個類似的可再發行組件安裝包:http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID= 536fd7d5-013f-49bc-9fc7-77dede4bb075 – 2010-10-23 19:17:49