Vault 3.5.2: crash on Win2003 64bit - BadImageFormatExceptio

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
MartinVobr
Posts: 2
Joined: Tue May 08, 2007 6:57 am

Vault 3.5.2: crash on Win2003 64bit - BadImageFormatExceptio

Post by MartinVobr » Tue May 08, 2007 7:17 am

Hello,
I've tried to install vault 3.5.2 on 64bit windows 2003 server. When I tried to access the webservice following error was displayed:

Server Error in '/VaultService' Application.
--------------------------------------------------------------------------------

is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

-----
The problem is probably linked to the mmsseclib.dll file. When this file is removed from the /VaultService/bin/ folder no error is displayed.

I'd like to ask two questions:

- Is it safe to run Vault server without mmsseclib.dll? What functionality will be affected?

- is it possible to obtain version of mmsseclib.dll which will work on 64bit Windows2003 server?

Best regards,
Martin Vobr,
www.rebex.net

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue May 08, 2007 7:59 am

- Is it safe to run Vault server without mmsseclib.dll? What functionality will be affected?
This .dll is used to set directory permissions for Vault during the installation. You don't need it for Vault Server operations, though you may need it if you ever uninstall Vault.

You can delete the file, or rename it to mmsseclib.old

Another option that may work:

In the web.config file in the Vault Service directory, uncomment this line:
<trust level="Full" originUrl=""/>
Linda Bauer
SourceGear
Technical Support Manager

MartinVobr
Posts: 2
Joined: Tue May 08, 2007 6:57 am

Post by MartinVobr » Tue May 08, 2007 8:36 am

Thanks,
I'll delete the file.

Martin Vobr
www.rebex.net

kasti
Posts: 108
Joined: Tue Apr 20, 2004 4:21 am
Location: Austria

Post by kasti » Wed May 09, 2007 12:29 am

This is the same error that you get when IIS is configured to use ASP.NET in 64bit mode. AFAIK, vault server only supports the 32bit version, so standard IIS config on a 64bit machine is wrong.

See here how to switch it to 32bit ASP.NET:

http://support.microsoft.com/kb/894435


Basically it boils down to these 2 commands you need to run:

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

and

%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i


Cheers,
Kasti.

P.S.: Take care if you got other 64bit ASP apps running on the same IIS.

Locked