iis-7

IIS 404/405 errors

笑着哭i 提交于 2019-12-12 07:04:00
问题 I am running IIS7 on Windows 7 Pro. I have a VS2010 solution from which some projects are web services using IIS. Until recently all services worked correctly. However, whenever I add/configure/update a service reference or hit it directly via a web browser, I receive the following error: There was an error downloading 'http://localhost/myapp.Web/myservice.svc'. The request failed with HTTP status 404: Not Found. Metadata contains a reference that cannot be resolved: 'http://localhost/myapp

Windows 2008 / IIS 7 Website works fine in 64bit mode does not work in 32bit mode

戏子无情 提交于 2019-12-12 07:03:32
问题 I am building web site on windows 2008 / iis7 that requires 32bit mode for reporting functionality. Everything working fine with app pool allow 32bit applications set to false, but when I set app pool to allow 32bit application set to true I get 404 error because the path being called is getting changed. Below is clip from the IIS log: uat set to false - Works fine 304 means that the request is cached 2012-07-09 18:29:56 xxx.xx.xxx.xx GET /Metron/images/flags/ae.png - 80 - xxx.xx.xxx.xxx

Change http port for “Default Web Site”

落花浮王杯 提交于 2019-12-12 06:00:02
问题 I am using Microsoft.Web.Adminsitration assembly to create Application pool and website. Refering to: Microsoft.Web.Administration in IIS 7 This custom website should have port 80 for http communication. Since "Default Web Site" also uses port 80 by default, I need to programatically change this to another port (say 90). Is there a way of doing this programatically? 回答1: Here's a sample snippet of code to change the existing port 80 http binding on the Default Web site to port 90: int

Configure WCF host for windows integrated security

感情迁移 提交于 2019-12-12 05:42:37
问题 I have WCF service hosted on IIS7.5 running as anonymous - authentication, Please let me know the configuration/steps to run on windows integrated security. Thanks 回答1: Well the nice thing about NetTcpBinding is that it is secured using Transport security, Windows authentication by default. So all you need to do is use it. Your server binding would look something like this: <service name="YourServiceNameHere"> <host> <baseAddresses> <add baseAddress="net.tcp://machineName/VirtualDirectory/"/>

HttpPostedFile.SaveAs() throws UnauthorizedAccessException even though the file is saved?

泄露秘密 提交于 2019-12-12 05:28:18
问题 I have an aspx page with multiple FileUpload controls and one Upload button. In the click handler I save the files like this: string path = "..."; for (int i = 0; i < Request.Files.Count - 1; i++) { HttpPostedFile file = Request.Files[i]; string fileName = Path.GetFileName(file.FileName); string saveAsPath = Path.Combine(path, fileName); file.SaveAs(saveAsPath); } When file.SaveAs() is called, it throws: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException'

SQL Server, Joomla and IIS7

喜欢而已 提交于 2019-12-12 04:54:10
问题 Is there a SQL Server Provider for Joomla? I know that there is a SQL Server Client for PHP in beta and I wonder whether it would be hard to change the database provider to point to SQL Server instead of MySQL. 回答1: According to this thread (specifically this post) in the official Joomla forum some queries in the Joomla source code are MySQL specific and do not work on Microsoft SQL Server. It's Joomla itself, some queries in the code are specific for Mysql. Making Joomla work for MSSQL at

Creating wcf service within IIS in code

∥☆過路亽.° 提交于 2019-12-12 04:46:57
问题 I have a saas service that has multiple groups of sites (each group belonging to a different client) running in the one IIS site with a different iis binding/hostname, well that's the plan. The problem is I have WCF services for the sites as well and as they are running on .net3.5 I can't have multiple base addresses that are using the same protocol. I could upgrade to .net4 and enable this but I'd prefer to only start the services I have to, currently one one site per group, and also not

404 with iis7 asp.mvc doc and pdf files in folder

五迷三道 提交于 2019-12-12 04:36:07
问题 I have got folder "binaries" in my web application. I would like to download pdf and doc (static ontent) files from that direcotory but when i try to get them i have got error 404. I tried to set up static module for *.doc and *.pdf but it not works. 回答1: StaticFileHandler should work. I had the same problem with *.bz2 files and I have solved it using StaticFileHandler. You can find configuration I used below: <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx"

Any tutorials about how to create an ASP.NET MVC 2 website and run it against Local IIS Web Server (not use Cassini)

谁说我不能喝 提交于 2019-12-12 04:32:28
问题 does anyone have any good links/tutorials about how to create a simple ASP.NET MVC website, and have it run against a Local IIS7 Web Server, instead of the default Visual Studio Development Server (aka Cassini). Yes, i tried google, but i fail at getting some good keywords, etc. Cheers :) 回答1: Here are my steps: In IIS, Sites -> Add Web Site... Fill in the name, whatever you want. Set the physical path where your app is located. In the Host Name option, type for example local.test.com Hit OK

CSS and Javascripts are not loading when i host application in IIS7

守給你的承諾、 提交于 2019-12-12 04:18:01
问题 I am trying to host asp.net application in IIS7. I am using published version of application. when i run it all css and javascripts are not loading. the strange is when i run from visual studio it working fine. error in browser console like this : Failed to load resource: the server responded with a status of 404 (Not Found) I analyse the issue and come to know that css and js path is not correct. you can see in below image. it is http://localhost/css/bootstrap.css but it should be http:/