iis-7.5

Web.config urlMappings - works for local pages, not remote pages

烈酒焚心 提交于 2019-12-11 20:18:26
问题 I have a MVC4/.Net 4 website running on IIS 7.5. In my web.config file I have the following in my block: <urlMappings enabled="true"> <add url="~/2013calendar" mappedUrl="~/CustomerService/RequestPocketCalendar" /> <add url="~/teachers" mappedUrl="http://www.somexternalsite.com/teachers/" /> </urlMappings> The local redirects all work great, but anything that is redirecting off the site, such as the /teachers link in the above example return "http://www.somexternalsite.com/teachers" is not a

IIS Reverse Proxy

孤街浪徒 提交于 2019-12-11 19:12:11
问题 I've got two websites. XX.XX.XX.XXX:5917 which is a webforms website And XX.XX.XX.XXX:5916 which is an mvc website. Both websites on the same IIS 7 server. I can navigate each website, login, etc. However, when a user goes to XX.XX.XX.XXX:5917/Report I want the content from XX.XX.XX.XXX:5916/Report to be served up, but the url to remain XX.XX.XX.XXX:5917/Report. To do this, I'm trying to set up a reverse proxy on the 5917 site to serve up content from 5916. When I have a redirect rule in

How do I use web.config to redirect to a query string on Windows Server 2008 R2?

点点圈 提交于 2019-12-11 18:15:36
问题 I've got a redirect I want to do using web.config on an IIS 7.5 server running Windows Server 2008 R2. I'd like to simply make a shortcut URL for another URL with a very long query string: www.example.com/redirect -> www.example.com/long_url.aspx?key1=value1&key2=value2 When I add the following rewrite rule to web.config though, it gives a 500 Internal Server Error: <configuration> <system.webServer> <rewrite> <rules> <rule name="^redirect$" stopProcessing="true"> <match url="^redirect$" />

How to do Single Sign On for multiple MVC 4 web applications on IIS 7.5

梦想与她 提交于 2019-12-11 17:26:51
问题 I have 2 MVC 4 applications deployed on IIS 7.5. I would like to achieve a single sign on all of them. I have following web.config settings in both the applications - <authentication mode="Forms"> <forms loginUrl="~/Account/Login" enableCrossAppRedirects="true" path="/" name=".MVCAuthCookie" timeout="45" defaultUrl="/" slidingExpiration="false" protection="All" cookieless="UseCookies" /> </authentication> <machineKey validationKey=

SignalR warning on startup

[亡魂溺海] 提交于 2019-12-11 16:45:56
问题 I have a SignalR Hub (called SignalRHub) on which I have enabled tracing to diagnose intermittant delivery failures. When I install the hub into IIS 7.5 (Windows 3008 R2) the tracing outputs the following warning SignalR.ReflectedHubDescriptorProvider Warning: 0 : Some of the classes from assembly "Microsoft.AspNet.SignalR.Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could Not be loaded when searching for Hubs. [C:\Windows\Microsoft.NET\Framework64\v4.0.30319

How to forward mydomain.com to mydomain.net web site

痴心易碎 提交于 2019-12-11 15:25:01
问题 "mydomain .com " is hosted on iis 7.5 and referenced at google, For the same website, I need to use a second domain name: "mydomain .net " . I would like to redirect people who type "mydomain.com" to "mydomain.net" without losing previous google referencing, please how can I do that ? Thanks in advance. 回答1: Within IIS it is necessary to duplicate the mydomain.net web site folder, and to link the duplicated web site to mydomain.com , then select mydomain.com and click on HTTP redirect (which

404 Error when trying to execute web service

喜你入骨 提交于 2019-12-11 15:23:37
问题 I have a simple web service I have created. I'm using Visual Studio 2012 .NET 4.5. Here is the service contract: using System.Runtime.Serialization; using System.ServiceModel; namespace GEMS.Core.WCFService { [ServiceContract] public interface IMenuService { [OperationContract] void AddMenuItem(string menuId, string parentId, string title, string description, string url); [OperationContract] void UpdateMenuItem(string menuId, string parentId, string title, string description, string url);

Create Virtual Directory IIS7 to be use in GetFolder in Server.CreateObject(“Scripting.FileSystemObject”)

☆樱花仙子☆ 提交于 2019-12-11 14:23:23
问题 I am trying to create a virtual directory at my IIS7 and then use the virtual directory in the following code sPath = "\CMapped\database\attendanceData\" sDir = Server.MapPath(".") & sPath response.write sDir Set fso = Server.CreateObject("Scripting.FileSystemObject") Set obj_FolderBase = fso.GetFolder(sDir) response.end But I got the following error: What I have done is as follow: I created the virtual directory and set the path to C:\ Drive. My localhost is at D:\ drive. I have also set

IIS 7.5 no static or dynamic compression

随声附和 提交于 2019-12-11 14:15:47
问题 I can't get static or dynamic compression to work on a new server for .ASP, .JS or .CSS files. I'm running Windows Server 2008 R2 Standard 64 bit. Under IIS Role Services, I have ASP installed, as well as static and dynamic compression. I'm using DefaultAppPool with the standard ApplicationPoolIdentity. I've enabled all the compression options for the site. Here's the relevant section of my applicationHost.config (this is all under system.webServer): <httpCompression directory="%SystemDrive%

Classic ASP using MVC routing on IIS7

守給你的承諾、 提交于 2019-12-11 13:33:40
问题 After taking the first hurdle, I found something amusing. Direct access (i.e. /OLD/ASP/myFile.asp ) to the page works (well, no, but it returns a plausible ASP error ;) ). However, trying to route the page such as: routes.MapPageRoute( "OldASP", "Page/{*id}", "~/OLD/ASP/myFile.asp", false, new RouteValueDictionary(), new RouteValueDictionary(new { @id = @"\d+" }) ); Returns the magnificant There is no build provider registered for the extension '.asp'. error (which was originally solved for