iis-7

OPTIONS preflight request doesn't reach IIS hosted service

不问归期 提交于 2020-01-04 02:10:29
问题 I've got a localhost website and an IIS(7.5) hosted WCF service implemented like this with a Visual Studio debugger attached. Whenever I make a CORS request to my service I'm getting the following 404 response, along with the standard ASP.Net error page: OPTIONS http://192.168.200.44/api/values HTTP/1.1 Host: 192.168.200.44 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept

Does IIS7 log request query string by default?

一世执手 提交于 2020-01-04 01:59:04
问题 Our analytics engine reads IIS logs and I want to know if the query string is included in these, in a default IIS7 setup. For example, if a user requests http://mysite.com/page?to=otherpage will the logs contain http://mysite.com/page?to=otherpage or http://mysite.com/page ? 回答1: In the Logging settings for the Server or a specific site (I usually configure logging globally), provided you've selected the URI Query (cs-uri-query) logging field then IIS will log the query string: You can enable

WCF Data Services Type Could Not Be Found

瘦欲@ 提交于 2020-01-03 16:14:27
问题 I'm trying to move a WCF Data Service from hosted within VS2010 to a development web server. When I move the code to an IIS7 application, I get this error: The type 'Aaa.Bbb.Services.ZzzEntities', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found. ZzzEntities.svc <%@ ServiceHost Language = "C#" Factory = "System.Data.Services.DataServiceHostFactory,

IE8 does not keep Session Variables

你说的曾经没有我的故事 提交于 2020-01-03 14:16:23
问题 If I host an ASP.NET page with: <%@ Page Language="C#" %> <!DOCTYPE html> <script runat="server"> protected void btn_Click(object sender, EventArgs e) { lbl.Text = HttpContext.Current.Session["a"] == null ? "null" : HttpContext.Current.Session["a"].ToString(); } protected void btn_Click2(object sender, EventArgs e) { lbl.Text = HttpContext.Current.Cache["a"] == null ? "null" : HttpContext.Current.Cache["a"].ToString(); } protected void Page_Load(object sender, EventArgs e) { if (!Page

IIS 7 impersonation and identities

懵懂的女人 提交于 2020-01-03 13:45:07
问题 I'm trying to get used to II7, having worked with IIS6 for quite some time. In IIS 6, I'd set <identity impersonate="true"/> in the web.config, and make sure that I applied the correct NTFS permissions to the IUSR_[MACHINENAME] account if a folder required more than read permissions. In IIS 7, I'm having trouble duplicating this setup without resorting to applying too many permissions. If I use <identity impersonate="true"/> in IIS 7, Environment.Username tells me that I'm indeed

IIS 7 impersonation and identities

。_饼干妹妹 提交于 2020-01-03 13:44:07
问题 I'm trying to get used to II7, having worked with IIS6 for quite some time. In IIS 6, I'd set <identity impersonate="true"/> in the web.config, and make sure that I applied the correct NTFS permissions to the IUSR_[MACHINENAME] account if a folder required more than read permissions. In IIS 7, I'm having trouble duplicating this setup without resorting to applying too many permissions. If I use <identity impersonate="true"/> in IIS 7, Environment.Username tells me that I'm indeed

.ashx cannot find type error on IIS7 , no problems on webdev server

对着背影说爱祢 提交于 2020-01-03 05:16:51
问题 I am trying to make AspNetComet.zip work on IIS7 (a simple comet chat implementation) Here is a portion of my web.config. <system.web> <httpHandlers> <add verb="POST" path="DefaultChannel.ashx" type="Server.Channels.DefaultChannelHandler, Server"/> </httpHandlers> </system.web> <system.webServer> <handlers> <add name="DefaultChannelHandler" verb="POST" path="DefaultChannel.ashx" type="Server.Channels.DefaultChannelHandler, Server"/> </handlers> </system.webServer> When I publish the website

How do I register a HttpModule in the machine.config for IIS 7?

房东的猫 提交于 2020-01-03 04:52:09
问题 I'm trying to install a HttpModule on all sites on a server. It is already in the GAC and is working on sites if I individually add the proper configuration to each site's web.config file. When I move the configuration into the machine.config or the global web.config , the module disappears. Right now, I have the config in the system.webserver/httpModules and the system.web/httpModules sections in both the 32 bit and 64 bit machine.config and global web.config - eight places total and none of

Error publishing a webservice in IIS 7.0

允我心安 提交于 2020-01-03 03:51:12
问题 I get the following error message while trying to publish my webservice in Vista IIS 7.0: Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\helloworld\a71cdc49\1d988805\App_Web_defaultwsdlhelpgenerator.aspx.cdcab7d2

.GetDirectoryEntry throws COM exception, code:0x800720720 when attempting to bind to object

亡梦爱人 提交于 2020-01-03 03:46:13
问题 My application is running on IIS 7.0, it is supposed to impersonate the authenticated user and unlock or reset other user accounts. It worked fine when I was developing it on my workstation, but when I uploaded it to the server the impersonation stopped working, it won't bind to the AD objects and keeps throwing the same exception. I had the same problem earlier with using PrincipalContext but I was able to get around that using using(HostingEnvironment.Impersonate()) because I didn't need