iis-7

Validation of viewstate MAC failed when on page for 20+ minutes

孤街醉人 提交于 2019-12-18 13:24:28
问题 If you open a web page on one of the websites hosted on our server, leave it for 20 minutes and then submit a form, a Validation of viewstate MAC failed. error occurs. What possible reasons could there be for this? 回答1: There's a few reasons this can happen: Auto-Generated Machine Keys: If your application pools have the default idle timeout of 20 minutes AND you're using auto-generated validation and decryption keys then each time the pool starts it will generate a new set of keys. This

System.ServiceModel.Activation.HttpModule error

给你一囗甜甜゛ 提交于 2019-12-18 12:33:16
问题 what is the cause of this error on below line? <system.web> <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="fa-IR" uiCulture="fa-IR" /> <compilation targetFramework="4.0" debug="true"> <assemblies> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> 回答1: This happens when you install .Net 4 before enabling IIS, or if you register WCF after registering .Net 4. In either case, your App Pools will

URL Rewrite on IIS from http to https is not working,

点点圈 提交于 2019-12-18 12:07:22
问题 I have a problem. On IIS I got a web-site with two ports 80 and 443(https) . I want to redirect all the http requests from user to https . I also added Rewrite rule to https , but when I enter in browser http://localhost/site it gives me the same page. I need to redirect user to httpS://localhost/site . Maybe this is because of my local configurations? And I disable Require SSL on IIS . The rule is: <rewrite> <rules> <rule name="HTTPS Redirect"> <match url="(.*)" ignoreCase="false" />

Rotativa PDF generation working locally but not on IIS 7

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 11:41:42
问题 I have an ASP.NET MVC 5 application. It has a simple form and when the user submits it, the form is stored in the cache and then another controller action is called, this action will return the model as a view as a PDF. I have no need to save it locally, just to show it in the browser so that the user can download it. There is no need for a database either, that is why I store the model in the cache. Locally, on Visual studio 2013, it works fine. But when I publish it to IIS 7 I get an

How to use ServerManager to read IIS sites, not IIS express, from class library OR how do elevated processes handle class libraries?

孤街浪徒 提交于 2019-12-18 11:01:29
问题 I have some utility methods that uses Microsoft.Web.Administration.ServerManager that I've been having some issues with. Use the following dead simple code for illustration purposes. using(var mgr = new ServerManager()) { foreach(var site in mgr.Sites) { Console.WriteLine(site.Name); } } If I put that code directly in a console application and run it, it will get and list the IIS express websites. If I run that app from an elevated command prompt, it will list the IIS7 websites. A little

winhttpcertcfg giving access to IIS user in Windows 7

时光怂恿深爱的人放手 提交于 2019-12-18 10:44:42
问题 I need to give access to the IIS user to a pfx certificate. The website is running under the App Pool under some user AppPoolUser. IIS automatically has the user name "IIS APPPOOL\AppPoolUser" and this is what we need to give access when we use aspnet_regiis -ga . However, when i use winhttpcertcfg to give access to the user "IIS APPPOOL\AppPoolUser", it says "No account information was found". The command I use is winhttpcertcfg -i <filename> -c <certificateLocation> - g -a <account name>

Windows Server 2008 as development machine - step by step

折月煮酒 提交于 2019-12-18 10:36:18
问题 I have found many tutorials about using Windows Server 2003 as a development machine, and very little information about Windows Server 2008 for the same purpose. For a nicer experience, I have followed the steps from Convert your Windows Server 2008 to a Workstation. I am searching for the requirements and installation order for IIS 7 with IIS 6 compatibility mode, .NET Framework 3.5 SP1 (does it require the installation of .NET Framework 3.0 feature, or can be installed directly), SQL Server

IIS7 access website from remote computer

99封情书 提交于 2019-12-18 10:33:57
问题 i created a site on my iis7 it's like http://localhost:88/my i also can access it like this http://myip:88/my but when a friend of mine from a remote computer tried to access it like this http://myip:88/my it gives him 404 not found anybody can tell me what should i do to make it work from remote ? 回答1: Check your firewall. You will have to open TCP Port 88. Part 4: Opening Up to the Outside World Windows Firewall blocks the World Wide Web Services port by default (Port 80). With this port

IIS App Pool/Restart and ASP.NET

落爺英雄遲暮 提交于 2019-12-18 10:24:05
问题 We are using IIS7 to host an asp.net web-based application. In this environment administrators and developers can deploy code to the application on a regular basis. The new code or app goes as a DLL to the ASP.NET bin folder. Upon deployment of the new DLL, IIS restarts the process, impacting (slowing down) all online users. Is there a way to configure IIS to run the process in the background and once ready make the switch from old state into new without impacting the users?! Thanks in

IIS 7 Log Files Auto Delete?

*爱你&永不变心* 提交于 2019-12-18 10:02:25
问题 Is there any feature in IIS 7 that automatically deletes the logs files older than a specified amt of days? I am aware that this can be accomplished by writing a script(and run it weekly) or a windows service, but i was wondering if there is any inbuilt feature or something that does that. Also, Currently we turned logging off as it is stacking up a large amount of space. Will that be a problem? 回答1: You can create a task that runs daily using Administrative Tools > Task Scheduler. Set your