Vault Won't Launch - Unable to Connect

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Vault Won't Launch - Unable to Connect

Post by btd » Mon Mar 15, 2010 9:13 am

I installed Vault 3.16 (3658 SG) in a test environment successfully.

But when I try and launch the Vault client and login as admin account, I am getting following error:

Unable to connect to http://pwexiweb2/VaultService. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client.
Web Exception: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

The request failed with the error message:
--
<html>
<head>
<title> is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/VaultService' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i> is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

<b> Description: </b>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.

<br><br>

<b> Exception Details: </b>System.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)<br><br>

<b>Source Error:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code>

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>

</td>
</tr>
</table>

<br>

<b>Stack Trace:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>

[BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190

[ConfigurationErrorsException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11200744
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +76
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +281
System.Web.Compilation.BuildManager.CompileGlobalAsax() +50
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676

[HttpException (0x80004005): is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025

[HttpException (0x80004005): is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11294470
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +11168168
</pre></code>

</td>
</tr>
</table>

<br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

</font>

</body>
</html>
<!--
[BadImageFormatException]: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
[ConfigurationErrorsException]: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName)
at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
at System.Web.Compilation.BuildManager.CompileGlobalAsax()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
[HttpException]: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
[HttpException]: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
-->

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Won't Launch - Unable to Connect

Post by Beth » Mon Mar 15, 2010 9:37 am

Your issue has been responded to in your previous post: http://support.sourcegear.com/viewtopic.php?f=5&t=13263. Is that particular issue fixed already and this is a new one?

Can you access the Vault home page in a browser at http://pwexiweb2/VaultService?
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Mon Mar 15, 2010 9:55 am

No, this is a new issue. As I am starting from scratch and trying to just get Vault 3.16 installed. So forget the restore issue.

Yes I can access http://pwexiweb2/VaultService.
A closer look on the above link provides a link to the FQDN.
So itried this
http://pwexiweb2.itestextranet.com/Vaul ... login.aspx
and I got Server Application Unavailable.


Question: I am working on Windows Server 2003 x64 SP2. The DB is same only it is using SQLServer 2005.

Any ideas?

Found this error in the Eventlog

Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1334
Date: 3/15/2010
Time: 11:50:01 AM
User: N/A
Computer: PWEXIWEB2
Description:
Failed to initialize the AppDomain:/LM/W3SVC/1/Root/VaultService

Exception: System.IO.FileLoadException

Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(String assemblyName, String typeName)
at System.AppDomain.CreateInstance(String assemblyName, String typeName)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Won't Launch - Unable to Connect

Post by Beth » Mon Mar 15, 2010 10:27 am

Go to your IIS Manager and click on Web Service Extensions. Look to the right side of the window. Is 2.0 aspnet set to allow? If not, change that setting and try accessing the web page again.

If it's already set to allow, then there's probably some component that just needs to be registered again. To re-register the 2.0 .NET framework, run the following command at a command prompt:
C:\Windows\Microsoft.Net\framework\v2.0.50727\aspnet_regiis -i
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Mon Mar 15, 2010 11:57 am

OK here is where I am at.

I did reinstall IIS.
I did check to make sure that asp.net was allowed in Web server Extensions.

Still getting error "unable to connect to http://pwexiweb1/VaultService.

What else can I try

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Won't Launch - Unable to Connect

Post by Beth » Mon Mar 15, 2010 12:34 pm

I did reinstall IIS.
That wasn't needed here. The .NET framework needs to be put in after installing IIS, so at this point you need to run the following command:

Code: Select all

C:\Windows\Microsoft.Net\framework\v2.0.50727\aspnet_regiis -i
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Mon Mar 15, 2010 12:47 pm

Same error.


Unable to connect to http://pwexiweb1/VaultService. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title> is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)</title> ...

I'm lost here but I do have some additional information.

Just for fun, I created a "sgvault" database on my development server. Which is on Windows 2003 x86 SP2.
I then restored it from my production backup.
I then installed v.16 successfully.
All is well here.

So I'm thinking it has something to do with x64.

Thoughts?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Won't Launch - Unable to Connect

Post by Beth » Mon Mar 15, 2010 1:42 pm

Sorry, I missed the part where you said it was a 64-bit server. Vault 3.1.6 only runs on 32-bit IIS. I don't think we tested installing this version on a 64-bit server. What you could try is setting IIS to 32-bit mode with the command:

Code: Select all

cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”


You are wanting to upgrade to the latest version of Vault, correct? If so, I wouldn't worry about whether Vault 3.1.6 works. Once the database is in place, you could either install Vault 3.1.9 (don't bother testing) just to get the database to that version, and then go right to Vault 5.0.3 64-bit. You could try skipping the 3.1.9 step, but I don't know what will happen.

Also, at the point you get to installing Vault 5.0.3, if you want to run the 64-bit version, you will want to have IIS back in 64-bit mode.
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Tue Mar 16, 2010 10:28 am

OK I have restored the Vault database (3.16) to my SQLServer 2005 Database server.
Now on my web server (x64 Windows 2003 Server) I downloaded the X86 versions for 3.19 and 5.03.
The 3.19 installation went just fine.
But when I installed the 5.0.3 I got this message

Detaching and renaming existing sgmaster database files...OK
Creating SourceGear master database schema...CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\sgmaster.mdf' because it already exists. Change the file path or the file name, and retry the operation.
Vault Upgrade Setup is exiting due to a failure or cancellation. Error Code = -1001
After pressing [OK] the install will complete and launch a Web browser where you can enter license keys. Please log in with the user name and password that you supplied during this install.
Please press OK to continue.

When I pressed OK then was not redirected to the site but got this error.

There is a problem with the Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support vendor.

Please advise

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Tue Mar 16, 2010 11:04 am

I also tried this..
Restore my test sgvault db from production (3.16).
install 3.19 x86 only on a Windows 2003 SP2 x64 OS.

here is what I get
http://pwexiweb1.itestextranet.com/VaultService/ Success
http://pwexiweb1.itestextranet.com/Vaul ... rvice.asmx Is not a valid Win32 application
http://pwexiweb1.itestextranet.com/Vaul ... login.aspx Is not a valid Win32 application

What am I doing wrong.

Can you call me?
513 852 7066 W
Cincinnati Ohio

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Won't Launch - Unable to Connect

Post by Beth » Tue Mar 16, 2010 5:29 pm

I can meet in the morning this. The state you need to be in is to have an original backup of your Vault 3.1.6 database ready.
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Wed Mar 17, 2010 6:02 am

OK Can you call me at 10am EST?
513 852 7066

Thanks

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Wed Mar 17, 2010 6:20 am

I'm all set for 10am EST call.
I have the 3.16 database restored to a test server.
I have all the license keys (4.01 and 5.0)
And I have downloaded the appropriate upgrade msi files.

Please call me at 10am est.

I appreciate your help as I've been struggling with this upgrade process for 2+ days running.

Thanks

btd
513 852 7066

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: Vault Won't Launch - Unable to Connect

Post by btd » Wed Mar 17, 2010 6:59 am

I'm available now or 10am est

Thanks

513 852 7066

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Won't Launch - Unable to Connect

Post by Beth » Wed Mar 17, 2010 7:13 am

Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread? Then we can take discussing these other details offline and you won't need to have your phone number posted. 10 EST has a conflict for me.
Beth Kieler
SourceGear Technical Support

Post Reply