iis-7.5

How to rewrite URL as subdomain in asp.net without actually creating a subdomain on server

☆樱花仙子☆ 提交于 2019-11-27 23:16:32
I hope this isn't the first time i'm asking this question on SO. I've URLs in my website and which are using query string values For example: http://foo.com/xyzPage.aspx?barvalue=yehaa to http://yehaa.foo.com/ Please suggest how it can be accomplished without actually creating subdomains on server .. I've IIS 7.5 installed on server machine and using Asp.net 4.0 . Many thanks EDIT following our comments: To access http://foo.com/xyzPage.aspx?barvalue=yehaa using http://yehaa.foo.com/ , you have to use the following rule: <rules> <rule name="Rewrite subdomains"> <match url="^/?$" /> <conditions

The layout page “{path}” could not be found

白昼怎懂夜的黑 提交于 2019-11-27 22:52:34
We just got a new Windows 2008 R2 server and I am trying to set up an MVC 3 site in IIS 7.5 with the Razor View Engine. I am getting a strange error when I access the default route. The layout page "~/Views/Shared/_Layout.cshtml" could not be found at the following path: "~/Views/Shared/_Layout.cshtml". This is strange because I explicitly set the Layout from within /views/home/index.cshtml like so: @{ Layout = "~/Views/Shared/_Layout.cshtml"; } I am 100% certain that the /views/shared/_layout.cshtml exists in the file system. Here's a screenshot. If I remove the Layout = "~/Views/Shared/

PHP flush stopped flushing in IIS7.5

泄露秘密 提交于 2019-11-27 22:29:28
We have been using php flush to "blank" a page immediately as soon as it is clicked, and also to send the navigation and main components of the page so that a page appears nearly instantly, even though sometimes the content may take a long time to load. This has been working very well. Recently we upgraded from IIS 7.0 to 7.5 and now flush does not work. While investigating the problem we have turned off compression for both static and dynamic files. We have also turned off output caching. We also have zlib compression turned off and output buffering off in php.ini. In order to test the

SignalR WebSockets on IIS 7.5

こ雲淡風輕ζ 提交于 2019-11-27 21:56:15
On my IIS 7.5, my SignalR application always used long polling. As per my search, IIS 7.5 does not support WebSockets yet. I hope, I missed some tools or configurations to enable WebSockets in IIS 7.5. Or I didn't? Here's a summary of the required setup steps to host on Windows 2008r2 with IIS 7.5: Update the SignalR application's web.config file to enable "run all managed modules for all requests" (for short, this is the RAMMFAR setting). Update the web page that uses SignalR to communicate with the server: Add a reference to the json2.js library. Add a tag that forces the content to display

Validation type names in unobtrusive client validation rules must be unique

ぐ巨炮叔叔 提交于 2019-11-27 21:50:53
Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: required This is referring to the EmailAddress property, here: public class LoginModel { [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email")] [AdditionalMetadata("Style", "Wide")] public string EmailAddress { get; set; } [Required] [DataType(DataType.Password)] [Display(Name = "Password")] [AdditionalMetadata("Style", "Wide")] public string Password { get; set; } } I'm not using the same type of validation rule twice here. This works fine locally

IIS: Web Application hangs periodically needs system reboot

牧云@^-^@ 提交于 2019-11-27 21:40:12
问题 Once every 18-24 hours my IIS stops responding on a particular website. We have upgraded our web application a week ago and this seems to have started it. When it happens: Any request to the asp.net application hangs for ever Restarting the application pool gives the error 0x80070425 (The service cannot accept control message at this time) I cannot even log off from the computer, Log Off hangs. The only way is to restart the machine Sometimes it gets triggered with some unhandled ado.net

Enabling PUT on IIS 7.5 for an ASHX handler using Windows Authentication

我是研究僧i 提交于 2019-11-27 19:29:51
问题 I have an ASP.NET (.NET 4) website that uses http PUT for an .ashx generic handler. The PUT call originates from a Silverlight front end. All works in VS 2010 on my local machine (Cassini web server). Then I deployed to an IIS7.5 Win Server 2008 R2 box. The silverlight/website is fine, but PUT calls to the .ashx handler are met with a Windows Login Prompt. This is a local intranet so Windows Authentication (with NTLM & Negotiate providers) is the only enabled authentication. Then I read this:

HTTP Error 403.14 - Forbidden IIS Error for ASP.Net MVC 4 Application

南笙酒味 提交于 2019-11-27 19:04:01
we developed an asp.net mvc 4 application. in vs 2012 this work fine. we publish this web application and putting it on iis 7.5, but when we want to browse web application through iis, this error message was show: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. we think that this error may be from this web application, but we create another asp.net mvc 4 application (without any change and with internet template) and putting it on iis, and again top error show to us. we search in the internet and see more poeples that this problem was

Setting Default WebPage in IIS 7.5

和自甴很熟 提交于 2019-11-27 18:39:48
问题 I'd a HD problem in machine where my Intranet IIS server was installed and I've reinstalled all the software. I've restored the site data into new IIS but now, when I type the server address in a browser in a client or even server machine, it doesn't find the page ("Default.aspx"). I can allow "Directory browsing" and click the file but, obviously, I don't want this alternative, neither obligating users to type "Default.aspx" in the end of the URL. Maybe it's a very simple configuration, but

Asp.net Sessions Getting Crossed / Mixed Up

。_饼干妹妹 提交于 2019-11-27 18:36:39
Few weeks ago we had one of our customers contacting us saying that sometimes when he creates an activity it gets created under someone else's name! We did some troubleshooting and couldn't find anything. We asked the user to contact us the next time he was experiencing these issues. He did contact us and we were able to do a gotomeeting with him and see the issue with our own eyes. It was not only the activities, he was recognized as someone else in the application. He had access to everything that other person should had access to. That was when we realized we are having a session mixed up