iis-7

creating sub-domains on signup

左心房为你撑大大i 提交于 2019-12-22 06:46:13
问题 I'm building a site where businesses will be able to sign-up for there own account which should be located at http://businessname.example.com with the "businessname" changing each time. I want to do this on a windows server (IIS 7) but am not sure how a go about it. 回答1: First, you have to configure your DNS server to resolve *.example.com to the IP of your server. Then, you have two choices: Every time a new account is created, you add its host to the configuration of IIS, so it is bound to

system.webserver section in machine.config

半城伤御伤魂 提交于 2019-12-22 06:37:06
问题 I've installed Windows 2008 Web Server and enabled IIS. However, my machine.config file shows: section name = "system.webServer" type = "System.Configuration.IgnoreSection... Does it mean that the system.webServer section is ignored? Why? I tried to edit some web site's properties (e.g. directory browsing), and it works correctly. Is the machine.config definition changed somewhere else? ulu 回答1: The system.webserver config is now maintained at system32\inetsrv\config\applicationhost.config.

IIS7 & Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule registering problems

若如初见. 提交于 2019-12-22 06:35:41
问题 UPDATE: In Windsor 2.5 the assembly name is Castle.Windsor not Castle.MicroKernel I'm trying to deploy an ASP.NET MVC app to IIS7 and I'm getting this error: Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule Add '' to the section on your web.config My httpModules contains: <httpModules> <add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.MicroKernel"/> </httpModules> system.webServer

Why am I still getting “Access to the path 'C:\…\…' is denied” even after granting IIS_IUSRS write permission on the directory?

落爺英雄遲暮 提交于 2019-12-22 05:35:12
问题 I've written a method on my controller that auto generates a powerpoint deck for my client and all that works fine...except I'm stuck on the part about saving the file to disk. I'm no stranger to this concept; and "thought" that all I needed to do is grant IIS_IUSRS write permission on the directory and read permission on all parent directories. I'm using IIS 7, and I've done this before with IIS 6 granting NETWORK SERVICE the same permissions. Just for kicks, I even gave EVERYONE write

Request for wsTestService.asmx/jsdebug returns 500 error on server, fine in development

亡梦爱人 提交于 2019-12-22 05:16:35
问题 Folks, I have a simple test application in which I return a string from a web service without arguments. This works fine under my development environment (VS 2010 SP1Rel on Windows 7 64 bit). When I deploy to the local IIS7 the proxy code for the web service does not load (in IIS logs it is a 500 error). When I request the offending url (http://localhost/Tests/WebServiceTests/TestWebServiceProxy/wsTestService.asmx/jsdebug), I get System.InvalidOperationException: jsdebug Web Service method

What is the regular expression to match the empty string for a rewrite rule?

こ雲淡風輕ζ 提交于 2019-12-22 05:01:11
问题 I need a regular expression for a rewrite rule on iis7, I'm trying to redirect http://www.website.com to http://www.website.com/sample. But I only want the empty url string (extra points if you can figure it out with and without '/'), and I'm unsure how to create a rewrite rule to match to that. Can someone help me out here? 回答1: ^/?$ I think... 回答2: not exactly sure what your looking for but this matches an empty url strip: http//\Z 回答3: The question isn't very clear, but I think you want

What is the regular expression to match the empty string for a rewrite rule?

爱⌒轻易说出口 提交于 2019-12-22 05:00:45
问题 I need a regular expression for a rewrite rule on iis7, I'm trying to redirect http://www.website.com to http://www.website.com/sample. But I only want the empty url string (extra points if you can figure it out with and without '/'), and I'm unsure how to create a rewrite rule to match to that. Can someone help me out here? 回答1: ^/?$ I think... 回答2: not exactly sure what your looking for but this matches an empty url strip: http//\Z 回答3: The question isn't very clear, but I think you want

Put ASP.NET MVC application in subdirectory of main MVC application?

十年热恋 提交于 2019-12-22 04:56:06
问题 I have my main website's application on my server at C:\inetpub\wwwroot , which I can view at http://www.mysite.com I've created another separate MVC web application, named Subdir . I'd like to set it up so that if I visit http://www.mysite.com/Subdir , it will run my Subdir app. What do I need to do for that? I obviously can't just drop the app in C:\inetpub\wwwroot\mysite.webui\whatever . Do I need to put the application in a certain directory? Do I need to configure anything in IIS? 回答1:

HTTP 403 Forbidden: Access is denied ASP.NET Web API

时光怂恿深爱的人放手 提交于 2019-12-22 04:29:14
问题 I'm getting the following error when running our ASP.NET Web API project on our production server. 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. Looking at the IIS 7.0 error logs the underlying error is 403.14 - Directory listing denied. I have configured the production server so it has the same settings as the staging server (which works). The authentication, modules, authorization, permissions etc are

How can I install asp.net mvc 2 on IIS7?

别说谁变了你拦得住时间么 提交于 2019-12-22 04:15:09
问题 I have developed an ASP.NET MVC 2 website, and now need to deploy it to my web server. I've overcome some hurdles already, since ASP.NET was not installed etc. but I've now got to the point where I can serve up plain content files, and if I try to hit one of my MVC URLs I get this: Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Not surprising, that, as I