VSS 2005 Issue

At two of my XP machines I successfully setup VSS 2005. Issue is at the server which is an Windows 2003 Standard. It seems that when I checkServer->Configure thenEnable SourceSafe Internet for this computer and corresponding option bellowEnable SourceSafe Internet for this database VSS Administrator does not properly create virtual dir, to be more precise, it does note createVssUpload_db1 andVssDownload_db1 sub-virtual dirs. Moreover, when I uncheck Enable Internet access it does not delete virtual dir, as it is case at my workstations. It’s the same build, and same steps, so problem should lay somewhere in server configuration. Server is configured for IIS/ASP.Net only. In addition, it's not an server/workstation issue, I think, because I have succesfully installed at one 2003 Enterprise nearby.
Does anyone have some clue?

[1046 byte] By [acexman] at [2007-12-17]
# 1

Here goes Application Event Category Web Event:

Event Type: Information
Event Source: ASP.NET 2.0.50215.0
Event Category: Web Event
Event ID: 1309
Date: 4/12/2005
Time: 4:01:33 PM
User: N/A
Computer: DOTNET
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/12/2005 4:01:33 PM
Event time (UTC): 4/12/2005 2:01:33 PM
Event ID: 102fcc1657bf49578f6af82a932da10d
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/SourceSafe-1-127577880933125000
Trust level: Full
Application Virtual Path: /SourceSafe
Application Path: C:\Program Files\Microsoft Visual SourceSafe\VssWebService\
Machine name: DOTNET
Process information:
Process ID: 3872
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: InvalidOperationException
Exception message: Request format is unrecognized.
Request information:
Request URL: http://ip/SourceSafe/VssService.asmx
Request path: /SourceSafe/VssService.asmx
User host address: ip
User: DOTNET\Administrator
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: True
Stack trace: at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Custom event details:

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

acexman at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 2

Make sure you have Automatically Detect Settings checked in IE Settings->Internet Options->LAN Settings on the server.

If you installed IIS after installing VSS you need to run from your framework location (C:\WINNT\Microsoft.NET\Framework\v2.0.xxxxx):

aspnet_regiis –i

Roman Golovin [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

RomanGolovin at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 3

I have the same error after installing of the VSS Ver. 8.0.50601.0.

The IIS was already installed on the machine and it works properly. Does anybody knows some workaround?

DamirDobric at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 4

What operation do you get error on? What error do you get?

RomanGolovinMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 5

For example, when I try to open following page:

http://localhost/SourceSafe/VssService.asmx

the error bellow appears:

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

The application Eventlog shows following error:

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 10/27/2005 9:23:38 AM

Event time (UTC): 10/27/2005 7:23:38 AM

Event ID: 217ba305cf3347e0b4861e45577ee7d1

Event sequence: 4

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/1/ROOT/SourceSafe-1-127748714171292896

Trust level: Full

Application Virtual Path: /SourceSafe

Application Path: D:\Program Files\Microsoft Visual SourceSafe\VssWebService\

Machine name: DADO-NB1

Process information:

Process ID: 3020

Process name: aspnet_wp.exe

Account name: DADO-NB1\ASPNET

Exception information:

Exception type: InvalidOperationException

Exception message: Request format is unrecognized.

Request information:

Request URL: http://localhost/SourceSafe/VssService.asmx

Request path: /SourceSafe/VssService.asmx

User host address: 127.0.0.1

User: DAENET\ddobric

Is authenticated: True

Authentication Type: Negotiate

Thread account name: DADO-NB1\ASPNET

Thread information:

Thread ID: 1

Thread account name: DADO-NB1\ASPNET

Is impersonating: True

Stack trace: at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)

at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)

at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)

at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

DamirDobric at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 6
Hi Damir,

The callstack of the exception is not in VSS's service code, it's in System.Web.Services.dll, which is part of .NET Frameworks.
I suspect something is wrong with your Frameworks install.
(You can probably verify this by creating another web service on your server and see if you can access it with IE - I suspect it would produce similar error messages)

I'd try uninstalling and reinstalling the .NET Frameworks 2.0, then reenabling the VSS Web service on the machine.

Alin

AlinConstantin-MSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 7
Hi Damir,

It looks like I was wrong...

By default, the web.config for SourceSafe web service has these lines:
<customErrors mode="On"/>
<webServices>
<protocols>
<!-- This disables the service help and generated WSDL pages. -->
<remove name="Documentation"/>
</protocols>
</webServices>

Trying to browse to the the service url (http://localhost/sourcesafe/vssservice.asmx) gives a nice error message that “The current custom error settings for this application prevent the details of the application error from being viewed” – The customErrors mode is by default set to On for security reasons.

If the error mode is switched to “Off” or “RemoteOnly”, then indeed, you start to see the “System.InvalidOperationException: Request format is unrecognized” error message.
This error message is displayed in browser and logged in Event Viewer.

You can get rid of this error message by editing the <Sourcesafe_install>\VssWebService\web.config file and removing the following lines:
<!-- This disables the service help and generated WSDL pages. -->
<remove name="Documentation"/>
However, leaving the 2 options with default values in web.config should not prevent you from using the web service from within VisualStudio....

If you cannot access the web service on one of the machines, you may have some other service configuration problems.

Alin

AlinConstantin-MSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 8

Hi Alin,

I have excluded now in the web.config the line with the ‘Documentation’-entry. Now it is possible to open the webservice page from the browser: http://MyHost.MyDomain.Lan/SourceSafe/VssService.asmx

This is fine. However it is still not possible to connect to VSS from Visual Studio.

I use following settings:

Address: http(s)://MyHost.MyDomain

Folder: \\MyHost.MyDomain\VSS

After network scanning I found out that the Visual Studio is trying to connect to the server by using of HTTPS-protocol, although the server is configured to use HTTP.

Am I doing something wrong or there is some undiscovered trick to force VS to use HTTP and not HTTPS?

DamirDobric at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 9
Hi Damir,

Take a look at this post, and see if it helps.
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=119882

It seems to me you're missing at least step 4) uncheck the "use SSL connections" checkbox. That is on the options page in VisualStudio 2003 under Tools/Options/ SourceControl/SccProvider/Advanced, and in VisualStudio 2005 under Tools/Options/ SourceControl/ Plug-in settings/Advanced.

Alin

AlinConstantin-MSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...

Visual Studio

Site Classified