安装Visual Studio 2012并打开我的解决方案后,我遇到了以下形式的一系列错误:
Web应用程序项目Foo配置为使用IIS.
无法访问IIS元数据库.您没有足够的权限访问计算机上的IIS网站.
我为每个Web应用程序都得到了这个.我尝试过的事情:
这些似乎是这个问题的常见解决方案,但我没有取得任何成功.还有什么我可以尝试做的吗?
传统上我使用我的localhost开发服务器的自定义域.有点像:
dev.example.com
dev.api.example.com
Run Code Online (Sandbox Code Playgroud)
在使用Facebook等外部API时,这为我提供了很大的灵活性.这在过去使用内置的Visual Studio开发服务器时效果很好,因为我需要做的就是为那些指向的DNS记录添加一个CNAME 127.0.0.1.
但是我无法使用IIS Express.我尝试的一切似乎都失败了.我甚至已经applicationHost.config为IIS Express 的文件添加了正确的XML配置,但它似乎没有认识到这些条目与IIS的真正安装一样有效.
<binding protocol="http" bindingInformation="*:1288:dev.example.com" />
Run Code Online (Sandbox Code Playgroud)
每当我输入此行并尝试请求时,http://dev.example.com:1288我会收到以下消息:
错误请求 - 无效的主机名
有人知道我是否遗漏了一些明显的东西吗?或者,IIS Express团队是否真的缺乏远见才能看到这种用途?
我正在构建一个网站,我想从textarea元素的值创建一个文件客户端.
我有代码来执行此操作,但我收到此错误
HTTP错误404.15 - 未找到请求筛选模块配置为拒绝查询字符串太长的请求.
有没有办法覆盖这个,以便我能够处理任何大小的请求?
如果没有,有没有办法生成文件客户端而不使用文件系统/活动x对象?
谢谢
IISExpress将日志和配置数据写入预先确定的开箱即用位置.
该目录是存储在用户的Documents目录中的"IISExpress"目录.
在目录中存储下面的以下文件夹文件.
我的主目录的位置在网络共享上,由组策略决定
目前,我们遇到使用IIS Express停止调试Silverlight应用程序时visual studio锁定的情况.
我希望更改IISExpress的日志和配置数据的位置,看看这是否解决了visual studio锁定的问题.是否可以更改日志和配置文件的默认位置?
我最近将我的根TFS文件夹重命名为D:\TFS\systemstfs,D:\TFS\sys因为项目的一个路径对于Windows来说太长了.现在,当我尝试使用IIS Express(项目URL http:// localhost:59729/Flowers/wsBusinessLayer /)在VS2013中运行不同的项目(D:\ TFS\sys\companydomain.com\Dev\Flowers\wsBusinessLayer)时在浏览器中收到以下错误消息:
HTTP错误500.19 - 内部服务器错误
无法访问请求的页面,因为页面的相关配置数据无效.模块 - IIS Web核心
通知 - BeginRequest
错误代码 - 0x80070003
配置错误 - 无法读取配置文件
配置文件 - \?\ D:\ TFS\systemstfs\companydomain.com\Dev\Flowers\web.config
请求的URL - http:// localhost:59729/Flowers/wsBusinessLayer/InformationServices.asmx
物理路径 - D:\ TFS\sys\companydomain.com\Dev\Flowers\wsBusinessLayer\InformationServices.asmx
(强调我的,D:是我机器上的第二个硬盘,而不是网络共享)
我很清楚问题是什么(配置文件路径错误)但我不知道如何解决它.我试过了:
但没有运气.有没有人遇到过这个?
我的MVC应用程序和启动有问题.
每次我做一个更改和一个应用程序需要很长时间才能启动.
我有大约100行''iisexpress.exe'(CLR v4.0.30319:'
每次运行我的应用程序时都必须启动iisexpress吗?
我已尝试过这篇文章中的建议,但我无法在Vision Studio 2010中使用IIS身份验证进行Windows身份验证.现在我收到以下错误:

这是我的applicationhost.config文件条目:
...
<add name="WindowsAuthenticationModule" lockItem="false" />
...
<authentication>
<anonymousAuthentication enabled="true" userName="" />
<basicAuthentication enabled="false" />
<clientCertificateMappingAuthentication enabled="false" />
<digestAuthentication enabled="false" />
<iisClientCertificateMappingAuthentication enabled="false">
</iisClientCertificateMappingAuthentication>
<windowsAuthentication enabled="true" />
</authentication>
...
<sectionGroup name="authentication">
<section name="anonymousAuthentication" overrideModeDefault="Allow" />
<section name="basicAuthentication" overrideModeDefault="Allow" />
<section name="clientCertificateMappingAuthentication" overrideModeDefault="Allow" />
<section name="digestAuthentication" overrideModeDefault="Allow" />
<section name="iisClientCertificateMappingAuthentication" overrideModeDefault="Allow" />
<section name="windowsAuthentication" overrideModeDefault="Allow" />
</sectionGroup>
Run Code Online (Sandbox Code Playgroud)
我的web.config:
<system.web>
<authentication mode="Windows" />
</system.web>
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled="false" />
<windowsAuthentication enabled="true" />
</authentication>
</security>
</system.webServer>
Run Code Online (Sandbox Code Playgroud)
这是.NET …
我刚刚安装了Visual Studio 2012,并希望创建我的第一个WCF服务应用程序.我是一名来自.NET世界的Java开发人员,所以请理解:)
我创建了一个新的C#项目WCF服务应用程序.然后我点击Debug(或F5),我得到一个错误说:
Unable to launch IIS Express
Run Code Online (Sandbox Code Playgroud)
当我再次点击时会出现另一个这样的错误,但这次IIS出现在托盘中,我收到通知(气泡),当我点击它时会显示一条消息:
Port '53234' is already being used by process 'IIS Express' (process ID '5524')
Run Code Online (Sandbox Code Playgroud)
我尝试在Web选项卡中更改项目属性中的端口,但它不会更改任何内容.msgs是相同的,只是端口号改变了.
对我来说这很有趣,但我无法修复它.我已经尝试更改端口,我重新安装了IIS,重新启动了Visual Studio和PC.我想要使用的端口上没有运行任何东西.
我使用的是Windows 8.1 x64,Visual Studio 2012(IIS 8).
编辑
IIS中有一个log msg:
Failed to register URL "http://localhost:53234/" for site "WcfService1" application "/". Error description: Cannot create a file when that file already exists. (0x800700b7)
Registration completed
Run Code Online (Sandbox Code Playgroud) 我通常使用Visual Studio 2015更新3开发Windows 7桌面.我的Windows 10笔记本电脑上有相同的vs2015.3.我复制了一个我正在研究的笔记本电脑的asp mvc 5应用程序,但是当我尝试从VS启动它时它不会运行.我得到"aspnetcore.dll无法加载"错误.我环顾四周,大多数解决方案是修复asp网络核心安装,但我的笔记本电脑上没有安装asp网络核心,因为我还没有使用核心.我的项目针对.Net 4.6.
我的桌面确实有Core.那么我必须安装.net核心吗?还是有其他解决方案吗?我使用的是默认的IIS 10.
从今天早上开始,没有对项目代码进行任何更改,一个非常简单的Web API,一个控制器和3个方法(带有Swagger),它不再启动,并且出现错误:
HTTP错误500.35-同一进程中的ANCM多个进程内应用程序
事件查看器报告最无用的消息:
IIS Express AspNetCore模块V2:无法启动应用程序'/ LM / W3SVC / 2 / ROOT / docs',错误代码'0x80004005'。
重新启动系统几次。
我正在使用Visual Studio 2019,该应用程序已成功编译,几分钟前它运行良好。没有安装新软件,没有添加软件包。也尝试过清理和重建。
我刚刚修改了方法的注释。显然,我也尝试过恢复以前的评论,但总是收到相同的消息。
我能做什么?
网核是否仍然不稳定以致无法专业使用?
更新
从同一版本的Visual Studio启动的相同代码在另一台PC上正常运行。
更新2
在应用程序代码下方:
startup.cs
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
using System;
using System.IO;
using System.Reflection;
namespace WFP_GeoAPIs
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", …Run Code Online (Sandbox Code Playgroud) iis-express ×6
c# ×4
iis ×4
asp.net-mvc ×3
.net ×2
asp.net-core ×2
.net-4.0 ×1
iis-7 ×1
javascript ×1
query-string ×1
wcf ×1
web-config ×1