Last post Oct 14, 2013 02:43 AM by Amy Peng - MSFT
Oct 09, 2013 07:00 PM|neubee|LINK
A REST project was created in VS2008 WinXP, has been in production for years. I just moved it to VS2010 IIS7 Win7. The entire project is one application:
Now the subfolder/local web.config is not read... In other words, myRest/folder1/service.svc/get/xxx works if every value is in the root web.config. For the calls that need to access local level web.config, it errors out. I also get error on HttpContext.Current
= null, which should not happen.
Many articles point to machine.config and ApplicationHost.config, which I don't want to mess around with. Assume the defaults are good. But something is not set up right in IIS?
Please help. Thanks!
Oct 11, 2013 04:25 AM|Illeris|LINK
what if you mark the subfolders as application folders in IIS?
Oct 14, 2013 02:43 AM|Amy Peng - MSFT|LINK
Are you hosting the WCF service in a standard ASP.NET web application or a sharepoint web application?
For standard ASP.NET web application, you can check if the directory (which hosting your WCF service) is configured as a normal virtual directory or an application directory. For an ASP.NET web application, its root directory should be configured as application
virtual directory so that its configuration setting and some Http runtime context data is separated from its parent web.
#Understanding Sites, Applications, and Virtual Directories on IIS 7:
#Virtual Application vs Virtual Directory: