<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx</link><description>A customer recently sent me the following code, which uses VSS automation to open a SourceSafe database via an ASP.NET page. He was running IIS locally against a remote VSS server and, upon running the code got the following error message: ”The SourceSafe</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>RE: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#54034</link><pubDate>Thu, 16 Oct 2003 00:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:54034</guid><dc:creator>JB</dc:creator><description>I'm doing the same thing, and seeing the same error message.  However I don't think it's a permission issue with srcsafe.ini -- elsewhere in the code, I'm able to open the srcsafe.ini (with StreamReader) and read the first line from it.  So the app certainly has permission to access the file.
</description></item><item><title>RE: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#54035</link><pubDate>Thu, 30 Oct 2003 14:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:54035</guid><dc:creator>Ville</dc:creator><description>I'm having the exact the same problem.... Please tell me if you solve the problem..</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#82832</link><pubDate>Tue, 02 Mar 2004 19:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:82832</guid><dc:creator>TK</dc:creator><description>I'm having the exact same problem, not a permission issue... Please let me know what the solution is... Thanks...</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#125985</link><pubDate>Tue, 04 May 2004 21:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:125985</guid><dc:creator>VSS COM+ extensions lack-luster</dc:creator><description>Using the sourcesafetypelib via COM Interop in .NET don't seem to work all that great.  try mixing up the order of the 3 parameters of the VSSDatabase.Open method.  If you do it right, it says can't find database &amp;lt;user&amp;gt;, if you put the &amp;lt;user&amp;gt; and &amp;lt;password&amp;gt; first it says it doesn't have access, if you put the &amp;lt;user&amp;gt;, &amp;lt;ini file&amp;gt;, then &amp;lt;password&amp;gt; you get a &amp;quot;Cannont open &amp;lt;ini file&amp;gt; error.  The error messages you see just don't make any sense at all.  I've heard there might be a bug in the way they are transposed, but me don't no nothing about no &amp;quot;transposing&amp;quot;.  No just know &amp;quot;noworkie&amp;quot;.  Oh well, I guess that's what VB6 is for, huh.</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#159458</link><pubDate>Fri, 18 Jun 2004 17:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:159458</guid><dc:creator>Shawn Anderson</dc:creator><description>Has anyone found a solution to this issue?  I am fighting with it aswell :-/</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#161606</link><pubDate>Mon, 21 Jun 2004 18:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:161606</guid><dc:creator>Art</dc:creator><description>I think it is a permission issue. Run this code below as an ASP.NET page and then a Console application.&lt;br&gt;--------------&lt;br&gt;using SourceSafeTypeLib;&lt;br&gt;&lt;br&gt;VSSDatabaseClass objVSSDB = new VSSDatabaseClasss();&lt;br&gt;objVSSDB.Open(&amp;quot;PathToSRCSAFE&amp;quot;, &amp;quot;validUser&amp;quot;, &amp;quot;validPass&amp;quot;);&lt;br&gt;--------------&lt;br&gt;&lt;br&gt;Personally when run as Console app I had no problems connecting to VSS but if run as an ASP.NET app I failed w/ an error saying that &amp;quot;validUser in not a valid user ... please use different database&amp;quot;&lt;br&gt;</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#161638</link><pubDate>Mon, 21 Jun 2004 19:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:161638</guid><dc:creator>Art</dc:creator><description>One more observation. When I run previously presented code as an ASP.NET application on the web server where the VSS server was located I successfuly connected and retrieved files from VSS. So, IIS and VSS servers have to be on the same machine for things to work. BYW, I have also added ASPNET account to these who can access and modify VSS directory where srcsafe.ini is included.</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#166363</link><pubDate>Fri, 25 Jun 2004 21:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:166363</guid><dc:creator>Rob Gallo</dc:creator><description>I believe that I have found one somewhat insecure way around this. By default the ASPNET_WP runs under the ASPNET user which is more restricted then running as a system account. If you modify your machine.config file, and set the processModel in the &lt;br&gt;&amp;lt;System.Web&amp;gt;&lt;br&gt;&amp;lt;processModel /&amp;gt;&lt;br&gt;to use either SYSTEM or a domain account, this problem goes away, and no further changes are required to the locations where the vss files are stored.</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#180953</link><pubDate>Mon, 12 Jul 2004 19:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:180953</guid><dc:creator>Jesse</dc:creator><description>this may be the stupid way, but try declaring the database as an IVSSDatabase, a la:&lt;br&gt;&lt;br&gt;				SourceSafeTypeLib.IVSSDatabase db2 = new VSSDatabaseClass();&lt;br&gt;				db2.Open(@&amp;quot;\\path\srcsafe.ini&amp;quot;, &amp;quot;username&amp;quot;,&amp;quot;pass&amp;quot;);&lt;br&gt;&lt;br&gt;that seems to work for me, at least</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#435924</link><pubDate>Wed, 06 Jul 2005 07:21:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:435924</guid><dc:creator>longmain</dc:creator><description>this may be the stupid way, but try declaring the database as an IVSSDatabase, a la: &lt;br&gt;&lt;br&gt;SourceSafeTypeLib.IVSSDatabase db2 = new VSSDatabaseClass(); &lt;br&gt;db2.Open(@&amp;quot;\\path\srcsafe.ini&amp;quot;, &amp;quot;username&amp;quot;,&amp;quot;pass&amp;quot;); &lt;br&gt;&lt;br&gt;that seems to work for me, at least &lt;br&gt;============================================&lt;br&gt;&lt;br&gt;I am writing ASP.NET in VB.net, I failed to find New() method for neither IVSSDatabase nor IVSSDatabaseOld. I have no idea how Jesse get it work.&lt;br&gt;&lt;br&gt;I also try to get the srcsafe.ini file to local machine and change the &amp;quot;The two important paths used by SourceSafe&amp;quot; -- Data_Path &amp;amp; Temp_Path to point to the server's path with \\server\vss\..(etc.). And I modified the Users_Txt option of the local-copied srcsafe.ini. Then I try to point to the local-copied srcsafe.ini file. I got the following error message:&amp;quot;&lt;br&gt;System.Runtime.InteropServices.COMException:  Visual SourceSafe database \\server\vss\data does not exist. Please select another database.”&lt;br&gt;&lt;br&gt;I am still tring. If anybody have development, tell me :(  &lt;br&gt;longmain@hotmail.com&lt;br&gt;&lt;br&gt;</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#458170</link><pubDate>Wed, 31 Aug 2005 00:52:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:458170</guid><dc:creator>JE</dc:creator><description>If you're doing this like I was, you were attempting to use the VSS com object via com interop.  With impersonation on (in web.config), I could:&lt;br&gt;&lt;br&gt;1) Read/write files on my web server from my code. (No problem)&lt;br&gt;2) with impersonation/delegation, read/write files on a file share from my code.&lt;br&gt;3) Have the VSS COM object manipulate a VSS database on my web server.&lt;br&gt;What I could not do, was&lt;br&gt;4) Have the VSS COM object manipulate a VSS database on some file share.&lt;br&gt;&lt;br&gt;Impersonation was NOT extended to the COM object.  It worked in my code, though.  From looking at security logs, it looks like the vss object was trying to log in as IUSR or some account local to the web server -- not a domain account, and definitely not my impersonated account.&lt;br&gt;&lt;br&gt;I found a solution here:&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.dmbcllc.com/server.aspx"&gt;http://www.dmbcllc.com/server.aspx&lt;/a&gt;&lt;br&gt;I don't know how it works, but apparently if you create a com+ application on your web server, you can give it any domain login you like, and that login will be impersonated/delegated to any VSS server.  This fits my requirement ok for now.&lt;br&gt;&lt;br&gt;-J</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#478786</link><pubDate>Sun, 09 Oct 2005 11:09:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:478786</guid><dc:creator>Boler Guo</dc:creator><description>&lt;a rel="nofollow" target="_new" href="http://www.siteexperts.com/forums/viewConverse.asp?d_id=15214&amp;amp;Sort=0"&gt;http://www.siteexperts.com/forums/viewConverse.asp?d_id=15214&amp;amp;Sort=0&lt;/a&gt;&lt;br&gt;&lt;br&gt;i try this:&lt;br&gt;&amp;lt;identity impersonate=true userName=Domainname\networkuserlogin password=trustme /&amp;gt;&lt;br&gt;&lt;br&gt;but no use~</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#478787</link><pubDate>Sun, 09 Oct 2005 11:10:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:478787</guid><dc:creator>Boler Guo</dc:creator><description>&lt;a rel="nofollow" target="_new" href="http://www.siteexperts.com/forums/viewConverse.asp?d_id=15214&amp;amp;Sort=0"&gt;http://www.siteexperts.com/forums/viewConverse.asp?d_id=15214&amp;amp;Sort=0&lt;/a&gt;&lt;br&gt;&lt;br&gt;i try this:&lt;br&gt;&amp;lt;identity impersonate=true userName=Domainname\networkuserlogin password=trustme /&amp;gt;&lt;br&gt;&lt;br&gt;but no use~</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#569166</link><pubDate>Wed, 05 Apr 2006 21:02:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:569166</guid><dc:creator>MR T.</dc:creator><description>I used the following:&lt;br&gt;&lt;br&gt;string path = &amp;quot;c:\website\vss\srcsafe.ini&amp;quot;;&lt;br&gt;&lt;br&gt;that being the location on the server that the aspx pages are loaded, then in that srcsafe.ini file i had the following&lt;br&gt;&lt;br&gt;#include \\server\share\srcsafe.ini&lt;br&gt;&lt;br&gt;that worked a treat for me.</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#643364</link><pubDate>Fri, 23 Jun 2006 01:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:643364</guid><dc:creator>Andy</dc:creator><description>I tried the #include suggested... I don't know if I goofed something up, but it did not work.</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#723050</link><pubDate>Fri, 25 Aug 2006 16:25:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:723050</guid><dc:creator>health insurance international</dc:creator><description>Very informative post about &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="&lt;a rel="nofollow" target="_new" href="http://approvalcredit.bravehost.com/health-insurance-international.html"&gt;http://approvalcredit.bravehost.com/health-insurance-international.html&lt;/a&gt;&amp;quot;"&gt;&lt;a rel="nofollow" target="_new" href="http://approvalcredit.bravehost.com/health-insurance-international.html"&gt;http://approvalcredit.bravehost.com/health-insurance-international.html&lt;/a&gt;&amp;quot;&lt;/a&gt; title=&amp;quot;health insurance international&amp;quot;&amp;gt;health insurance international&amp;lt;/a&amp;gt; and [URL=&lt;a rel="nofollow" target="_new" href="http://approvalcredit.bravehost.com/health-insurance-international.html"&gt;http://approvalcredit.bravehost.com/health-insurance-international.html&lt;/a&gt;]health insurance international[/URL]</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#726141</link><pubDate>Sun, 27 Aug 2006 06:58:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:726141</guid><dc:creator>Pol Pitt</dc:creator><description>I am so lucky on [url=&lt;a rel="nofollow" target="_new" href="http://2access.2surf.eu"&gt;http://2access.2surf.eu&lt;/a&gt;]having[/url] what I have! And good luck in yours [url=&lt;a rel="nofollow" target="_new" href="http://access.122mb.com"&gt;http://access.122mb.com&lt;/a&gt;]search[/url].&lt;br&gt;Just visit [url=&lt;a rel="nofollow" target="_new" href="http://access.2surf.eu"&gt;http://access.2surf.eu&lt;/a&gt;]my site[/url].&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#733468</link><pubDate>Thu, 31 Aug 2006 16:30:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:733468</guid><dc:creator>instant insurance life quote</dc:creator><description>Very interesting and good point about &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="&lt;a rel="nofollow" target="_new" href="http://freeinsurance.250free.com/instant-insurance-life-quote.html"&gt;http://freeinsurance.250free.com/instant-insurance-life-quote.html&lt;/a&gt;&amp;quot;"&gt;&lt;a rel="nofollow" target="_new" href="http://freeinsurance.250free.com/instant-insurance-life-quote.html"&gt;http://freeinsurance.250free.com/instant-insurance-life-quote.html&lt;/a&gt;&amp;quot;&lt;/a&gt; title=&amp;quot;instant insurance life quote&amp;quot;&amp;gt;instant insurance life quote&amp;lt;/a&amp;gt; and [URL=&lt;a rel="nofollow" target="_new" href="http://freeinsurance.250free.com/instant-insurance-life-quote.html"&gt;http://freeinsurance.250free.com/instant-insurance-life-quote.html&lt;/a&gt;]instant insurance life quote[/URL]</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#743314</link><pubDate>Thu, 07 Sep 2006 00:51:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:743314</guid><dc:creator>play card games online</dc:creator><description>Thank you so much for this great post &amp;nbsp;about &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="&lt;a rel="nofollow" target="_new" href="http://freecarhire.bravehost.com/play-card-games-online.html"&gt;http://freecarhire.bravehost.com/play-card-games-online.html&lt;/a&gt;&amp;quot;"&gt;&lt;a rel="nofollow" target="_new" href="http://freecarhire.bravehost.com/play-card-games-online.html"&gt;http://freecarhire.bravehost.com/play-card-games-online.html&lt;/a&gt;&amp;quot;&lt;/a&gt; title=&amp;quot;play card games online&amp;quot;&amp;gt;play card games online&amp;lt;/a&amp;gt; and [URL=&lt;a rel="nofollow" target="_new" href="http://freecarhire.bravehost.com/play-card-games-online.html"&gt;http://freecarhire.bravehost.com/play-card-games-online.html&lt;/a&gt;]play card games online[/URL]</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#745468</link><pubDate>Fri, 08 Sep 2006 05:02:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:745468</guid><dc:creator>bad credit unsecured loan</dc:creator><description>Very informative post about &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="&lt;a rel="nofollow" target="_new" href="http://debtoff.50megs.com/bad-credit-unsecured-loan.html"&gt;http://debtoff.50megs.com/bad-credit-unsecured-loan.html&lt;/a&gt;&amp;quot;"&gt;&lt;a rel="nofollow" target="_new" href="http://debtoff.50megs.com/bad-credit-unsecured-loan.html"&gt;http://debtoff.50megs.com/bad-credit-unsecured-loan.html&lt;/a&gt;&amp;quot;&lt;/a&gt; title=&amp;quot;bad credit unsecured loan&amp;quot;&amp;gt;bad credit unsecured loan&amp;lt;/a&amp;gt; and [URL=&lt;a rel="nofollow" target="_new" href="http://debtoff.50megs.com/bad-credit-unsecured-loan.html"&gt;http://debtoff.50megs.com/bad-credit-unsecured-loan.html&lt;/a&gt;]bad credit unsecured loan[/URL]</description></item><item><title>re: VSSDatabase.Open via ASP.NET</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#757579</link><pubDate>Sat, 16 Sep 2006 15:41:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:757579</guid><dc:creator>Poll Pitt</dc:creator><description>I am so [url=&lt;a rel="nofollow" target="_new" href="http://access.2surf.eu"&gt;http://access.2surf.eu&lt;/a&gt;]lucky[/url] on having what I have! And good luck in yours [url=&lt;a rel="nofollow" target="_new" href="http://2access.2surf.eu"&gt;http://2access.2surf.eu&lt;/a&gt;]search[/url].&lt;br&gt;Just visit [url=&lt;a rel="nofollow" target="_new" href="http://access.122mb.com"&gt;http://access.122mb.com&lt;/a&gt;]my site[/url].&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Sourcesafe Automation Bug &amp;laquo; BuLOnG</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#8390548</link><pubDate>Mon, 14 Apr 2008 08:26:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8390548</guid><dc:creator>Sourcesafe Automation Bug &amp;laquo; BuLOnG</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://superpatrick.wordpress.com/2008/04/14/sourcesafe-automation-bug/"&gt;http://superpatrick.wordpress.com/2008/04/14/sourcesafe-automation-bug/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Korby Parnell s Social Software Wunderkammer VSSDatabase Open via ASP NET | Weak Bladder</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#9717276</link><pubDate>Tue, 09 Jun 2009 21:50:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9717276</guid><dc:creator> Korby Parnell s Social Software Wunderkammer VSSDatabase Open via ASP NET | Weak Bladder</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://weakbladder.info/story.php?id=3757"&gt;http://weakbladder.info/story.php?id=3757&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> Korby Parnell s Social Software Wunderkammer VSSDatabase Open via ASP NET | debt consolidator</title><link>http://blogs.msdn.com/korbyp/archive/2003/06/24/54033.aspx#9787939</link><pubDate>Fri, 19 Jun 2009 17:20:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9787939</guid><dc:creator> Korby Parnell s Social Software Wunderkammer VSSDatabase Open via ASP NET | debt consolidator</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://mydebtconsolidator.info/story.php?id=17922"&gt;http://mydebtconsolidator.info/story.php?id=17922&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>