我在做什么:
删除applicationhost.config位于Documents\IISExpress\config,不会更改错误消息.(还有一个IISExpress文件夹program files和program files (x86).)
我注意到的东西,我不知道这是不是一个问题:
找不到引用文件'lib/jquery-validation/jquery.validate.js'.
我有一个带有rawcap的转储,但我没有注意到那里.有些东西在那里:
"Framework":{"FrameworkName":"DNXCore,Version = v5.0","FriendlyName":"DNX Core 5.0","ShortName":"dnxcore50","RedistListPath":null}
我没有注意到问题,但我有网络数据,如果这可以帮助找出我无法连接到Web服务器的原因.我RST,ACK马上得到一个所以我猜测端口是关闭的,无论这个Web服务器是什么,都没有设置.
有关此问题的更多信息:来自/ trace:错误的800700c1错误
我试过了:
我有一个干净安装的Windows 10,以及一个干净安装的VS 2015 Update 1与RC1 ASP.NET工具.当我开始一个没有任何身份验证的新的ASP.NET MVC项目!和Hit F5时,我得到"尝试确定托管您的应用程序的DNX进程的进程ID时出错"错误.
我没有VS或ASP.NET的任何旧版本.一切都是最新的干净安装.我浏览了这个文档:http://docs.asp.net/en/latest/getting-started/installing-on-windows.html
我找到了这个主题,但这不是一个重复的问题,因为我没有升级任何东西,这个问题就出现在干净安装的Windows 10 + VS 2015 Update 1系统上.我有一个Windows 8.1和VS2013 + VS2015系统,一切正常.我认为在Windows 10上设置ASP.NET 5环境必须有一些额外的步骤.
在这里,我的project.json文件:
{
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.FileProviderExtensions" : "1.0.0-rc1-final",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
},
"frameworks": {
"dnx451": { },
"dnxcore50": { } …Run Code Online (Sandbox Code Playgroud)我想在我的网站上使用https强制执行.如果发现这篇文章,我使用了那里的代码.不幸的是,将此代码添加到web.config后,当我尝试在本地IIS上打开我的网站时出现此错误:
尝试确定托管应用程序的DNX进程的进程ID时出错
我的web.config看起来像这样:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
</handlers>
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false" startupTimeLimit="3600"/>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
其他stackoverflow问题的解决方案,如"启用匿名身份验证"或删除project.lock.json不起作用.
我正在使用ASP.net Core RC1