问题:

这是在Windows Server 2008上运行的,几个月前就可以运行了。 我刚刚再次使用这个服务器与VS一起开发工作。

这是用于提供一些测试站点的实时Web服务器。

这在运行Visual Studio时启动,然后启动我的项目以进行调试。

尝试在IISExpress启动时通过localhost:xxxx启动任何站点(使用配置中的实际端口#来访问不同的站点):

This webpage is not available

ERR_CONNECTION_REFUSED

我已经在这几天了,因为我已经读过其他人有过类似的问题,尝试了我读过的大部分内容,包括将managedruntimeversion从“v4.0”更改为“v4.0.30319”(我有从来没有必要这样做)并禁用日志记录模块( 此处的所有建议)。

我的hosts文件中只有两个条目指向内部服务器IP地址。 没有与localhost相关的IP或引用。

我已经完成了重新安装IIS Express和Visual Studio 2013.我还创建了一个全新的WebApplication站点来尝试解决这个问题(简单而没有其他复杂的绑定)。

当我旋转Fiddler时,我在页面上看到以下内容:

[Fiddler] The socket connection to localhost failed. 
ErrorCode: 10061. 
No connection could be made because the target machine actively refused it 127.0.0.1:23162

提琴手捕获

我已经从IE的LAN连接部分删除了所有代理设置,之前我在VS中获得了一个red-x弹出窗口,表明IISExpress无法启动

这不是SSL与非SSL的问题。

我安装了TFS服务器 – 卸载了,以防有一些奇怪的绑定干扰。

我尝试多次删除IISExpress配置/设置文件夹。

当前的applicationhost.config包含:

<site name="WebApplication1" id="4">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\TFS-WorkRepository\Sandbox\WebApplication1\WebApplication1" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:23162:localhost" />
                </bindings>
            </site>
            <siteDefaults>
                <logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
                <traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
            </siteDefaults>
            <applicationDefaults applicationPool="Clr4IntegratedAppPool" />

我希望有一个really-stuck的标签。

请建议离开,因为我不想转向新的服务器。

– 更新 –

在URL栏中,当我输入计算机名称或IP地址时:xxxx我得到ERR_CONNECTION_TIMED_OUT而不是ERR_CONNECTION_REFUSED

This is running on Windows Server 2008 and used to work several months ago.I am just now using this server again for some dev work with VS.This is live web server used to serve up a few test sites as well.This came up when running Visual Studio, then launching my projects for debugging.Trying to launch any site through localhost:xxxx when IISExpress has been launched (using actual port #’s in the config to access different sites):I have been at this for a few days already, as I have read others have had similar issues, tried most things I have read including changing the managedruntimeversion from “v4.0” to “v4.0.30319” for .net 4.5 (I have never had to do this before) and disabling the logging module (all suggestions found here ).There are only two entries in my hosts file that point to internal server IP addresses.No localhost related IP’s or references.I have gone as far as re-installing IIS Express, and Visual Studio 2013. I also created a brand new WebApplication site to try to resolve this (simple and no other complicated bindings).When I spin up Fiddler, I see the following on the page:I have removed all proxy settings from IE’s LAN connection section, where before I was getting a red-x popup in VS indicating something like IISExpress could not launch .This is not a matter of SSL vs non SSL.I had TFS Server installed – uninstalled that in case there were some odd bindings that were interfering.I tried deleting the IISExpress config/settings folder several times.Current applicationhost.config contains:I wish there was a tag for really-stuck .Please suggest away, as I don’t want to go as far as spinning up a new server.— UPDATE —In the URL bar, when I enter the computer name or IP address :xxxx I get the ERR_CONNECTION_TIMED_OUT rather than ERR_CONNECTION_REFUSED .

问题:

当我尝试在Win32或x64模式下使用Visual Studio 2010编译我的c ++项目时,我收到以下错误:

>C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\include\\winnt.h(135): fatal error C1189: #error : "No Target Architecture"

我的预处理器定义说WIN32; _DEBUG; _CONSOLE;%(PreprocessorDefinitions)

导致此错误的原因是什么?如何解决?

// winnt.h: lines 127-136, MSVS says this is an inactive preprocessor block
#if defined(_WIN64)

#if defined(_AMD64_)
#define PROBE_ALIGNMENT( _s ) TYPE_ALIGNMENT( DWORD )
#elif defined(_IA64_)
#define PROBE_ALIGNMENT( _s ) (TYPE_ALIGNMENT( _s ) > TYPE_ALIGNMENT( DWORD ) ? \
                              TYPE_ALIGNMENT( _s ) : TYPE_ALIGNMENT( DWORD ))
#else
#error "No Target Architecture"
#endif

更新:我创建了一个新的msvs项目并将我的代码复制到它。 我不再有error : "No Target Architecture" ,但现在我有一堆涉及winnt.h和winbase.h的编译错误,并且没有涉及我的任何文件的编译错误。 这些文件是否可能已损坏? 我需要重新安装MSVS 2010吗?

更新2:所以我缩小了我的问题,发现它是#include <WinDef.h>导致我的所有编译错误与winnt.h但我仍然不知道如何解决它。

When I try to compile my c++ project using Visual Studio 2010 in either Win32 or x64 mode I get the following error:My preprocessor definitions say WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)What is causing this error and how do I fix it?Update: I created a new msvs project and copied my code to it.I no longer have error : "No Target Architecture" , but now I have a bunch of compile errors involving winnt.h and winbase.h and no compile errors involving any of my files.Is it possible these files are corrupted?Do I need to reinstall MSVS 2010?Update 2: So I narrowed down my problem and found that it is #include <WinDef.h> that is causing all of my compile errors with winnt.h but I still don’t know how to fix it.

问题:

我正在尝试使用CMake制作Visual Studio解决方案,以编译最新版本的aseprite,而CMake始终为我提供:

No CMAKE_C_COMPILER could be found.
No CMAKE_CXX_COMPILER could be found.

我已经下载了GCC,并且正在使用Visual Studio 2015

我正在关注本教程:

https://github.com/aseprite/aseprite/blob/master/INSTALL.md

I’m trying make a Visual Studio solution with CMake to compile the latest version of aseprite and CMake keeps giving me the:I’ve already downloaded GCC, and I’m using Visual Studio 2015 .I’m following this tutorial:https://github.com/aseprite/aseprite/blob/master/INSTALL.md

问题:

ASP.NET MVC4 Bootstrap 3应用程序从Microsoft Visual Studio Express 2013 for Web IDE运行。

Chrome控制台始终显示错误

http://localhost:52216/admin/fonts/glyphicons-halflings-regular.woff2
Failed to load resource: the server responded with a status of 404 (Not Found)

此文件存在于解决方案资源管理器的fonts目录中。 构建操作设置为“内容”,复制到输出目录为“不要像其他字体文件一样复制”。 使用NuGet将Bootstrap 3添加到解决方案中。 如何解决这个问题,以免发生此错误? 应用程序正确显示Glyphicon和FontAwesome图标。 此错误始终在应用程序启动时发生。

ASP.NET MVC4 Bootstrap 3 application is running from Microsoft Visual Studio Express 2013 for Web IDE.Chrome console shows always errorThis file exists in the fonts directory in the Solution Explorer.Build action is set to “Content” and Copy to Output directory is “Do not copy like in other font files”.Bootstrap 3 is added to the solution using NuGet.How to fix this so that this error does not occur?Application shows Glyphicon and FontAwesome icons properly.This error always occurs at application startup.

问题:

当我尝试更新我的项目时,我正在做-我第一次看到错误:

“签名时发生错误:未找到SignTool.exe。”

我之前从未见过,所以我检查了SignTool.exe是为我的项目进行ClickOnce部署的标志。

我还读到它是Windows SDK的一部分-但是当我寻找SignTool.exe的位置时-我在那里看到了它!

  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

我没发现问题,而且我一直一直在发布我的项目-我使用的是68版。但这是我第一次看到它-我没有碰过任何能做到这一点的选项。

有什么帮助吗?

While I was trying to Update my Project I was making – I got an error for the first time I’ve seen:’An error occurred while signing: SignTool.exe not found.’I’ve never seen this before, So I looked up that SignTool.exe is what signs my project for ClickOnce Deployment.I also read that is it a part of Windows SDK – but when I looked to find where SignTool.exe is – I saw it right there!I saw no problem, and I’ve always published my Project all the time – I’m on Version 68. But this is the first time I’ve seen this – I didn’t touch any options that would do this.Any help?