iis-6

viewStateEncryptionMode=“Always” not encrypting

大城市里の小女人 提交于 2019-12-07 09:34:01
问题 Due to some security concerns i need to enable View State Encryption. I have viewstate & viewstateMAC turned off but i need to encrypt the "control state" string that is included in the __VIEWSTATE form parameter. Currently my web.config looks like: <pages enableViewState="false" enableViewStateMac="false"> When i set the following, in cassini, my viewstate is encrypted: <pages enableViewState="false" enableViewStateMac="false" viewStateEncryptionMode="Always"> When i make the same change on

ASP.Net using wrong web.config for virtual directory

戏子无情 提交于 2019-12-07 08:58:30
问题 We're running IIS 6 on Windows Server 2003 R2. We want to add a virtual directory that runs under .NET 4.0 to a site that runs under .NET 2.0. We've given the virtual directory its own app pool, and we've configured the virtual directory to run under 4.0. The parent site works fine, but the virtual directory throws errors that reference the parent site's web.config file. We need the virtual directory to use its own web.config file. The GUI in the IIS Manager says that the virtual directory is

Is there a way to always require or force the 'www' subdomain on a site?

*爱你&永不变心* 提交于 2019-12-07 08:28:57
问题 I want to prevent users from going to say example.com and only go to www.example.com, we are using IIS 6. So say they go to example.com it could tack on the www.example.com, etc. Is this a setting somewhere or will I have to code it to check for the subdomain when they land and redirect accordingly? EDIT: I know the best way is to move away from the www prefix but for whatever reason if the user launches a course (this is an LMS) without the www in the URL the tracking does not work for the

CherryPy3 and IIS 6.0

青春壹個敷衍的年華 提交于 2019-12-07 07:23:34
问题 I have a small Python web application using the Cherrypy framework. I am by no means an expert in web servers. I got Cherrypy working with Apache using mod_python on our Ubuntu server. This time, however, I have to use Windows 2003 and IIS 6.0 to host my site. The site runs perfectly as a stand alone server - I am just so lost when it comes to getting IIS running. I have spent the past day Googling and blindly trying any and everything to get this running. I have all the various tools

Could not load file or assembly 'app_code' or one of its dependencies

本秂侑毒 提交于 2019-12-07 07:10:27
问题 This has been bothering me for a while now: Could not load file or assembly 'app_code' or one of its dependencies. The system cannot find the file specified. I'm using visual studio 2008 and IIS6 and for some reason I get this weird error. Why is it trying to load 'app_code', and why does it fail? Tried to resolve it/ find out more using the information in the exception WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software

MSDeploy - sync command to copy files to subfolder of iis app

半腔热情 提交于 2019-12-07 07:07:14
问题 I want to perform a post-build step to copy some files into a website folder using MSDeploy. Eventually I'll be doing this to a remote location (specifying computerName , userName switches etc.), but for now I'm running it locally: "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -AllowUntrusted -verb:sync -source:dirPath="D:\files_to_copy" -dest:iisApp="My Website Name" This works, but it removes all contents of the website folder and replaces them with the contents of "D:\files

Caching is not being clear on site restart

六月ゝ 毕业季﹏ 提交于 2019-12-07 06:45:11
问题 I am using singleton pattern to load some configurations which are in database. If I add some new configurations in database and restart the webservice then it doesn't load those settings. For this If I do restart the IIS server then it works fine. I am not sure where does it reside?Is it loaded in App Domain and I need to restart AppDomain also? I m not clear why this is happening. Because if I restart the service from IIS it should clear all the information from app domain too but not

NULL reference exception while reading user sessions (Reflection)

我的未来我决定 提交于 2019-12-07 06:16:55
问题 I have implemented the code for reading the active sessions using the reference Reading All Users Session and Get a list of all active sessions in ASP.NET. Private List<String> getOnlineUsers() { List<String> activeSessions = new List<String>(); object obj = typeof(HttpRuntime).GetProperty("CacheInternal", BindingFlags.NonPublic | BindingFlags.Static).GetValue(null, null); object[] obj2 = (object[])obj.GetType().GetField("_caches", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(obj)

Hosting MVC2 on IIS6

自闭症网瘾萝莉.ら 提交于 2019-12-07 05:37:33
问题 I need a little help. I'm trying to host an MVC 2 application on IIS6. On my dev machine (XP) it runs perfectly in Cassini or as web site in IIS. First i tried to reference the .mvc extension to aspnet_isapi but when that didn't work i went with the aspx extension instead. Any ideas? I've probably missed something obvious. public class MvcApplication : HttpApplication { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

Where to write URL rewrite rule in IIS 6

依然范特西╮ 提交于 2019-12-06 16:47:52
I have got this code for detection of mobile device. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <clear /> <rule name="MobDedect" stopProcessing="true"> <match url=".*" ignoreCase="false" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_USER_AGENT}" pattern="android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino" />