iis-7.5

ServerManager CommitChanges makes changes with a slight delay

天大地大妈咪最大 提交于 2019-12-04 11:10:33
i have a little problem with the ServerManager class (from the Microsoft.Web.Administration assembly) and i hope some of you can help me out. Basically I need to create a new application inside a site (using IIS 7.5) and redirect the user to the new application, inside the same event.This functionality is implemented inside a .net web app using mvc 3/c#. Here is my code: ServerManager iisManager = new ServerManager(); Site mySite = iisManager.Sites["mySitesName"]; ApplicationCollection applications = mySite.Applications; Application app = applications.Add(newapp, physicalPath); app

IIS 7.5 hosted WCF service throws EndpointNotFoundException with 404 only for large requests

时间秒杀一切 提交于 2019-12-04 11:00:52
问题 I have a WCF REST service hosted on IIS 7.5 Windows 2008 R2. The service works as expected except when a client attempts to send a message larger than ~ 25 MB. Specifically, when sending a message size of ~ 25 MB the service receives and processes the message properly, when sending a message of size ~ 31 MB it fails. When hosted locally on VS 2010 the message is received without error. When hosted remotely on IIS 7.5, the service immediately responds with: "System.ServiceModel

MSdeploy deploys an MVC 2 application with wrong virtual directory name

我与影子孤独终老i 提交于 2019-12-04 11:00:08
I'm using MSbuild(v4.0.30319.1) and MSdeploy(v7.1.618.0) to deploy my ASP MVC 2 application on IIS(v7.5). Here are the commands I run to do it: msbuild.exe <path to my csproj>/MyMvcApp.csproj /t:Package /p:configuration=release;outDir=<my output dir> and msdeploy: msdeploy.exe -verb:sync -source:package='<MSBuildOutputDir>\_PublishedWebsites\Webui_Package\MyMVCApp.zip' -dest:auto After build and deploy the application is deployed by address http://localhost/MyMVCApp_deploy and not by address http://localhost/MyMVCApp . I did not expect that the _deploy will be in the address. How can I fix

HTTPS URL Rewrite Rule for Specific Page Using IIS 7.5

痞子三分冷 提交于 2019-12-04 10:51:33
I am trying to get URL rewrite in IIS 7.5 to redirect to HTTPS for a "single page". The rest of the domain should remain HTTP. To do this, I am editing my Web.config file. Can somebody tell me what I am doing wrong in the below rule: <system.webServer> <rewrite> <rules> <rule name="SpecificRedirect" stopProcessing="true"> <match url="^register.aspx$" /> <action type="Redirect" url="https://mail.domain.org/register.aspx" /> </rule> </rules> </rewrite> </system.webServer> Below is what my URL Rewrite module looks like in IIS 7.5 thanks much. I think you are very close, but your redirect will

session variables lost for some reason

夙愿已清 提交于 2019-12-04 09:46:40
问题 I try to setup a E-shop. Next to every item I've an asp:imagebutton when this imagebutton is clicked I'm checking whehter the session varialbe session["basket"] exists or not if not then I add the values in a list (entity class) and I add this list in the session. if the session is not empty then I retrieve the values from session into List and change the list and then add the list back to session. Issue: For some reason I loose the session variable, suddenly. I checked on my watch (time) and

403 forbidden all *.axd files - aragh

≯℡__Kan透↙ 提交于 2019-12-04 09:03:54
I can run the application on my development machine. When I go to publish it to my production machine, it does not work. Says that the .axd files are forbidden. Any ideas? I'm getting so frustrated! Edit: As a test, I've changed to be "storage=file;". When I send a request to the server for generating a chart, the chart actually appears in my folder - it just doesn't get sent back to the browser in the request. ARAGH! What is going on!?!?! Added web.config <?xml version="1.0"?> <configuration> <appSettings> <add key="ChartImageHandler" value="storage=memory;"/> </appSettings>

Amazon Route 53 setup and 301 Redirection setup

白昼怎懂夜的黑 提交于 2019-12-04 08:49:30
问题 I've setup my site on Amazon EC2 server. I am using Route 53 and the servers DNS have already propagated correctly when I set them on Godaddy. I have a few problems. AT the end results I want to make 301 redirect from WWW to NON-www (from www.domain.com to domain.com). I want that redirection to be applicable to all paths (ie. www.domain.com/folder/ to domain.com/folder). In my current configuration I've setup A record for domain.com to point to the Elastic IP address that I've assigned for

A potentially dangerous Request.Path value was detected from the client (?) with valid URL

断了今生、忘了曾经 提交于 2019-12-04 08:44:31
I have an ASP.NET MVC 4 Web Application running on IIS 7.5 for a few weeks now and I noticed that just recently I have been getting quite a lot of the following errors: System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (?). at System.Web.HttpRequest.ValidateInputIfRequiredByConfig() at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context) I know that this exception is caused when the URL path contains illegal characters but the strange thing is that in my case the URL is valid. Here is one example of the

Access Database already exclusively opened by another user

北慕城南 提交于 2019-12-04 08:41:18
I have an access database that sits on server x iis is running on server y. One of my web pages access data from the access database. If someone has the access database open say a end user on our network the web pages fail with a ...already opened exclusively by another user error message. I created a local access database and used linked tables in order to access the tables that way. Even still I get the already opened exclusively by another user error. If I go through windows explorer and browse out to server x and open the database I can without issue. So my question is how can I simulate

C# code to automatically give IIS write access to a folder on Windows Server 2008? Currently throws exception

一曲冷凌霜 提交于 2019-12-04 08:27:00
I am trying to write a command line tool that will give IIS7.5 on windows server 2008 write access to a folder in the wwwroot, so that a web application has access to write to a specific folder within it's base directory. Formerly, you would do this by assigning the IIS_WPG group on the folder giving that group Modify access. In Server 2008 I'm trying to do the same thing with IIS_IUSRS, but an exception is ocurring. Here is the code: private static void ManagePermissions(string directory, string account, FileSystemRights rights, AccessControlType controlType, bool addAccess) { DirectoryInfo