No response in IIS7


When i run the project in IIS7, ParseAddress( ) does not respond. The server waits for an answer indefinitely.
The issue has been reproduced on different servers. It only happens on IIS, not in the Visual Studio dev servers.


santhosh91 wrote Jan 11, 2013 at 3:19 AM

we've the similar problem with parser..

santhosh91 wrote Jan 11, 2013 at 3:21 AM

we've the similar problem. It just works fine locally. When we deploy to IIS7, it just hangs.

wrote Feb 14, 2013 at 7:16 PM

diggityDawg wrote Sep 3, 2013 at 8:25 PM

Just adding a bit to this issue - it's happening for us as well, and appears to get stuck on the RegEx matching. Specifically, line 604 of AddressParser.cs is where it just spins forever:
var match = addressRegex.Match(input.ToUpperInvariant());
I've tried it with many different addresses, many very simple, but it always gets stuck when running in IIS 7.

wrote Sep 3, 2013 at 9:17 PM

diggityDawg wrote Sep 4, 2013 at 10:05 PM

I missed the answer to this, since it was posted in a separate issue, but I can confirm that it works! To save you a click, and keep the solution in the issue it was raised in, just set the "Enable 32 bit Applications" flag to True on your app pool and AddressParser works just fine.

TruxCpwr wrote Nov 20, 2013 at 7:22 PM

When I removed the RegexOptions.Compiled from the regex definition the problem when away for me.

precisionsean wrote Oct 16, 2014 at 8:09 PM

Thank you, TruxCpwr. Your solution worked for me.

I was doing some initial testing using NUnit and everything worked fine. When I started using the library in my web application I encountered the same trouble that diggityDawg mentioned. For what it's worth, I also received the error in a Console application, so my trouble was not IIS-specific.