Posted by jpluimers on 2009/11/09
This just had this happen on a Windows 2003 server with a client’s client.
Any .asmx page would return a 404 error like this IIS log line shows:
2009-11-06 09:46:05 127.0.0.1 GET /MyVirtualDirectory/MyWebService.asmx – 80 – 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 404 2 1260
Searching for “iis 404 2 1260 asp.net” found this top from Marc Valk, that solved the issue: ASP.NET v2.0.5727 was prohibited to run.
Which means that none of the ASP.NET bound extensions would work: they all returned 404 errors.
(Note: if you are wondering where your IIS log files are, this post shows you).
–jeroen
Posted in .NET, ASP.NET, Development, IIS, SOAP/WebServices, Software Development, Web Development | Leave a Comment »
Posted by jpluimers on 2009/09/10
Every now and then I need the ASP.NET RegularExpressionValidator control to validate some user input on a web-page using .NET Regular Expressions (which are very similar to regular expressions used in other languages and frameworks).
Somehow, I have lost loads of time because many of the hits on Google show up high in the results, but do not actually help that much.
So I decided to put up a bunch of links to pages that I think are relevant, or helped me much.
This list is not definitive: please comment when you have links to better information!
Note: this list is current at the instant of the latest edit timestamp: tools might have improved (or disappeared) since then.
Opnions are mine; if you do not agree: please convince me why.
Tools
Regular Expression builder applications
- Expresso – free .NET WinForms application to visually build and test regular expressions (free registraion required after 60 days of trial usage)
- RegexWorkbench – free .NET WinForms application to build and test regular expressions (much more rudimentary than Expresso)
Regular Expression test applications
- RegexLib tester – free on-line regular expresion tester where you can choose the client platform (.NET/ClientSide/SilverLight)
- The Regulator – free .NET WinForms application to test regular expressions with built in support for RegexLib.com
- The Regex Coach – free LISP Windows application to test regular expressions and tries to explain them in plain english
- RegExPal – free on-line JavaScript regular expression tester (tests the client side only)
- ReWork – free on-line JavaScript tester with samples in JavaScript/PHP/Python/Ruby
- RegexDesigner.NET – free .NET WinForms application to test regular expressions and generate C#/VB.NET code from them (ot really a “Designer” after all and much less sophisticated than The Regulator)
Tools lists
Tools not worth looking at
- Regulazy – too rudimentary
Sites/Documentation/Examples
Some comments on common regular expression solutions
- RegEx for email usuaully reject valid email adresses like jeroen+info@pluimers.subdomain.info
Dominic has some very nice info on validating email adresses
- RegEx for a minimum number of characters usually contain \w, which is not any character!
Better use ^(.{6,})$ than ^(\w{6,})$ if you want a minimum length of 6 characters.
Bugs
Posted in .NET, ASP.NET, Development, Encoding, JavaScript/ECMAScript, LISP, RegEx, Scripting, Software Development, Unicode, Web Development | Leave a Comment »