cmdlineprocessor.exe runs as unregistered from ASP.NET

For technical support for all editions of CSE HTML Validator. Includes bug reports.

cmdlineprocessor.exe runs as unregistered from ASP.NET

Postby johnmate » Thu May 20, 2010 5:01 am

Hi,

I'm using the following VB.NET code to call cmdlineprocessor.exe from a web page and validate an HTML file. This works fine, but it stops processing after 20 errors and shows a message saying "This is an unregistered, evaluation version of CSE HTML Validator Professional...". I'm running this on a computer with fully a licensed version of CSE HTML Validator Pro v9.0302.

Code: Select all
Dim p As Process = New Process()
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.StartInfo.FileName = "C:\Program Files\HTMLValidator90\cmdlineprocessor.exe"
p.StartInfo.Arguments = "-v0 -x1 -veofile C:\BatchFiles\ValidatorEngineOptionsJLC.veo C:\ResultsFolder\HtmlFileToValidate.txt"
p.StartInfo.WorkingDirectory = "C:\Program Files\HTMLValidator90\"
p.Start()
p.WaitForExit()
p.Close()


I've tried impersonating the user account for which I installed the licensed software but the problem persists. When I run the same command directly from the command prompt it works fine: it validates all the errors (max number of errors is set to 999 in the VEO file) and runs as a licensed version.

Is there a registry setting I need to check, or something else I need to do to get this to work?
Many thanks.
johnmate
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Thu May 20, 2010 4:26 am

Re: cmdlineprocessor.exe runs as unregistered from ASP.NET

Postby Albert Wiersch » Thu May 20, 2010 9:07 am

You should run it under the same user as it is run from the web page, then register it.

Alternatively, you can register it for all users on the system, by creating some entries in "HKEY_USERS\.DEFAULT\Software\AI Internet Solutions\CSE HTML Validator v4":
http://www.htmlvalidator.com/htmlval/ht ... #q20010124

If that still doesn't register it, then please let me know.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: cmdlineprocessor.exe runs as unregistered from ASP.NET

Postby johnmate » Fri May 21, 2010 8:39 am

Many thanks Albert. I configured the website's application pool to run as the user account for which CSE HTML Validator is registered. Now everything works fine, and the world seems a brighter place.
johnmate
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Thu May 20, 2010 4:26 am


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest