【问题标题】:Can't able to refer the hwebcore.dll from C:\Windows\System32\inetsrv\hwebcore.dll to visualstudio2013无法将 hwebcore.dll 从 C:\Windows\System32\inetsrv\hwebcore.dll 引用到 visualstudio2013
【发布时间】:2015-03-06 20:44:03
【问题描述】:

我正在尝试在 windows8 中托管没有 IIS 的 MVC Web 应用程序。所以我引用了这个链接Host MVC web app without IIS

但我可以将 hwebcore.dll 文件添加到 Visual Studio 中,它会显示如下错误:

错误:

please make sure that the file is accessible and that it is a valid assembly or com component

我参考了以下链接,但对我没有任何帮助。

I want a solution for this : Please make sure that the file is accessible and that it is a valid assembly or COM component

.dll file not accessible

【问题讨论】:

    标签: c# web-services iis model-view-controller dll


    【解决方案1】:

    这个 dll 不是 .NET 程序集,这就是为什么你不能添加对它的引用。您可以做的是调用其导出的函数,例如 WebCoreActivate 和 WebCoreShutdown。请参阅此处的示例:http://blogs.msdn.com/b/carlosag/archive/2008/04/14/hostyourownwebserverusingiis7.aspx

    【讨论】:

      猜你喜欢
      • 2011-12-07
      • 1970-01-01
      • 2012-08-31
      • 1970-01-01
      • 1970-01-01
      • 2019-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多