<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>vss-visual-studio &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/vss-visual-studio/</link>
	<description>Feed of posts on WordPress.com tagged "vss-visual-studio"</description>
	<pubDate>Sat, 26 Dec 2009 12:16:28 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[An enhanced UpdateProgress control, which shows an animation at the point where mouse was clicked]]></title>
<link>http://nishantpant.wordpress.com/2008/07/18/an-enhanced-updateprogress-control-which-shows-an-animation-at-the-point-where-mouse-was-clicked/</link>
<pubDate>Fri, 18 Jul 2008 12:08:17 +0000</pubDate>
<dc:creator>Nishant Pant</dc:creator>
<guid>http://nishantpant.wordpress.com/2008/07/18/an-enhanced-updateprogress-control-which-shows-an-animation-at-the-point-where-mouse-was-clicked/</guid>
<description><![CDATA[WHY DO IT ??? Before you read the post, let us answer why did I waste time in changing the behavior ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong><a href="http://nishantpant.files.wordpress.com/2008/07/vbajaxzip1.jpg"></a>WHY DO IT ???</strong></p>
<p>Before you read the post, let us answer why did I waste time in changing the behavior of the <em><strong>UpdateProgress </strong></em>control. Here is the deal. Suppose, you have 5 or 6 controls on your page, which when clicked result in an Ajax call. You know that the <em><strong>UpdateProgress </strong></em>control is pretty much static, meaning, wherever you put the <strong><em>&#60;asp:UpdateProgress&#62;</em></strong> tags, that is the place where the progressbar will show up when your Ajax call is in progress. So, no matter which control the user clicks the progressbar is being shown in a fixed place. Why may some people consider this bad ???</p>
<ul>
<li>You or anyone looking at the screen, may lose track of why you are waiting because the progressbar just shows that you are waiting not what has triggered the wait.</li>
<li>If the page is long, and the progress bar is at a fixed place, there is a possibility that you clicked a control which is a scroll length away from where the progressbar will show.</li>
<li>If the control which was clicked can give a feedback for the user to wait, it prevents the user from clicking the same button twice.</li>
</ul>
<p>So, much for justifying why I wrote this control. But those were just a few thoughts behind it. Let us get back to the nitty gritties. Btw, here is a YouTube vide of how it looks (video is a little fuzzy but it shows what I am trying to communicate)</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/a46xkBea6mg&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/a46xkBea6mg&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p><strong>The Code :</strong></p>
<p>I will not go into too much detail explaining the code, because I am sharing the source code with you. But here is the high level overview :</p>
<ul>
<li>Create a new control, which inherits from <strong><em>UpdateProgress </em></strong>control</li>
<li>Embed two resources in your control assembly. (the default hourglass image and the javascript used to make this control work)</li>
<li>Override Render method, and inject javascript. The javascript will hook into the AJAX <strong><em>InitializeRequest </em></strong>and <strong><em>EndRequest </em></strong>events, by calling <strong><em>add_initializeRequest</em></strong>() and <strong><em>add_endRequest</em></strong>() methods of <strong><em>Sys.WebForms.PageRequestManager </em></strong>class.</li>
<li>The first Image control in the &#60;<strong><em>ProgressTemplate</em></strong>&#62; of the UpdateProgress control will be assumed to be the hourglass image, and if you haven&#8217;t set an ImageURL value for it, a default image will be supplied. You can create your own hourglass images from this awesome website : <a href="http://www.ajaxload.info/#preview">http://www.ajaxload.info/#preview</a></li>
</ul>
<p>That is it. Do leave comments and suggestions if you find this control useful. I am also attaching the <a title="Rigth Click --&#62;Save Target--&#62;Rename to .Zip" href="http://nishantpant.files.wordpress.com/2008/07/vbajaxzip1.jpg">source code </a>and the assembly. If you don&#8217;t want to see the code, just use the assembly and things should work right away.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Migrating Sourcesafe database from one server to another in 5 steps]]></title>
<link>http://nishantpant.wordpress.com/2008/05/22/migrating-sourcesafe-database-from-one-server-to-another-in-5-steps-2/</link>
<pubDate>Wed, 21 May 2008 18:36:37 +0000</pubDate>
<dc:creator>Nishant Pant</dc:creator>
<guid>http://nishantpant.wordpress.com/2008/05/22/migrating-sourcesafe-database-from-one-server-to-another-in-5-steps-2/</guid>
<description><![CDATA[UPDATE: The easiest way to move a VSS database to a new server is to copy the whole database in one ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="font-family:Times New Roman;"><strong>UPDATE: </strong>The easiest way to move a VSS database to a new server is to copy the whole database in one shot. If your database is small this works like a charm. See this <a title="Microsoft KB Article" href="http://support.microsoft.com/kb/176909">MS KB article</a> for details. The only gotchas are :</span></p>
<ol><span style="font-size:small;font-family:Times New Roman;"></p>
<li>This involves copying the complete VSS folder over the network. This may be slooooow and the file copy may even fail suddenly for no reason.</li>
<li>If the VSS db is real big then even winzip will stop at 65K files, so rule out that option if the no of files &#62; 65K. Even winrar doesn&#8217;t work. I haven&#8217;t tried Lharc or ARJ yet.</li>
<p></span></ol>
<ol></ol>
<p><span style="font-family:Times New Roman;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p><!--adsense--></p>
<p><span style="font-family:Times New Roman;"><strong>Original Post</strong> </span></p>
<p><span style="font-family:Times New Roman;">If you have found this article, it means you haven&#8217;t had much luck trying to find how to migrate VSS from one machine to another. Also, many of you must have noticed that MS KB article <a rel="nofollow" href="http://support.microsoft.com/kb/q176875/"><span style="color:#247cd4;">http://support.microsoft.com/kb/q176875/</span></a></span><span style="color:#247cd4;"> is bogus and the syntax for ssarc does not work. So, how do you actually move your VSS sourcesafe database ????</span></p>
<p><span style="font-size:small;font-family:Times New Roman;"><strong>STEP 1: Use SSARC.EXE to archive your existing database.</strong><br />
Here is the syntax which I got working for me after umpteen trial/errors :<br />
<strong>ssarc</strong> <span style="color:#60bf00;"><strong>&#8220;-s\\vssserver\vssfolder&#8221; d:\Archive.SSA $</strong> </span></span></p>
<p><span style="font-size:small;font-family:Times New Roman;">1. Notice that -s is inside the quotes<br />
2. $ means the whole VSS should be archived starting from root. You can specify sub branches too. eg. $/Projects or $/Project/Project1<br />
3. Make sure you enter &#8216;N&#8217; (NO) when ssarc asks you if you want to delete the existing database after it has been archived.</span></p>
<p><span style="font-size:small;font-family:Times New Roman;"><strong>STEP 2: Run SSRESTOR.EXE to restore the database on the new server.</strong><br />
<strong>ssrestor <span style="color:#60bf00;">&#8220;-s\\NewServer\VSS&#8221; d:\ArchivedProjects.ssa &#8220;$/PathYouWantToRestoreTo&#8221;</span></strong></span></p>
<p><span style="font-size:small;font-family:Times New Roman;"><strong>STEP 3: Copy existing users from your current VSS installation.</strong><br />
Copy VSS\Users folder, VSS\Users.txt file and Um.dat file to the new installation</span></p>
<p><span style="font-family:Times New Roman;"><strong>STEP 4: </strong>Run <strong><span style="color:#007f40;"><span style="color:#60bf00;">Analyze -F &#8220;C:\Program Files\Microsoft Visual Studio\VSS\Data</span></span></strong></span><strong><span style="color:#007f40;"><span style="color:#60bf00;">&#8220;</span></span></strong><span style="color:#007f40;">. This will re-generate the rights for all the users based on um.dat. Remember you just cannot simply copy rights.dat file to do this.</span></p>
<p><span style="font-family:Times New Roman;"><strong>STEP 5:</strong> You can either change the current srcsafe.ini to point to the new database, so that developers don&#8217;t get a broken link. Or you can just shutdown the server and tell people to reload their projects from the new server.</span></p>
<p><span style="font-family:Times New Roman;"><span style="color:#ff4040;">Thats it. When you complete step 5&#8230;.your VSS migration is complete !!!!</span></span></p>
<p><!--adsense--></p>
<p><span style="font-family:Times New Roman;"><strong>Further Reading:&#8212;&#8212;&#8212;&#8212;&#8212;</strong></span></p>
<p><span style="font-family:Times New Roman;"><span style="font-family:Times New Roman;">Problems/Fixes for integrating VSS with Interdev:</span></span><span style="font-size:small;font-family:Times New Roman;"><br />
<a href="http://www.codeproject.com/asp/VSS_and_VID.asp?df=100&#38;forumid=136229&#38;select=1313406&#38;msg=1313406"><span style="font-family:Times New Roman;">http://www.codeproject.com/asp/VSS_and_VID.asp?df=100&#38;forumid=136229&#38;select=1313406&#38;msg=1313406</span></a></span></p>
<p><span style="font-family:Times New Roman;"><span style="font-family:Times New Roman;">User right setup for VSS:</span></span><span style="font-size:small;font-family:Times New Roman;"><br />
<a href="http://support.microsoft.com/kb/131022/EN-US/"><span style="font-family:Times New Roman;">http://support.microsoft.com/kb/131022/EN-US/</span></a><span style="font-family:Times New Roman;"> </span></span></p>
<p><span style="font-size:12pt;font-family:'Times New Roman';"><span style="font-family:Times New Roman;">Use of <a href="http://codebetter.com/blogs/darrell.norton/archive/2004/04/15/11493.aspx"><span style="color:#247cd4;">http://codebetter.com/blogs/darrell.norton/archive/2004/04/15/11493.aspx</span></a></span><span style="color:#247cd4;"> vss binding remover on developer’s machines to get rid of .scc files</span></span></p>
<p><!--adsense--></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file XXX failed.]]></title>
<link>http://nishantpant.wordpress.com/2007/10/05/create-database-permission-denied-in-database-master-an-attempt-to-attach-an-auto-named-database-for-file-xxx-failed/</link>
<pubDate>Fri, 05 Oct 2007 15:31:05 +0000</pubDate>
<dc:creator>Nishant Pant</dc:creator>
<guid>http://nishantpant.wordpress.com/2007/10/05/create-database-permission-denied-in-database-master-an-attempt-to-attach-an-auto-named-database-for-file-xxx-failed/</guid>
<description><![CDATA[The problem : I had a perfectly running ASP.Net 2.0 website with SQL Express on a Virtual PC (Window]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>The problem : </strong>I had a perfectly running ASP.Net 2.0 website with SQL Express on a Virtual PC (Windows 2k3 Server). I copied the Website to a different machine (Vista) and copied the database (MDF and LDF files) to App_Data folder of the website in the new machine.</p>
<p>I am using the following connectionstring to generate a user instance of the database.</p>
<p>&#60;add name=&#8221;LocalSqlServer&#8221; connectionString=&#8221;Data Source=.\SQLExpress;Integrated Security=True;User Instance=False;AttachDBFilename=&#124;DataDirectory&#124;aspnetdb.mdf&#8221;/&#62;</p>
<p><span style="color:#ff0000;">CREATE DATABASE permission denied in database &#8216;master&#8217;. An attempt to attach an auto-named database file XXX.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.</span></p>
<p>Also, I wanted to mention that I tried attaching the .mdf file directly to SQL Server using the Attach option and that failed with &#8220;<span style="color:#ff0000;">operating system error (5) access denied</span>&#8220;, even though I made SQL Server service run under an Admin account.</p>
<p><strong>The Solution : </strong>The reason why the user instance was not getting generated was because my app pool for the website (in this case it was Default App Pool) was running under Network Service. If I change the account to Local System, everything starts working. I did give Network Service access to the Website, but that didn&#8217;t work.</p>
<p>I still haven&#8217;t found a solution for the access denied while trying to attach the mdf file to SQL server. If anyone finds a solution kindly post a solution in the comments. If I find it myself, I will update the blog entry with the solution.</p>
<p><strong>UPDATE : 6/4/2008 &#8211; </strong>If you are running Windows Vista, make sure you right click on SQL Management studio and choose &#8220;Run as administrator&#8221;. That normally solves half of the problems.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Migrating Sourcesafe database from one server to another in 5 steps ]]></title>
<link>http://nishantpant.wordpress.com/2006/11/02/migrating-sourcesafe-database-from-one-server-to-another-in-5-steps/</link>
<pubDate>Thu, 02 Nov 2006 20:59:26 +0000</pubDate>
<dc:creator>Nishant Pant</dc:creator>
<guid>http://nishantpant.wordpress.com/2006/11/02/migrating-sourcesafe-database-from-one-server-to-another-in-5-steps/</guid>
<description><![CDATA[UPDATE: The easiest way to move a VSS database to a new server is to copy the whole database in one ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><font size="3" face="Times New Roman"><strong>UPDATE: </strong>The easiest way to move a VSS database to a new server is to copy the whole database in one shot. If your database is small this works like a charm. See this <a href="http://support.microsoft.com/kb/176909" title="Microsoft KB Article">MS KB article</a> for details. The only gotchas are :</font><font size="3" face="Times New Roman"></p>
<ol>
<li>This involves copying the complete VSS folder over the network. This may be slooooow and the file copy may even fail suddenly for no reason.</li>
<li>If the VSS db is real big then even winzip will stop at 65K files, so rule out that option if the no of files &#62; 65K. Even winrar doesn&#8217;t work. I haven&#8217;t tried Lharc or ARJ yet.</li>
</ol>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><strong>Original Post</strong> </p>
<p>If you have found this article, it means you haven&#8217;t had much luck trying to find how to migrate VSS from one machine to another. Also, many of you must have noticed that MS KB article <a rel="nofollow" href="http://support.microsoft.com/kb/q176875/"><font color="#247cd4">http://support.microsoft.com/kb/q176875/</font></a> is bogus and the syntax for ssarc does not work. So, how do you actually move your VSS sourcesafe database ????</p>
<p><strong>STEP 1:  Use SSARC.EXE to archive your existing database.</strong><br />
Here is the syntax which I got working for me after umpteen trial/errors :<br />
<strong>ssarc</strong> <font color="#60bf00"><strong>&#8220;-s\\vssserver\vssfolder&#8221; d:\Archive.SSA $</strong>  </font></p>
<p>1. Notice that -s is inside the quotes<br />
2. $ means the whole VSS should be archived starting from root. You can specify sub branches too. eg. $/Projects or $/Project/Project1<br />
3. Make sure you enter &#8216;N&#8217; (NO) when ssarc asks you if you want to delete the existing database after it has been archived.</p>
<p><strong>STEP 2: Run SSRESTOR.EXE to restore the database on the new server.</strong><br />
<strong>ssrestor <font color="#60bf00">&#8220;-s\\NewServer\VSS&#8221; d:\ArchivedProjects.ssa &#8220;$/PathYouWantToRestoreTo&#8221;</font></strong></p>
<p><strong>STEP 3: Copy existing users from your current VSS installation.</strong><br />
Copy VSS\Users folder, VSS\Users.txt file and Um.dat file to the new installation</p>
<p><strong>STEP 4: </strong>Run <strong><font color="#007f40"><font color="#60bf00">Analyze -F &#8220;C:\Program Files\Microsoft Visual Studio\VSS\Data</font>&#8220;</font></strong>. This will re-generate the rights for all the users based on um.dat. Remember you just cannot simply copy rights.dat file to do this.</p>
<p><strong>STEP 5:</strong> You can either change the current srcsafe.ini to point to the new database, so that developers don&#8217;t get a broken link. Or you can just shutdown the server and tell people to reload their projects from the new server.</p>
<p><font color="#ff4040">Thats it. When you complete step 5&#8230;.your VSS migration is complete !!!!</font></p>
<p><strong>Further Reading:&#8212;&#8212;&#8212;&#8212;&#8212;</strong></p>
<p><font size="3" face="Times New Roman">Problems/Fixes for integrating VSS with Interdev:</font><br />
<a href="http://www.codeproject.com/asp/VSS_and_VID.asp?df=100&#38;forumid=136229&#38;select=1313406&#38;msg=1313406"><font size="3" color="#247cd4" face="Times New Roman">http://www.codeproject.com/asp/VSS_and_VID.asp?df=100&#38;forumid=136229&#38;select=1313406&#38;msg=1313406</font></a></p>
<p><font size="3" face="Times New Roman">User right setup for VSS:</font><br />
<a href="http://support.microsoft.com/kb/131022/EN-US/"><font size="3" color="#247cd4" face="Times New Roman">http://support.microsoft.com/kb/131022/EN-US/</font></a><font size="3" face="Times New Roman"> </font></p>
<p><span style="font-size:12pt;font-family:'Times New Roman';">Use of <a href="http://codebetter.com/blogs/darrell.norton/archive/2004/04/15/11493.aspx"><font color="#247cd4">http://codebetter.com/blogs/darrell.norton/archive/2004/04/15/11493.aspx</font></a> vss binding remover on developer’s machines to get rid of .scc files</span></p>
<p></font></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
