iis-7.5

WebDav troubles for restfull WCF web service

走远了吗. 提交于 2019-12-01 16:21:02
问题 I created a WCF restfull service in .NET 4 and I published it under IIS 7.5/windows 7 x86. The verbs GET and POST worked fine, but the DELETE and PUT gave an error: Error: The remote server returned an error: (405) Method Not Allowed. After googling (a lot), I've found out that the problem is caused by WebDav module which is installed (automatically? dunno) in IIS. The only approach that worked for me was the one found here. However, removing the webdav module from the entire web site is

PowerShell + WebAdministration - How to get website from webapplication?

你。 提交于 2019-12-01 16:00:35
I'm writing a PowerShell script to perform certain administrative functions in IIS 7.5. import-module WebAdministration In some cases I know the name of the web application I want to work with but not the web site it is under. Getting the application is easy: $app = get-webapplication -name 'MyApp' But I cannot figure out how to get the name of the web site given the app. It doesn't seem to be a property off the webapplication object. Best I could come up with was trying to get it via test-path: get-website | where {test-path "iis:\sites\$_.name\MyApp"} For some reason that comes up empty. Any

Is there a 64-bit build of IIS express 7.5?

喜你入骨 提交于 2019-12-01 15:47:26
The documentation at http://learn.iis.net/page.aspx/1010/iis-75-express-readme/ says that: Both 32-bit and 64-bit systems are supported, however only a 32-bit build of IIS 7.5 Express exists. Why is this limitation there? are there any plans to get a 64-bit build? I'm getting a lot of OOME using the 32-bit express on my test machine ... how were are supposed to simulate running on the real IIS, if the test server is so limited ... Tom Robinson IIS Express 8.0 has 64-bit support. At the time of writing it's an RC. http://www.microsoft.com/en-us/download/details.aspx?id=34679 It's now here

PowerShell + WebAdministration - How to get website from webapplication?

自古美人都是妖i 提交于 2019-12-01 14:43:55
问题 I'm writing a PowerShell script to perform certain administrative functions in IIS 7.5. import-module WebAdministration In some cases I know the name of the web application I want to work with but not the web site it is under. Getting the application is easy: $app = get-webapplication -name 'MyApp' But I cannot figure out how to get the name of the web site given the app. It doesn't seem to be a property off the webapplication object. Best I could come up with was trying to get it via test

Custom URL Rewriting in Classic ASP

跟風遠走 提交于 2019-12-01 14:23:19
问题 I have been trying to rewrite the URL in classic ASP. I am currently using IIS 7.5. I tried to use the URL Rewrite plugin which converts the following link: http://blog.johnavis.com/blog/default.asp?id=19 into something like this: blog.johnavis.com/19/ blog.johnavis.com/id/19/ blog.johnavis.com/blog/default/19 blog.johnavis.com/blog/default/id/19 I want to convert into something like this: http://blog.johnavis.com/blog/myblog/ Can that be achieved? Any help would be appreciated. 回答1:

How to force certain sections of the website to be browsed under SSL?

倖福魔咒の 提交于 2019-12-01 14:16:41
On our website certain sections or pages deal with sensitive user or account information. I want to force the users to browse those pages under HTTPS. Whereas other pages with public content should be available under HTTP. I was planning to install url Rewrite module on IIS and write rules to achieve this. I am not sure how to write the rules in web.config for redirection. Server: IIS 7.5 Example of pages under SSL: mywebsite.com.au/login mywebsite.com.au/login/ mywebsite.com.au/member mywebsite.com.au/member/dashboard mywebsite.com.au/member/account mywebsite.com.au/member/.......... All the

How can I block all mobile phones from accessing my website

雨燕双飞 提交于 2019-12-01 14:08:33
I'm in the process of building an ASP.Net/C# site on IIS 7.5 and I would like to block all mobile phones from accessing this website. How can I block/deny access to this website (which uses Windows Authentication) from all types of mobile phones? I'm building an internal application that I want only desktops with IE to access. This is more of a security need than anything. Ideally I would like to check to see if the user is accessing this website via mobile phone (or just approved browsers) first before any Windows challenge/response happens. I've been looking to Google for pointers (with no

Is there a 64-bit build of IIS express 7.5?

巧了我就是萌 提交于 2019-12-01 13:55:04
问题 The documentation at http://learn.iis.net/page.aspx/1010/iis-75-express-readme/ says that: Both 32-bit and 64-bit systems are supported, however only a 32-bit build of IIS 7.5 Express exists. Why is this limitation there? are there any plans to get a 64-bit build? I'm getting a lot of OOME using the 32-bit express on my test machine ... how were are supposed to simulate running on the real IIS, if the test server is so limited ... 回答1: IIS Express 8.0 has 64-bit support. At the time of

Remove Server from HTTP Response in WCF

旧时模样 提交于 2019-12-01 08:30:52
I have an internet exposed WCF service running on IIS 7.5 that I need to secure. I would like to remove the "Server" header in the HTTP response. I've implemented an IDispatchMessageInspector with code as follows. public void BeforeSendReply(ref Message reply, object correlationState) { var context = WebOperationContext.Current; if (context != null) { context.OutgoingResponse.Headers.Remove( HttpResponseHeader.Server); } } However, the Server header is still in the response. On debugging I can see that the OutgoingResponse.Headers does not include HttpResonseHead.Server , and if I write my own

Symlink created with mklink not working with IIS7.5 — Windows 7

怎甘沉沦 提交于 2019-12-01 08:29:15
So while in my IIS root directory (c:\inetpub\wwwroot) I've created a symlink to a network drive using: mdlink /D truthuniversal "U:\Truth Universal Full Site\public" The symlink was created just fine, and if I issue the cd truthuniversal command, while in the IIS root dir, I do indeed end up in the "U:\Truth Universal Full Site\public" directory area. My problem is that when I type: http://localhost/truthuniversal in my browser's address bar IIS does not serve the index page which resides in the public directory. Instead, I get the following error: Server Error in Application "DEFAULT WEB