我正在尝试设置一个自托管的OWin应用程序(使用VS2012)-我认为它已经关闭,因为我可以从包含.csproj的目录中运行OwinHost.exe,并且应用程序可以从localhost:5000正确进行服务。我创建了一个默认的nuspec文件,并添加了以下内容
<files>
<file src="bin\*.dll" target="bin" />
<file src="views\home\home.html" target="content" />
<file src="web.config" target="content" />
</files>
Run Code Online (Sandbox Code Playgroud)
在AssemblyInfo.cs中
[assembly: OwinStartup(typeof(TestA.Startup))]
Run Code Online (Sandbox Code Playgroud)
当我安装软件包(nuget install mypackage)时,出现以下错误...
从默认端口开始:5000 ...
Error: System.ArgumentException
No conversion available between
System.Func`2[System.Collections.Generic.IDictionary`2[System.String,System.Object],
System.Threading.Tasks.Task] and Microsoft.Owin.OwinMiddleware.
Parameter name: signature
Run Code Online (Sandbox Code Playgroud)
让我知道您是否需要更多信息
干杯!
进入Manage Nuget Packages for Solution...解决方案,选择Updates并单击Update All(或选择与owin相关的解决方案)。
这为我解决了。
原始错误:
错误:System.ArgumentException System.Func
2[System.Collections.Generic.IDict ionary2 [System.String,System.Object],System.Threading.Tasks.Task]和Microsoft .Owin.OwinMiddleware 之间没有可用的转换。参数名称:签名
更新Nuget软件包后:
从默认端口开始:5000(http:// localhost:5000 /)成功启动按Enter退出
| 归档时间: |
|
| 查看次数: |
1641 次 |
| 最近记录: |