473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Can not connect to Visual Source Safe from ASP

Here is the portion of the asp pages(vb script) that fails:
SrcSafeIni = "F:\Microsoft Visual Studio\VSS\441_VSS\srcsafe.ini"
UserName ="Admin"
Password =""

'On Error Resume Next

Set objVSSDatabase = Server.CreateObject("Sourcesafe")
objVSSDatabase.Open SrcSafeIni,UserName,Password

If Err.Number <> 0 Then
Response.Write "Could Not Connect to the Repository Database"
Response.Write "<BR>"
Response.Write Err.Number & "*****" & Err.Description
Err.Clear

'Response.Write "test"
'Response.Write objVSSDatabase.DatabaseName

End If

The error is :
Error Type:
Microsoft VBScript runtime (0x800A0007)
Out of memory: 'Open'

The same script will work fine if it was adapted and saved as a vbs
file and run by double cliking on it, so this probably means that
something needs to be done to the IIS settings....

Any help will be appreciated.

Thank you
Jul 19 '05 #1
3 4962
"MEHDI" <me*******@excite.com> wrote in message
news:cd*************************@posting.google.co m...
Here is the portion of the asp pages(vb script) that fails:
SrcSafeIni = "F:\Microsoft Visual Studio\VSS\441_VSS\srcsafe.ini"
UserName ="Admin"
Password =""

'On Error Resume Next

Set objVSSDatabase = Server.CreateObject("Sourcesafe")
objVSSDatabase.Open SrcSafeIni,UserName,Password

If Err.Number <> 0 Then
Response.Write "Could Not Connect to the Repository Database"
Response.Write "<BR>"
Response.Write Err.Number & "*****" & Err.Description
Err.Clear

'Response.Write "test"
'Response.Write objVSSDatabase.DatabaseName

End If

The error is :
Error Type:
Microsoft VBScript runtime (0x800A0007)
Out of memory: 'Open'

The same script will work fine if it was adapted and saved as a vbs
file and run by double cliking on it, so this probably means that
something needs to be done to the IIS settings....


Is F: a mapped drive or local drive?
http://support.microsoft.com/?kbid=257174
http://www.aspfaq.com/show.asp?id=2168

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #2
Tom:
Thank you for your reply.
F: is a local drive and I gave everyone full control on the folder
F:\Microsoft Visual Studio

Thanks

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message news:<ch*********@kcweb01.netnews.att.com>...
"MEHDI" <me*******@excite.com> wrote in message
news:cd*************************@posting.google.co m...
Here is the portion of the asp pages(vb script) that fails:
SrcSafeIni = "F:\Microsoft Visual Studio\VSS\441_VSS\srcsafe.ini"
UserName ="Admin"
Password =""

'On Error Resume Next

Set objVSSDatabase = Server.CreateObject("Sourcesafe")
objVSSDatabase.Open SrcSafeIni,UserName,Password

If Err.Number <> 0 Then
Response.Write "Could Not Connect to the Repository Database"
Response.Write "<BR>"
Response.Write Err.Number & "*****" & Err.Description
Err.Clear

'Response.Write "test"
'Response.Write objVSSDatabase.DatabaseName

End If

The error is :
Error Type:
Microsoft VBScript runtime (0x800A0007)
Out of memory: 'Open'

The same script will work fine if it was adapted and saved as a vbs
file and run by double cliking on it, so this probably means that
something needs to be done to the IIS settings....


Is F: a mapped drive or local drive?
http://support.microsoft.com/?kbid=257174
http://www.aspfaq.com/show.asp?id=2168

Jul 19 '05 #3
Tom:
I wanted to make sure that the file can be read so I wrote the page
below and it displayed the content of the file F:\Microsoft Visual
Studio\VSS\441_VSS\srcsafe.ini.
So it can get to the file but it can not connect to VSS from the ASP
page but can from a VBS page! IUSR_ has access to VSS.

<%@ Language=VBScript %>
<% Option Explicit %>
<html>

<head>
<title></title>
</head>

<body>

<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

Dim objTextStream

const strFileName = "F:\Microsoft Visual
Studio\VSS\441_VSS\srcsafe.ini"
const fsoForReading = 1

If objFSO.FileExists("F:\Microsoft Visual
Studio\VSS\441_VSS\srcsafe.ini") then
'The file exists, so open it and output its contents
Set objTextStream = objFSO.OpenTextFile(strFileName, fsoForReading)
Response.Write "" & objTextStream.ReadAll & ""
objTextStream.Close
Set objTextStream = Nothing
Else
'The file did not exist
Response.Write strFileName & " was not found."
End If

'Clean up
Set objFSO = Nothing
%>

</BODY>
</HTML>
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Job Lot | last post by:
I am having loads of problem using vb.net project under visual source safe. I’ll start with How can I exclude source safe information from the project when I take a copy of project home? I...
3
by: Sam | last post by:
Does anyone know if the .NET Framework defines a set of classes that allow you to access Visual Source Safe within your C# programs I know there is some type of COM interface...
1
by: Andy | last post by:
This is driving me to insanity!!! I do not have a lot of experience with IIS which probably is not helping but as far as I can tell I am do things as per the MSDN documentation. I have a...
8
by: olrt | last post by:
Hello, I plan to install Visual C# 2005 Express. I need a source code control system. It seems that there's no express version of Visual Source Safe. What should I do ? Is Visual C# 2005 Express...
2
by: clintonb | last post by:
Using Visual Studio 2005, I created a new website: File->New->Web Site and chose the ASP.Net Web Site template. Saved it in location c:\Projects\GCSLRMS_DotNet\WS\WebSite1. It created the...
1
by: Chris Fink | last post by:
Our team is using VS.NET 2005 and Visual Source Safe 6c. We keep all of our source code in Visual Source Safe and version our applications using the assemblyinfo file. My question is this: Is...
1
by: Ronald S. Cook | last post by:
Is Visual SourceSafe 2005 client compatible with 6.0 repository? Thanks, Ron
2
by: clintonb | last post by:
I'm using: Microsoft Visual Studio 2005 Version 8.0.50727.42 Issue 1: We have a solution with a web project and some class library projects. The web project references the class library...
3
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.