Error while applying logon theme

Method failed with unexpected error code 193

Details of the error:

ee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Method failed with unexpected error code 193.
   at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
   at System.Security.AccessControl.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory)
   at System.Security.AccessControl.FileSecurity..ctor(String fileName, AccessControlSections includeSections)
   at h.a(String A_0, Boolean A_1)
   at b.c()
   at b.n(Object A_0, EventArgs A_1)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
LogonStudioVista
    Assembly Version: 1.0.1.7
    Win32 Version: 1.0.1.6
    CodeBase: file:///C:/Program%20Files%20(x86)/Stardock/Object%20Desktop/LogonStudio/LogonStudioVista.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
AxInterop.WBOCXLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Stardock/Object%20Desktop/LogonStudio/AxInterop.WBOCXLib.DLL
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3069 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3069 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interop.WBOCXLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Stardock/Object%20Desktop/LogonStudio/Interop.WBOCXLib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

7,425 views 12 replies
Reply #2 Top

vista 64bit?

Reply #4 Top

I have the same problem on Vista 64-bit and have discovered a workaround:

Create a new theme with LogonStudio.  When this is done it will be applied.  Afterwards, I am able to apply any LogonStudio theme until I shutdown LogonStudio.  The next time I start it up, I have to go through these steps again.

Reply #5 Top

Hmm . . time to email [email protected] so they can feed this to the devs.

Reply #6 Top

The problem here is that .NET is loading a DLL in the background during the part of the program where it's trying to apply a logon. LogonStudio Vista is running in 32-bit mode, but at that point in time, it's turned off the 32-bit DLL redirection so as to be able to access the "real" 64-bit DLL directory (which, ironically, is called system32). The net result is it tries to load a 64-bit DLL into a 32-bit process. The result is not pretty.

This is on our list to be fixed. As a workaround, see above (this works because once it's loaded the DLL it doesn't have to do so again), or you could try copying advapi32.dll from your c:\windows\syswow64 directory to the LogonStudio directory (probably Program Files/Stardock/Object Desktop/LogonStudio).

Reply #8 Top

Quoting dnmoqf, reply 7
advapi32.dll does not seem to help for me

 

Same here. :(

Vista64 Business Ed.

UPDATE

The version installed from Impulse causes the 193 error. Downloading straight from Stardock's website (links to CNET) seems to do the trick. Problem solved.

Reply #9 Top

advapi32.dll does not seem to help for me

Same here.

It's been over two months since the original report - what's the holdup?

Reply #10 Top

Well a] it's a application we give away for free, so it's not our number-one priority, and b] we've been getting proper Windows 7 support in as well. The version I have in my hands appears to have this fixed, though there are a few other things that need fixing before we can make a release.

 

Reply #11 Top

I found if you load the latest icon packager and then open up one of the default logons from C:\Program Files (x86)\Stardock\Object Desktop\LogonStudio\DefaultLogons then apply it it seems to work fine with every logon after that. But... The latest Icon Packager is a bit buggy... I found that my Outlook Icon that is pinned to my start menu stopped working and no longer opens outlook. Then again I use my quick launch outlook icon anyways so it isn't too big of a deal.

I have uninstalled and re-installed all the applications serveral times and it works every time.

Reply #12 Top

I hope the fixed version of Vista Logon Studio comes out soon. Oh and the version of Icon Packager that seems to be buggy but seems to kick start Vista logon studio which the version I am using is 4.20.178

 

Sorry had to edit that.