ultidev

UltiDev Cassini and <system.webServer> web.config settings

南楼画角 提交于 2020-01-25 10:45:07
问题 MS Cassini Development Web Server is a nice product that executes web requests in a similar way that IIS7 does. Every request (event for static content) goes through the same .Net pipeline without exception. All custom HttpModule can handle any request. But sometimes you don't want these modules to execute for certain content (most often static content). In this regard, MS Cassini doesn't read/obey <system.webServer> web.config settings like IIS7 does. I'm particularly interested in these

Redirect Web Page Requests to a Default Sub Folder

有些话、适合烂在心里 提交于 2019-12-25 05:28:29
问题 I am using UltiDev Web Server Pro and have all my aspx files are located in a sub folder 'WebForms'. I want to be able to default all requests for pages to this folder such that they can just type: http://myserver/somepage.aspx instead of http://myserver/WebForms/somepage.aspx . Is this possible? EDIT: Here is the VB.NET version of the solution below including a check for case sensitivity: If Not HttpContext.Current.Request.Path.ToUpper.Contains("/WEBFORMS/") Then Context.RewritePath("

Redirect Web Page Requests to a Default Sub Folder

妖精的绣舞 提交于 2019-12-25 05:28:05
问题 I am using UltiDev Web Server Pro and have all my aspx files are located in a sub folder 'WebForms'. I want to be able to default all requests for pages to this folder such that they can just type: http://myserver/somepage.aspx instead of http://myserver/WebForms/somepage.aspx . Is this possible? EDIT: Here is the VB.NET version of the solution below including a check for case sensitivity: If Not HttpContext.Current.Request.Path.ToUpper.Contains("/WEBFORMS/") Then Context.RewritePath("