' / test'中的服务器错误在IIS上部署Angular 2+应用程序时的应用程序

时间:2017-12-25 14:36:40

标签: angular iis

我试图在IIS上运行一个有角度的2+应用程序。我已完成https://angular.io/guide/deployment中的所有操作。我已将dist文件夹的内容复制到服务器根目录的子文件夹(test)中,将base href设置为/ test /并添加了url重写规则。

但是当我尝试浏览它时,我收到了这个错误:

Server Error in '/test' Application.
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.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.AI.Web' could not be loaded.


WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

有没有人遇到过这种问题?

可以是关于另一个应用程序的服务器根目录和angular 2+应用程序之间的web.config文件的冲突吗?

1 个答案:

答案 0 :(得分:0)

我通过删除IIS上测试应用程序模块部分中的ApplicationInsightsWebTracking模块解决了这个问题。