我有我的IIS7这个问题。 C:\Users\vtortola.dk>%windir%\system32\inetsrv\appcmd.exe list site ERROR ( message:Configuration error Filename: redirection.config Line Number: 0 Description: Cannot read configuration file due to insufficient permissions . ) 每当我尝试发布一个ASP.NET应用程序到我的电脑,我不能使用它,因为IIS不能读取configuration文件,我不知道如何解决这个问题。 我在C:\Windows\System32\inetsrv\configfind了该文件 一个permisions是为了: SYSTEM MyDomain / Mepipe理员(MyPC \ Administrators)TrustedInstaller 它是否正确? 任何想法? 亲切的问候。
我有一个简单的.NET自定义configuration组件,允许我在ASP.NET 2.0(Web项目的目标.NET Framework 3.5)Web应用程序的web.config文件中指定自定义configuration组和部分: 在我的web.config我有以下声明: <configuration> <configSections> <sectionGroup name="SimpleConfigGroup" type="CustomSettingsLib.SimpleConfigGroup, CustomSettingsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7a58d3af5d6768c9"> <section name="SimpleConfigSection" type="CustomSettingsLib.SimpleConfigSection, CustomSettingsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7a58d3af5d6768c9"/> </sectionGroup> </configSections> <SimpleConfigGroup> <SimpleConfigSection MySetting="Hello World" /> </SimpleConfigGroup> </configuration> 有几个类可以访问驻留在名为CustomSettingsLib类库项目中的此自定义configuration部分: SimpleConfigGroup.cs: using System.Configuration; namespace CustomSettingsLib { public class SimpleConfigGroup : ConfigurationSectionGroup { [ConfigurationProperty("SimpleConfigSection")] public SimpleConfigSection SimpleConfigSection { get { return (SimpleConfigSection)this.Sections["SimpleConfigSection"]; } } } […]
我有一个运行在iis7上的.net web应用程序(windows 2008),并希望为其添加一些简单的保护。 我已经成功设置了BASIC身份validation,但无法设置允许访问资源的用户名/密码
我有一个Web应用程序目录(主要的默认网站的子网站)。 我想更新我最初select的别名。 我如何在IIS7中做到这一点? 在编码提到的大猩猩我看到 <application path="/SiteAlias" applicationPool="DefaultAppPool"> 和 <location path="Default Web Site/SiteAlias"> 我是否需要更新这两个?
我已经成功地为IIS7设置了自定义静态错误页面。 IIS7目前正在作为Java Tomcat应用程序的网关。 问题是当404错误页面被提供时,它被提供一个HTTP 200状态docker。 我想要一种configurationIIS以继续发送HTTP 404的方法。错误页面在webroot中以静态页面的forms存在。 这是我的web.config的主要部分: <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS Redirect" enabled="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Found" /> </rule> <rule name="Reverse Proxy" stopProcessing="true"> <match url="(.*)" /> <action type="Rewrite" url="http://localhost:8080/{R:1}" /> <conditions> <add input="{R:1}" pattern="error/*." negate="true" /> </conditions> </rule> </rules> </rewrite> <httpErrors errorMode="Custom" […]
我在运行W2K8的单个IIS7机器上有许多网站。 我正在使用提琴手来帮助我弄清楚是否压缩了某些东西。 没有什么是。 所以,我search了一些东西,并尝试了一些东西。 我有以下… C:\Windows\System32\inetsrv>appcmd set config -section:urlCompression /doDynamic Compression:true Applied configuration changes to section "system.webServer/urlCompression" for " MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST" C:\Windows\System32\inetsrv>appcmd list config -section:urlCompression <system.webServer> <urlCompression doDynamicCompression="true" /> </system.webServer> C:\Windows\System32\inetsrv>appcmd list config -section:serverRuntime <system.webServer> <serverRuntime frequentHitThreshold="1" /> </system.webServer> 我确信urlCompression,httpCompression和serverRuntime部分是解锁的。 我也已经将以下内容添加到我的web.config中: – <system.webServer> <serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="00:10:00" /> <!– NOTE: This requires […]
好像当我从命令提示符执行IISRESET时,约90%的时间出现重新启动错误。 在Win 2008上运行IIS7。但是我已经看到了与IIS6和Win2003相同的事情。 第二次运行IISRESET似乎开始了一切,或者我可以手动重新启动 – 但我很好奇,如果我可以使它与一个IISRESET一致工作。 Attempting stop… Internet services successfully stopped Attempting start… Restart attempt failed. The IIS Admin Service or the World Wide Web Publishing Service, or a service dep endent on them failed to start. The service, or dependent services, may had an error during its startup or may be disabled. C:\Users\btinstall>iisreset […]
问题 关于这个问题还有其他一些问题(特别是405方法不允许的错误),但是我还没有find似乎可行的解决scheme。 我有一个只在HTML和JavaScript(无后端)的Web应用程序,JavaScript在窗体中使用POST。 我知道,IIS看到HTML文件为静态,只允许他们使用GET和HEAD动词,所以当表单发布时,我得到“405方法不允许…不能显示,因为无效的方法(HTTP动词)是正在使用”。 组态 Win 7机器上有IIS 7的默认安装。 默认情况下,ISAPI / CGI / ASP等,和WebDav都禁用/未安装。 我已更改的唯一设置是针对特征委派下的某些function添加读取/写入function。 在默认网站上的处理程序映射下我有OPTIONSVerbHandler,TRACEVerbHandler和StaticFile。 StaticFile请求限制显示所有动词启用,访问读取,仅当请求被映射到文件或文件夹时调用处理程序。 System.Web.DefaultHttpHandler属性显示动词GET,HEAD和POST。 尝试到目前为止 如果我设置了另一个处理程序映射,复制OPTIONS,但将其动词设置为POST,则405错误消失,但是我得到一个空白页面。 正如在这个问题的底部附近提示的,我尝试添加到我的web.config,但它似乎没有任何影响: <add name="HttpPost"/> (我也做了同样的configurationGUI,并且还添加了HttpPostLocalhost。) 我已经尝试改变张贴到POST在HTML( 以防万一 ),但是没有效果。 我也试着明确地允许请求过滤下的动词,但这也没有帮助。 有没有人有任何其他的想法? 我认为这将工作,如果我安装ASP并更改所有的文件扩展名,但这似乎是不必要的。
我想在IIS上的Web应用程序下运行一个命令来设置匿名身份validation。 我想特定的文件夹是唯一受到影响的。 我不想更改整个Web应用程序的匿名身份validation。 编辑2013年7月29日 : 仍然没有足够的答案:(添加一些关键的事实: – 我需要在脚本中作为安装过程的一部分。 – 我不想依赖IIS PowerShellpipe理单元。 – 我知道通过networkingconfiguration设置这个可能性,我没有问题,但我不能改变我的Web应用程序以外的任何configuration。 我不能改变C:\ Windows \ System32 \ inetsrv \ config \ applicationHost.config,所以这个选项已经不存在了。 这可以很容易地通过IISpipe理器(GUI)完成。
是否可以在运行IIS7的Windows Server 2008 SP2(不是R2)上启用TLS 1.1和1.2? 我试过更改registry,并使用IISencryption启用它,但它似乎不工作。 如果不可能的话,我怎样才能减轻野兽的攻击?