在IIS上运行Web应用程序时出现问题

在IIS上运行Web应用程序时出现问题

问题描述:

因为我在IIS上安装了应用程序。它没有正常运行。它显示以下错误



无法加载文件或程序集'Microsoft.AI.Web'或其中一个依赖项。该系统找不到指定的文件。



描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



异常详细信息:System.IO.FileNotFoundException:无法加载文件或程序集Microsoft.AI.Web或其依赖项之一。系统找不到指定的文件。



我尝试过:



我从下面提到了解决方案

https://www.experts-exchange.com/questions/28933048/Could-not-load-file-or-assembly-'Microsoft-AI- Web-or-one-its-dependencies-The-system-not-find-the-file-specified.html

As I have Installed application on IIS.Its not running properly.Its showing following error

Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified.

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.FileNotFoundException: Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified.

What I have tried:

I have referred solution from below site
https://www.experts-exchange.com/questions/28933048/Could-not-load-file-or-assembly-'Microsoft-AI-Web'-or-one-of-its-dependencies-The-system-cannot-find-the-file-specified.html

I've found the solution. I've recently upgraded my machine to Windows 2008 Server 64-bit. The SqlServer.Replication namespace was written for 32-bit platforms. All I needed to do to get it running again was to set the Target Platform in the Project Build Properties to X86.