Post installation problem, logging as an Admin!

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

Moderator: SourceGear

alzogbi

Post installation problem, logging as an Admin!

Post by alzogbi » Wed Feb 25, 2004 1:34 am

Hi,

The installation of Vault was very smooth and configuration was done successfully. Now, I am trying to use the admin tool to start discovering the product. I enter the admin login name 'admin' (no quotes), the password and finally the server and BANG, a dialog box show saying:

"The server returned an unknown status code ({0}).

Did anyone here experience the same? I will be grateful to hear from the gurus.

Cheers,

-alzogbi

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Feb 25, 2004 8:55 am


alzogbi

The first yes, the second no ..

Post by alzogbi » Sun Feb 29, 2004 12:56 am

Hi Dan,

I can access the first page but not the second one. I get a .NET Exception thrown:

Error loading XML file c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. (c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config)

Thanks for your help.

-alzogbi

sterwill
Posts: 256
Joined: Thu Nov 06, 2003 10:01 am
Location: SourceGear

Post by sterwill » Sun Feb 29, 2004 11:43 am

It looks like there's a problem with the .NET framework on the Vault server host. We recommend you use version 1.1 of the .NET framework (it appears that version 1.0 is being used), however the error appears to reference the machine-wide configuration file, which I haven't seen before. I'd suggest re-installing the .NET framework, version 1.1, on the server.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`

alzogbi

Re-mapping with .NET 1.1

Post by alzogbi » Mon Mar 01, 2004 1:07 am

Shaw,

Thanks for the insight. I just re-mapped the VaultService application with .NET 1.1 and this was the trick. This server has both framework versions running with .NET 1.1 installe with noupgrade param.

Cheers,

Mazen

gdmccarty
Posts: 6
Joined: Wed Apr 14, 2004 4:53 am

Same problem (sort of)

Post by gdmccarty » Wed Apr 14, 2004 4:56 am

I get the same error message - The server returned an unknown status code ({0}).


However, I can successfully access both referenced pages. I'm runnin on Win2003 server with lockdown.

I'm trying to login as 'Admin'.

Any suggestions?
GregM

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Wed Apr 14, 2004 9:15 am

Does your server log file have any indication as to the cause of the problem? What about the Event Viewer?

gdmccarty
Posts: 6
Joined: Wed Apr 14, 2004 4:53 am

More info

Post by gdmccarty » Thu Apr 15, 2004 7:00 am

Event view posts nothing by successful audits in the security log.

Web log is
2004-04-15 12:49:03 192.168.2.104 POST /VaultService/VaultService.asmx - 80 - 192.168.2.104 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.985) 500 0 0
2004-04-15 12:49:05 192.168.2.104 POST /VaultService/VaultService.asmx - 80 - 192.168.2.104 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+1.1.4322.985) 500 0 0


What next?
GregM

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Thu Apr 15, 2004 7:41 am

when in doubt, consult the knowledge base.

what were the results from the suggestions on this kb article - http://support.sourcegear.com/viewtopic.php?t=736?
Jeff Clausius
SourceGear

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Apr 15, 2004 9:27 am

By "server log file" I meant the Vault server's log file, which is located in c:\windows\temp\sgvault by default. For some known issues with Windows 2003, see this KB article as well http://support.sourcegear.com/viewtopic.php?t=185

gdmccarty
Posts: 6
Joined: Wed Apr 14, 2004 4:53 am

Post by gdmccarty » Mon Apr 19, 2004 4:49 am

jclausius -

Post t=185

Verified IIS and ASP.NET configured correctly

Post t=736

Ran serverInstall.html and ValueService.asmx - they displayed correctly. This was from the server machine itself, and another machine on the network.

No proxy server.

Sql is on the server machine. How do I verify successful login.


jeremy_sg

There is no sgvalut directory or file in the c:\windows\temp directory. What is the default name of the log file itself?
GregM

gdmccarty
Posts: 6
Joined: Wed Apr 14, 2004 4:53 am

Post by gdmccarty » Mon Apr 19, 2004 4:54 am

Something else that I'm sure is important.

I have MS SharePoint/BizTalk installed on the 2003 server. That gave me problems with my own .Net assembly because SharePoint changes the default trust level for .NET. In my assembly, I had to put a <trust level="full"../> in my web.config.

I tried the same with the web.config in the ...\VaultService directory. Same error.
GregM

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Apr 19, 2004 5:54 am

Another thing to try.

From the server machine, go to http://localhost/VaultService/VaultService.asmx Scroll down until you see the Ping web service method. Click on it, and on the next page, click "Invoke".

All of this is just searching for a message detailing the true cause of the error. The lack of server log file means that the server never truely loaded. Could you verify that the account you're running as has access to write to c:\windows\temp? The server will create a directory there called sgvault, and in that sgvault directory will create a file called sgvault.log.

gdmccarty
Posts: 6
Joined: Wed Apr 14, 2004 4:53 am

Post by gdmccarty » Mon Apr 19, 2004 10:06 am

Okay, the directory sgvault has appeared in the c:\windows\temp directory. Here it is (in it's entirety)

----4/19/2004 6:47:38 AM sgvaultsystem--()--
System Started
Version 2.0.2.2163
Cache Level = 1
DataBase Buffer Size = 256
LogFile Path = C:\WINDOWS\Temp\sgvault
Log Level = Quiet
Archive Log = Weekly
ReverseDNS Lookup = True
Maximum HTTP Request Length = 102400
Overwrite Log on Startup = False
Session Timeout = 4320
SGVault Working Directory = C:\WINDOWS\Temp
----4/19/2004 11:52:17 AM sgvaultsystem--()--
System Started
Version 2.0.2.2163
Cache Level = 1
DataBase Buffer Size = 256
LogFile Path = C:\WINDOWS\Temp\sgvault
Log Level = Quiet
Archive Log = Weekly
ReverseDNS Lookup = True
Maximum HTTP Request Length = 102400
Overwrite Log on Startup = False
Session Timeout = 4320
SGVault Working Directory = C:\WINDOWS\Temp



I tried the ping/invoke - had to run from the win2003 machine.

First thing that happened is IE popped up a security dialog. I had to add my own server to the trusted list? The response then came back as

<?xml version="1.0" encoding="utf-8" ?>
<int xmlns="http://www.sourcegear.com/schemas/vault">1</int>


For fun, I tried to login to the client (username of 'Admin'). Got the following:

SourceGear Vault

system.web.services.protocol.soapexception: server was unable to process request ->> system.nullreferenceexception:
object reference not set to an instance of an object.
at vaultserviceapilib.vaultserviceapisystem.dologin (boolean, httpapplicationstate, httpsessionstate, string,boolean, string, string)
at vaultserviceapilib.vaultserviceapisystem.login (string, string, string)


GregM
GregM

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Apr 19, 2004 10:14 am

Email me with your phone number and email address, and I'll send you a debug build to track this down.

Post Reply