iis7

Issue with hosting WCF service in IIS7

Hi, I have some issues with hosting a WCF service in IIS. The service was developed in VS2008(C#), and worked well when i hosted it in a console application However when i tried hosting it in IIS, I had issues. Then I created a virtual directory and did the other stuff on IIS manager but came up with this error in my Mozilla browser. ...

How to redirect a form's get variables with IIS7

Is it possible (and if so how) to redirect the url from a forms get variables into something more url friendly using IIS 7's URL Rewrite module. An example would be /Catalog/Search/Title=Something&Order=Price into /Catalog/Search/Title/Something/Order/Price Thanks for any suggestions ...

Storing images for multiple web sites

I've got two web sites (written in c#) which are pretty common: One is an admin site (cms) where you add images into content as needed, through editor pages. Second is the site where the content with images is shown. Images should be stored outside these two sites but where and how? ...

JavaScript events not firing for ASP.NET AJAX Control Toolkit control extenders in IIS 7

[Edited: After cross-testing on a fresh machine and some additional research, this appears to be an issue running in IIS 7. I've read many accounts of problems online but none of the few resolutions I've seen made sense nor (surprise) worked.] Hi folks, I'm new to ASP.NET AJAX and am having what I assume is a configuration issue. I've ...

Sharing login credentials on localhost with 2 web applications on IIS7, possible?

I have 2 asp.net web applications running in IIS7: http://app1.local/ and http://app2.local/ My host.ini file just maps the above urls to localhost: ::1 app1.local ::1 app2.local I added the same machine key to both their web.config's. When I sign into app2, and then go to app1, the call to Request.IsAuthenticated is false? Sh...

How to write URL Rewrite for SSL redirection

I have ASP.NET application on IIS7 that I want to work only under SSL. I followed http://www.iis-aid.com/articles/how_to_guides/redirect_http_to_https_iis_7 and wrote following rewriting rule in web.config: <rule name="Force HTTPS" enabled="true"> <match url="(.*)" ignoreCase="false" /> <conditions> <add inpu...

issue in client side when calling method from service, IIS7

I have issue "The caller was not authenticated by the service." when calling service method from IIS7 in client side. The client and service are in different machines. But when I am giving credentials its work fine. So, is any way to call service method without credentials and without this issue? thanks ...

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

Hello folks, 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 :) ...

Modifications in default document won't take effect

We have a website developed by ASP.NET+IIS7 and its default document is default.aspx. It works fine. But when we tried to switch the default to index.html, weird things happened. We have modified web.config as follows: <defaultDocument> <files> <clear /> <add value="index.html" /> </files> ...

ASP.NET Asynchronous Tasks - Worker Thread Not Releasing?

I am having an issue with testing asynchronous tasks in ASP.NET & IIS7. From what I have read, the worker thread should be released back into the thread pool while the I/O thread performs the async work, allowing ASP.NET to server other incoming requests. But when I simulate heavy load on the web application by making 20 simultaneous req...

500.19 error in IIS7 when an error occurs

Setup: windows 7, IIS7. I am working on an app that is being viewed through the local IIS server, not the built in debugging web server. (So my app url is http://localhost/foo/bar.aspx) There is NO <customErrors> section in my web.config. When an error occurs, i see the following message: HTTP Error 500.19 - Internal Server Error Abs...

Wordpress is ignoring Unicode Chars in URL

Hi, I am using wordpress with this type of permalink: /%year%/%monthnum%/%postname%/ if I use this type of url: example.com/2010/03/तकनीक it treats this url like this example.com/2010/03/ (By ignoring unicode chars) and displays March 2010 archive list. if I use english url: example.com/2010/03/technology then it works perfectly. T...

IIS7 ASP.NET Session drops in seconds

For testing I have 1 isolated page - no masters, controls, …. My sessions are lost after about 30 seconds. I’ve tried setting timeout on the page itself, in web.config, both, and neither. Tried forms authentication with timeout and windows authentication. Recycle the AppPool after changes. I can response.write from the Session_Start ,...

IIS7 ISAPI Filter Module & HttpModule Events - How do they line up?

So IIS7 in Integrated Pipeline mode uses a IsapiFilterModule to shim ISAPI filter DLL's and fire off the correct "events" on the filters, which is quite different than previous versions of IIS or IIS7 in classic mode because this means that HttpModules fire off right along side ISAPI filters in Integrated Pipeline mode. So does anyone ...

ASP.Net Response Filter Clashing with SharePoint 2010 Publishing Site Defaults

Hello everyone, I'm debugging an HttpModule with an ASP.NET response filter. This dynamically rewrites portions of rendered SharePoint WCM pages. The publishing pages render fine in SP2007 on both Server 2003 and Server 2008. However the equivalent pages fail to render in SP2010 B2 on Server 2008 R2 / IIS7. The following error is re...

Steps to Investigate Cause of Web.Config Duplicate Section

Symptoms In IIS 7 and Dot Net 2.0 Integrated app pool: double clicking to view any web.config section results in a the following error dialog. Browsing to the URL displays: "Http 500.19" internal server error.. There is a duplicate... 'system.web.extensions/scripting/scriptResourceHandler' section defined...." Running the ap...

How to manipulate a header and then continue with it in C#?

Hi all, I want to replace an old ISAPI filter that ran on IIS6. This filter checks if the request is of a special kind, then manipulates the header and continues with the request. Two headers are added in the manipulating method that I need for calling another special ISAPI module. So I have ISAPI C++ code like: DWORD OnPreProc(HTTP_FIL...

Installing .net Framework 1.1 globally configured all my websites for 1.1 How do I undo this/permanently reconfigure them back to asp.net 2.0?

I have a Windows 7 machine on which I am using VS2005. .Net 2.0 and .Net 3.5 are installed on it. An app claimed it needed .NET framework 1.1 before it would run. I therefore installed framework 1.1 and it now runs. Problem: Now whenever I try to open a website in VS2005 I get a messages saying it is configured for 1.1 rather than 2.0...

Error when accessing IIS 7 server variable from ASP.Net MVC

I have an ASP.Net MVC application which works fine on IIS 6.0 / Windows Server 2003. When installed on IIS 7.5 / Windows Server 2008 (integrated mode), it works but when the application attempts to generate an URL, it runs into the following error: [NullReferenceException: Object reference not set to an instance of an object.] System.W...

Create Virtual Directory and Set Permissions IIS7 - Cannot read configuration file due to insufficient permissions

I am trying to create a virtual directory and set it's permissions using IIS7 and C#. Here is a sample of my code: using (ServerManager serverManager = new ServerManager(webSite)) { ConfigurationSection anonymousAuthenticationSection = config.GetSection( @"system.webServer/security/authentication/anonymousAuthenticat...