iis-7

Cannot bind to port 80, Microsoft-HTTPAPI/2.0 Lock

心已入冬 提交于 2020-01-06 20:24:17
问题 So, I've been trying to bind Wowza media server to port 80 on our fail-over production server, and I'm encountering something else being bound to the port. The process reports as 'System' with PID 4. After chasing myself around the web for a while, I found numerous indicators that it could be IIS, MSSQL, Microsoft's Web Deployment Service, or even the Branch Cache service. After exploring all of these options, as well as a couple more that relate specifically to this server, I can say that

No connection string could be found in the application config file (But it Does Exist)

半世苍凉 提交于 2020-01-06 15:04:21
问题 I have a web API project I published to IIS and it complains there is no connection string with a specific name in my config file. I verified there is an entry in my web.config file of the web API project so it must not be picking it up. I was able to run this same web.config file locally using Visual Studio 2013. I am well aware the referenced start up project must have the connection string and that is the case for me. I verified my web API project has the connection string below (same one

Get .svc file info of IIS web service on remote computer

て烟熏妆下的殇ゞ 提交于 2020-01-06 08:22:46
问题 i've written a code to retrieve list of IIS services on a remote computer, now I am trying to retrieve information about the .svc file of the web service. The code below works for all the services that are stored in the inetpub folder, but i know it is not necessary to store the services there and it can be saved anywhere. public static void IISWebSvcLister(string Hos) { try { string s = null; Hos = Hos.Trim(); DirectoryEntry w3svc = new DirectoryEntry("IIS://" + Hos + "/w3svc/1/root");

Session variable empty in iis7 application

試著忘記壹切 提交于 2020-01-06 08:06:32
问题 I have an asp.net application that uses ajax. I want to be able to pass data from one page to another so I store what I want in a session variable and redirect the response to the destination page where i retrieve what i want for further processing. I use: Response.Redirect(path, false) Everything works fine until I try to publish to my staging iis7 server. My session variable always returns empty. But if I try to navigate to the page from within the iis server itself (via right click on the

How do you debug classic ASP?

吃可爱长大的小学妹 提交于 2020-01-06 07:20:45
问题 I have to debug a classic asp site being served by IIS 7 (windows 2008). How can I do this? I have only worked with ASP.NET. 回答1: From an MSDN blog post: http://blogs.msdn.com/mikhailarkhipov/archive/2005/06/24/432308.aspx Here is how to make ASP debugging work: Enable ASP debugging on the server. (I also added DEBUG verb to the asp extension, but I am not sure if it is required). Open classic ASP in VS 2005. Set breakpoint. View page in browser or run without debugging. Debug | Attach to

IIS7 .NET x64 aspnet_regiis -i causes class not registered error

北战南征 提交于 2020-01-06 06:31:27
问题 We are running IIS7 on Windows Server 2008 R2 SP1, with websites running on .NET 2.0. The websites work fine except that global themes do not work. I went ahead and tried to do aspnet_regiis -c in the Framework64 directory and got An error has occured: 0x80040154 Class not registered. The error indicates that IIS is not installed on the machine. Please install IIS before using this tool. If you are wondering, the enabled32bitApps flag is off, so .NET x64 is used. I went ahead and uninstalled

How to route all IIS requests to my MVC app?

家住魔仙堡 提交于 2020-01-06 02:33:18
问题 I'm creating an MVC 3 app that manages business for client companies. When deployed, incoming requests should prominently feature the name of the client company; thus, http://hosteddomain.com/Excelsior/Home/Dashboard/3 should retrieve the home page for a user from client Excelsior. Question 1 : On the development server this works fine ( localhost:28497/ClientCompany/... ) because my RouteConstraint looks up the business name. However, when I deploy this, how do I tell IIS to send all

Create Virtual Directory and Set Permissions IIS7 - Cannot read configuration file due to insufficient permissions

二次信任 提交于 2020-01-06 02:19:28
问题 I am trying to create a virtual directory and set it's permissions using IIS7 and C#. Here is a sample of my code: using (ServerManager serverManager = new ServerManager(webSite)) { ConfigurationSection anonymousAuthenticationSection = config.GetSection( @"system.webServer/security/authentication/anonymousAuthentication", webSite); anonymousAuthenticationSection["enabled"] = true; serverManager.CommitChanges(); return "true"; } This throws an exception and the message is: Cannot read

IIS7 and Enforce lowercase URLs

我是研究僧i 提交于 2020-01-06 01:30:34
问题 I tried to use option in iis7 Enforce lowercase URLs, but when i enabled it all images that had *.JPG extension (uppercase) stopped server. in prev version of iis it was ok when using upper and lower cases, it returned same source may i fix it? or should i create rule for each extension like (jpeg, jpg, gif...) 回答1: I was just reading an article on writing rules, from Scott Gu Tips/Trick: Fix Common SEO Problems Using the URL Rewrite Extension He talks about the issue of excluding static

IIS7 Virtual Directory Redirects

橙三吉。 提交于 2020-01-06 01:07:10
问题 On our old IIS6 server, we handled IIS redirects by: Setting up a virtual directory on the site Pointing the virtual directory to a physical path on the server In the VD properties, set it to redirect to a URL I'm trying to replicate this in IIS7 by doing the following: Set up a virtual directory on the site Point the virtual directory to a physical path on the server In the VD features, double click on HTTP Redirect and add the URL to redirect to. This works fine if I only have one virtual