This post originated from an RSS feed registered with .NET Buzz
by Peter G Provost.
Original Post: Non-Admin Problems with The Regulator
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
Today I needed to quickly check out a nasty regular expression for a project I’m working on. I’ve used Roy Osherove’s Regulator before and always been impressed by it, so I went and grabbed the most recent version.
Installed as Administrator of course, but then I launched it as a non-admin (of course). I got this error dialog:
Oops. I pressed OK and the app came up just fine. (Actually the error dialog was obscured by the “Always on top” splash screen, which made it kinda hard to click, but as a keyboard guy I figured it out.)
So I closed it. And got this error…
Now both of those errors are obvious LUA problems. Writing to a settings file in C:\Program Files is a no-no. Settings belong in your user profile (C:\Documents and Settings\Username) or in HKLM, not in the app install folder.
Interestingly there is another error in the app. When I run it LUA and try to maximize it, I get an “Object Reference Not Set” exception thrown by an overridden WinProc. I’m not sure what is going on in there, but it ain’t good. For the record, when I run the app an as Administrator it works just fine.
Let this be a reminder to all of you to at least test your app as non-admin. Even better, unless you absolutely can’t, do all of your development as non-admin.