Tag: iis 7

什么是w3wp.exe?

我有本地系统上的服务用户下运行的WCF服务。 每次我尝试debugging它给我一个消息Attach Security warning 。 在Visual Studio中,默认情况下(即使没有附加),我得到这个错误: 附加到此过程可能会损害您的计算机。 如果以下信息看起来可疑或者您不确定,请不要重视此过程 名称:C:\ Windows \ System32 \ inetsrv \ w3wp.exe 什么是w3wp.exe ? 根据Google的search,我认为它与IIS有关。 但它是做什么的? 什么设置应该改变,以便这不会每次我尝试在我的本地系统上debugging时给这个消息?

IIS7 URL从根目录redirect到子目录

我正在使用Windows Server 2008与IIS7。 我需要将访问www.mysite.com的用户redirect到wwww.mysite.com/menu_1/MainScreen.aspx 。 这里是我为这个项目准备的文件结构: -Sites -Default Web Site -Menu_1 -MenuService -VscWebService 我真的很感激任何帮助。

如何在Windows 7上安装Apache的工作台?

我想在windows上安装apache bench,有人能告诉我哪个MSI可以得到吗? 我没有安装一些MSI,但似乎已经安装了Apache HTTP服务器。 我只需要运行Apache的工作台,因为我正在testing一个IIS的asp.net应用程序。

MsDeploy正在返回403禁止

我们有一个在Intranet上运行的Web应用程序,我试图使用Visual Studio 2010将它发布到互联网上。目标服务器正在运行iis7并且Webpipe理服务正在运行。 在Visual Studio 2010上,我的服务URL是: https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd 而网站/应用程序是: 默认网站/ WebApp 在目标上标记为IIS应用程序,并选中“允许不受信任的证书”,并使用pipe理帐户。 Visual Studio返回以下错误: 启动Web部署将应用程序/程序包发布到https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default%20Web%20Site … C:\ Program Files \ MSBuild \ Microsoft \ VisualStudio \ v10 .0 \ Web \ Microsoft.Web.Publishing.targets(3588,5):错误:Web部署任务失败(远程代理(URL https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=默认网站)无法联系,请确保远程代理服务已安装并在目标计算机上启动。 远程代理(URL https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default网站)无法联系。 确保远程代理服务已安装并在目标计算机上启动。 收到不受支持的响应。 响应标题'MSDeploy.Response'是'',但'v1'是预期的。 远程服务器返回错误:(403)禁止。 任何想法如何发布它没有一个有效的SSL证书?

url内的双转义序列:请求过滤模块configuration为拒绝包含双转义序列的请求

在我的ASP.NET MVC应用程序中,我试图实现如下的URL: /产品/标签/为+家庭 当我尝试使用默认configuration运行我的应用程序时,我收到404.11响应代码的消息: HTTP错误404.11 – 未find 请求过滤模块被configuration为拒绝包含双转义序列的请求。 我可以通过在我的web.config中实现下面的代码来解决这个错误: <system.webServer> <security> <requestFiltering allowDoubleEscaping="true" /> </security> </system.webServer> 所以,现在我没有得到任何404.11 。 我想知道的是,这个实现打开了什么样的安全漏洞。 顺便说一句,我的应用程序是在.Net Framework 4.0和IIS 7.5下运行。

当我设置IIS池的LoadUserProfile时究竟发生了什么?

我遇到了以下问题。 我运行下面的代码 var binaryData = File.ReadAllBytes(pathToPfxFile); var cert = new X509Certificate2(binaryData, password); 在两个过程中。 其中一个进程在LOCAL_SYSTEM下运行,并且代码成功。 另一个运行在属于“用户”本地组的本地用户帐户下的IIS,在那里我得到以下exception: System.Security.Cryptography.CryptographicException Object was not found. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte[] rawData, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx) at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(Byte[] rawData, Object password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password) //my code here 所以我Googlesearch了一下,发现了一个类似的问题的答案 。 我试图为应用程序池启用LoadUserProfile ,现在它工作。 问题是当我设置LoadUserProfile时会发生什么,以及可能会产生什么后果。 我的意思是,如果这是一个“好”的东西,那么为什么它不是默认的“开”,为什么它在那里呢? […]

500.21模块列表中有错误的模块“ManagedPipelineHandler”

我收到错误: HTTP错误500.21 – 内部服务器error handling程序“CloudConnectHandler”的模块列表中有一个错误的模块“ManagedPipelineHandler” 我的web.config文件如下所示: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="CloudConnectHandler" verb="*" path="CloudConnect.aspx" type="CloudConnectHandler" resourceType="Unspecified" /> </handlers> </system.webServer> <system.web> <customErrors mode="Off" /> <compilation debug="true" targetFramework="4.0" batch="false"> <assemblies> <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> </assemblies> </compilation> <pages> <controls> <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" […]

控制台应用程序:每个configuration文件只允许有一个<configSections>元素,如果存在,则必须是根<configuration>元素的第一个子元素

我正在开发控制台应用程序,当我运行.exe文件,我得到下面的错误。 system.Configuration.ConfigurationErrorsException:每个configuration文件只允许有一个<configSections>元素,如果存在,则必须是根<configuration>元素的第一个子元素。 App.config文件是 <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> <configSections> <section name="Reva.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> </configSections> — — — — 如果我删除了 <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> 那么它的工作很好。 请任何人可以帮我吗?

在IIS7上启用跨源资源共享

我最近碰到了发送JavaScript请求到另一个域。 默认情况下,不允许将XHR发布到其他域。 遵循http://enable-cors.org/的指示,我在另一个域上启用了这个function。 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" /> <add name="Access-Control-Allow-Headers" value="Content-Type" /> </customHeaders> </httpProtocol> </system.webServer> </configuration> 现在一切正常,但是在返回工作200响应之前,它仍然返回405响应。 Request URL:http://testapi.nottherealsite.com/api/Reporting/RunReport Request Method:OPTIONS Status Code:405 Method Not Allowed Request Headersview source Accept:*/* Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-GB,en-US;q=0.8,en;q=0.6 Access-Control-Request-Headers:origin, content-type, accept Access-Control-Request-Method:POST Connection:keep-alive Host:testapi.nottherealsite.com Origin:http://test.nottherealsite.com Referer:http://test.nottherealsite.com/Reporting User-Agent:Mozilla/5.0 (Windows NT 6.1; […]

如何将IIS 7站点迁移到另一台服务器?

我想知道什么是移动一个网站到另一台服务器的最佳做法(以及所有设置等) 在新服务器上手动重新创build站点(由于显而易见的原因,无法维护) 复制applicationHost.config设置文件 使用appcmd进行备份和恢复 使用MSDeploy在新机器上发布站点 使用第三方工具 只是想知道别人的经验。