<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Visual Studio</title>
        <link>http://geekswithblogs.net/karskip/category/7338.aspx</link>
        <description>Visual Studio</description>
        <language>en-US</language>
        <copyright>Peter K</copyright>
        <managingEditor>buttweld1@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>ASP Web Setup Project Build Failing with No Errors</title>
            <link>http://geekswithblogs.net/karskip/archive/2009/04/23/131413.aspx</link>
            <description>I've been messing around with Web Setup Projects in Visual Studio 2008 and have been using them to deploy an ASP application I've been working on. One thing I've learned is that Web Setup is very temp&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;eramental as far as how your development environment is setup. I've had to do everything from computer restarts to registry hacks to get my Projects to build, and thought I had finally nailed down all the issues until I had to redeploy my application today.&lt;br /&gt;
&lt;br /&gt;
Upon building the Web Setup project I would get the "Build Failed" message along with no errors. Puzzled, I enabled detailed build logging in Visual Studio's options. And still, no errors. &lt;br /&gt;
&lt;br /&gt;
As developers we've all gone through the process of problem solving. You start trying reasonable solutions that seem logically correlated to the issue at hand, and failing that slowly devolve into more obscure and senseless solutions that aren't even remotely related to what you're trying to fix. And this is precisely what happened.&lt;br /&gt;
&lt;br /&gt;
What fixed my problem? Instead of opening my solution from the "Recent Projects" menu in the Visual Studio Start Page, I opened the solution through File &amp;gt; Open &amp;gt; Web Site...&lt;br /&gt;
&lt;br /&gt;
Like I said, a senseless solution to a problem that should have never existed in the first place.&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=131413"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=131413" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/karskip/aggbug/131413.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Peter K</dc:creator>
            <guid>http://geekswithblogs.net/karskip/archive/2009/04/23/131413.aspx</guid>
            <pubDate>Thu, 23 Apr 2009 09:24:55 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/karskip/comments/131413.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/karskip/archive/2009/04/23/131413.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/karskip/comments/commentRss/131413.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/karskip/services/trackbacks/131413.aspx</trackback:ping>
        </item>
        <item>
            <title>Releasing Files In Use By Other Processes</title>
            <link>http://geekswithblogs.net/karskip/archive/2007/11/23/117068.aspx</link>
            <description>When developing an application that uses a SQL Server Compact Edition database, you may run into a problem getting your application to build if you frequently compile it to test changes. Specifically the following error:
&lt;pre class="csharpcode"&gt;Problem generating manifest. The process cannot access the file 'C:\...\mydb.sdf' because it is being used by another process.&lt;/pre&gt;
The problem is that your application didn't properly release its lock on the SQLCE database file the last time you ran it. I find this especially happens when you're debugging and hit an unhandled exception. Since your application runs as a child of the devenv.exe (Visual Studio) process, closing and reopening Visual Studio will release the lock on the SDF file and allow you to successfully compile again. Obviously, restarting Visual Studio everytime you want to test your application isn't very convenient.  &lt;br /&gt;
&lt;br /&gt;
There is an easier solution to this problem. You'll need to download &lt;a href="http://www.microsoft.com/technet/sysinternals/utilities/processexplorer.mspx" style="color: blue;"&gt;Process Explorer&lt;/a&gt;, a free utility provided by Microsoft. According to the website, "Process Explorer shows you information about which handles and DLLs processes have opened or loaded". This is precisely what we need to release the SDF file that Visual Studio has taken hostage.  &lt;br /&gt;
&lt;br /&gt;
So open up Process Explorer, and using the "Find Handle or DLL..." feature search for "sdf". You may end up with several results, but what you're looking for is the SDF that you use in your application. Once you find it, double click it. The file will then appear highlighted on the bottom half of the window, right click it and select "Close Handle". The lock on the file will be destroyed, allowing you to successfully build your application without getting manifest generation errors.&lt;br /&gt;
&lt;div class="techtags"&gt;Tech Tags: &lt;a href="http://technorati.com/tag/file+lock" rel="tag" class="techtag"&gt;file+lock&lt;/a&gt; &lt;a href="http://technorati.com/tag/manifest+error" rel="tag" class="techtag"&gt;manifest+error&lt;/a&gt; &lt;a href="http://technorati.com/tag/process+explorer" rel="tag" class="techtag"&gt;process+explorer&lt;/a&gt; &lt;a href="http://technorati.com/tag/visual+studio" rel="tag" class="techtag"&gt;visual+studio&lt;/a&gt; &lt;a href="http://technorati.com/tag/sql+server+compact+edition" rel="tag" class="techtag"&gt;sql+server+compact+edition&lt;/a&gt; &lt;a href="http://technorati.com/tag/sqlce" rel="tag" class="techtag"&gt;sqlce&lt;/a&gt; &lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=117068"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=117068" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/karskip/aggbug/117068.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Peter K</dc:creator>
            <guid>http://geekswithblogs.net/karskip/archive/2007/11/23/117068.aspx</guid>
            <pubDate>Fri, 23 Nov 2007 04:21:53 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/karskip/comments/117068.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/karskip/archive/2007/11/23/117068.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/karskip/comments/commentRss/117068.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/karskip/services/trackbacks/117068.aspx</trackback:ping>
        </item>
    </channel>
</rss>