<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>SQLSrvE2E Work Item Rss Feed</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/List.aspx</link><description>SQLSrvE2E Work Item Rss Description</description><item><title>Commented Issue: Error: Invalid handle.\r\nParameter name: handle [8622]</title><link>http://sqlsrve2e.codeplex.com/workitem/8622</link><description>Error Message is &amp;#58; &amp;#34;Invalid handle.&amp;#92;r&amp;#92;nParameter name&amp;#58; handle&amp;#34; on line &amp;#58; &lt;br /&gt;&lt;br /&gt;The code instruction generating the error is &amp;#58;  FileStream destBlob &amp;#61; new FileStream&amp;#40;handle, FileAccess.Write&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Stack Trace is &amp;#58; &lt;br /&gt;&lt;br /&gt;A first chance exception of type &amp;#39;System.ArgumentException&amp;#39; occurred in mscorlib.dll&lt;br /&gt;System.Transactions Critical&amp;#58; 0 &amp;#58; &amp;#60;TraceRecord xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;2004&amp;#47;10&amp;#47;E2ETraceEvent&amp;#47;TraceRecord&amp;#34; Severity&amp;#61;&amp;#34;Critical&amp;#34;&amp;#62;&amp;#60;TraceIdentifier&amp;#62;http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;TraceCodes&amp;#47;System&amp;#47;ActivityTracing&amp;#47;2004&amp;#47;07&amp;#47;Reliability&amp;#47;Exception&amp;#47;Unhandled&amp;#60;&amp;#47;TraceIdentifier&amp;#62;&amp;#60;Description&amp;#62;Unhandled exception&amp;#60;&amp;#47;Description&amp;#62;&amp;#60;AppDomain&amp;#62;FileStreamLoader.vshost.exe&amp;#60;&amp;#47;AppDomain&amp;#62;&amp;#60;Exception&amp;#62;&amp;#60;ExceptionType&amp;#62;System.ArgumentException, mscorlib, Version&amp;#61;2.0.0.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;b77a5c561934e089&amp;#60;&amp;#47;ExceptionType&amp;#62;&amp;#60;Message&amp;#62;Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&amp;#60;&amp;#47;Message&amp;#62;&amp;#60;StackTrace&amp;#62;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;StackTrace&amp;#62;&amp;#60;ExceptionString&amp;#62;System.ArgumentException&amp;#58; Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;ExceptionString&amp;#62;&amp;#60;&amp;#47;Exception&amp;#62;&amp;#60;&amp;#47;TraceRecord&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connection to the database are ok, I have traced with SQL Profiler &amp;#58; &lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;INSERT &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93;&amp;#40;&amp;#91;mediaId&amp;#93;, &amp;#91;fileName&amp;#93;, &amp;#91;contentType&amp;#93;&amp;#41; VALUES&amp;#40; &amp;#64;mediaId, &amp;#64;fileName, &amp;#64;contentType&amp;#41;&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier,&amp;#64;fileName nvarchar&amp;#40;256&amp;#41;,&amp;#64;contentType nvarchar&amp;#40;256&amp;#41;&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;,&amp;#64;fileName&amp;#61;N&amp;#39;RogAndZachOnFilestream.wmv&amp;#39;,&amp;#64;contentType&amp;#61;N&amp;#39;video&amp;#47;x-ms-wmv&amp;#39;&lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;SELECT &amp;#91;file&amp;#93;.PathName&amp;#40;&amp;#41;, GET_FILESTREAM_TRANSACTION_CONTEXT&amp;#40;&amp;#41; FROM &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93; WHERE &amp;#91;mediaId&amp;#93; &amp;#61; &amp;#64;mediaId&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;&lt;br /&gt;Comments: ** Comment from web user: rfyffe ** &lt;p&gt;I too am having this problem. The only diffence is that i&amp;#39;m already using windows authentication to connect to my DB. I&amp;#39;m using Visual Studio 2005 and MSSQL 2008.&lt;br /&gt;This is and example of my connection string&lt;br /&gt;&amp;#60;add key&amp;#61;&amp;#34;ServerConnStr&amp;#34; value&amp;#61;&amp;#34;Data Source&amp;#61;SYSLT1990&amp;#59;Initial Catalog&amp;#61;TEST_DB&amp;#59;Integrated Security&amp;#61;SSPI&amp;#34;&amp;#47;&amp;#62;&lt;/p&gt;&lt;p&gt;Please tell me wat to do here i&amp;#39;m deperate. Thanks&lt;/p&gt;</description><author>rfyffe</author><pubDate>Tue, 03 Apr 2012 09:30:35 GMT</pubDate><guid isPermaLink="false">Commented Issue: Error: Invalid handle.\r\nParameter name: handle [8622] 20120403093035A</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: ZachSkylesOwens ** &lt;p&gt;Have you made any progress on this dizzyguy&amp;#63;  Have you identified where the bottle neck is&amp;#63;  You mentioned the input-file tag&amp;#8230;  The code in the sample doesn&amp;#8217;t actually provide an interface for uploading video via a web page.  &lt;/p&gt;&lt;p&gt;Are you experiencing the file size issue when trying to serve up the video&amp;#63;  It reads and writes the file in 512K chunks which shouldn&amp;#8217;t cause an issue. &lt;/p&gt;&lt;p&gt;I&amp;#8217;m interested to hear your conclusion.&lt;/p&gt;</description><author>ZachSkylesOwens</author><pubDate>Thu, 24 Jan 2008 23:46:40 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080124114640P</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: dizzyguy ** &lt;p&gt;And yeah, definitely interested in learning more about your custom IIS 7 module...&lt;/p&gt;</description><author>dizzyguy</author><pubDate>Fri, 18 Jan 2008 17:39:23 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080118053923P</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: dizzyguy ** &lt;p&gt;Yep, that&amp;#39;s right, within an ASPX page.  And it appears that ASPNET doesn&amp;#39;t play well with large files.  My next attempt is going to be to build a WCF service &amp;#40;binary over TCP&amp;#41;.  This is all pretty new to me, so this may be yet another wasted effort, but I&amp;#39;ll be happy to keep you all informed if you like.&lt;/p&gt;</description><author>dizzyguy</author><pubDate>Fri, 18 Jan 2008 14:21:11 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080118022111P</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: ZachSkylesOwens ** &lt;p&gt;Sorry that it took me a couple days to see this&amp;#8230;  I tried this with videos that were a few hundred MB without any problem.  I&amp;#8217;m not sure what limitation you might be running into with the GB size.&lt;/p&gt;&lt;p&gt;We have a sample that uses a Custom IIS 7 Module written in C&amp;#43;&amp;#43; which has great performance for serving these up.  We were able to tap into some lower level system resources.  We are working on solidifying that code and will publish it in the next few weeks.&lt;/p&gt;&lt;p&gt;Just to clarify&amp;#8230; Are you having this issue when serving the file with the ASPX service&amp;#63;&lt;/p&gt;</description><author>ZachSkylesOwens</author><pubDate>Fri, 18 Jan 2008 02:09:39 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080118020939A</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: dizzyguy ** &lt;p&gt;Sorry for all of the comments, but can you tell me if you think that a WCF service set up to receive streamed data &amp;#40;e.g. transferMode.Streamed&amp;#41; might solve the OOM Exception&amp;#63;  My thought is that Silverlight&amp;#43;WCF&amp;#47;Streaming might be an answer for getting &amp;#62; 1GB files into a FILESTREAM on SQL 2008&amp;#63;  This is probably a question for the WCF team, because as I understand it, the problem with ASPNET is that the data is saved in memory - instead of being written to the hard drive - which is the reason we get OOM exceptions.  But does streaming break the data up enough to solve any memory issues&amp;#63;  All rhetorical questions on my part, but if someone out there can help me put this all into perspective, I&amp;#39;d really appreciate it&amp;#33;&lt;/p&gt;</description><author>dizzyguy</author><pubDate>Wed, 16 Jan 2008 21:01:33 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080116090133P</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: dizzyguy ** &lt;p&gt;After further reading, I learned that this is an ASPNET worker process &amp;#34;problem&amp;#34;.  I will need to either buy a component or figure out another way to get users from disparate networks to upload 2GB&amp;#43; files to our servers.&lt;/p&gt;</description><author>dizzyguy</author><pubDate>Wed, 16 Jan 2008 02:40:43 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080116024043A</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: dizzyguy ** &lt;p&gt;One more thing worth noting...I moved the code to a server with plenty of resources, but it still failed to load the larger files.  Makes me think this is something related to the INPUT tag and how IIS is processing this&amp;#63;&amp;#63;&amp;#63;&amp;#63;&lt;/p&gt;</description><author>dizzyguy</author><pubDate>Tue, 15 Jan 2008 22:28:23 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080115102823P</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: dizzyguy ** &lt;p&gt;I&amp;#39;ve done everything that was laid out in the demo, except with one not-so-minor change evidently.  I&amp;#39;m trying to use the &amp;#60;input type&amp;#61;&amp;#39;file&amp;#39;&amp;#62; tag to load the file into SQL.  It works with 50MB files, but I get a  404 error when trying to work with files in the GB&amp;#43; range.&lt;/p&gt;&lt;p&gt;In this case, the INPUT is an ASPNET FileUpload component, and I&amp;#39;m loading the FileStream from the FileUpload&amp;#39;s InputStream like so&amp;#58;&lt;/p&gt;&lt;p&gt;&amp;#47;&amp;#47; Open up a new stream to write the file to the blob.&lt;br /&gt;destFile &amp;#61; new FileStream&amp;#40;handle, FileAccess.Write&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;&amp;#47;&amp;#47; Open up a new stream to read the source media file.&lt;br /&gt;&amp;#47;&amp;#47; --- Not using sourceFile&amp;#58; FileStream sourceFile &amp;#61; new&lt;br /&gt;&amp;#47;&amp;#47; FileStream&amp;#40;String.Concat&amp;#40;filePath, fileName&amp;#41;, FileMode.Open, FileAccess.Read&amp;#41;&amp;#59;&lt;br /&gt;&amp;#47;&amp;#47; Use the FileUpload.PostedFile.InputStream&lt;br /&gt;byte&amp;#91;&amp;#93; buffer &amp;#61; new byte&amp;#91;FileUpload1.PostedFile.InputStream.Length&amp;#93;&amp;#59;&lt;br /&gt;int bytesRead&amp;#59;&lt;br /&gt;while &amp;#40;&amp;#40;bytesRead &amp;#61; FileUpload1.PostedFile.InputStream.Read&amp;#40;buffer, 0, buffer.Length&amp;#41;&amp;#41; &amp;#62; 0&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;  destFile.Write&amp;#40;buffer, 0, bytesRead&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;destFile.Close&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#47;&amp;#47; sourceFile.Close&amp;#40;&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;Maybe using the INPUT-FILE tag isn&amp;#39;t the right option&amp;#63;  But we do need to enable offices from around the organization to upload the data in a standard manner -- and the INPUT-FILE tag was our first choice.&lt;/p&gt;&lt;p&gt;Any thoughts on that&amp;#63;&lt;/p&gt;</description><author>dizzyguy</author><pubDate>Tue, 15 Jan 2008 22:26:39 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080115102639P</guid></item><item><title>COMMENTED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: ReedMe ** &lt;p&gt;Other than the obvious limitations of the virtual environment that you&amp;#39;re in, dizzyguy, there should be no reason that you&amp;#39;d be limited. How exactly are you trying to load the filestream&amp;#63; With SNAC&amp;#63;&lt;/p&gt;</description><author>ReedMe</author><pubDate>Tue, 15 Jan 2008 18:05:10 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: File size limitations 20080115060510P</guid></item><item><title>CREATED ISSUE: File size limitations</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=9197</link><description>Kudos on the samples for FileStream in Katmai&amp;#33;&lt;br /&gt;&lt;br /&gt;Our organization will be serving up video files from 1.6 to 3 GBs in size.  I&amp;#39;m currently running the source code in a virtual machine session &amp;#40;VMWare Fusion 1.0, Win Server 2008, Katmai&amp;#41;.  Everything works great, until I try to upload a 1.6GB file, and I run into the ever popular &amp;#34;OutOfMemoryException&amp;#34;.&lt;br /&gt;&lt;br /&gt;My question&amp;#58;  Am I stupid for trying to run this in a virtual machine with only 2GB of mem, or is there something inherent in the system that is going to limit us from uploading files of this size to SQL Server&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;</description><author>dizzyguy</author><pubDate>Mon, 14 Jan 2008 18:02:16 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: File size limitations 20080114060216P</guid></item><item><title>COMMENTED ISSUE: Error: Invalid handle.\r\nParameter name: handle</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=8622</link><description>Error Message is &amp;#58; &amp;#34;Invalid handle.&amp;#92;r&amp;#92;nParameter name&amp;#58; handle&amp;#34; on line &amp;#58; &lt;br /&gt;&lt;br /&gt;The code instruction generating the error is &amp;#58;  FileStream destBlob &amp;#61; new FileStream&amp;#40;handle, FileAccess.Write&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Stack Trace is &amp;#58; &lt;br /&gt;&lt;br /&gt;A first chance exception of type &amp;#39;System.ArgumentException&amp;#39; occurred in mscorlib.dll&lt;br /&gt;System.Transactions Critical&amp;#58; 0 &amp;#58; &amp;#60;TraceRecord xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;2004&amp;#47;10&amp;#47;E2ETraceEvent&amp;#47;TraceRecord&amp;#34; Severity&amp;#61;&amp;#34;Critical&amp;#34;&amp;#62;&amp;#60;TraceIdentifier&amp;#62;http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;TraceCodes&amp;#47;System&amp;#47;ActivityTracing&amp;#47;2004&amp;#47;07&amp;#47;Reliability&amp;#47;Exception&amp;#47;Unhandled&amp;#60;&amp;#47;TraceIdentifier&amp;#62;&amp;#60;Description&amp;#62;Unhandled exception&amp;#60;&amp;#47;Description&amp;#62;&amp;#60;AppDomain&amp;#62;FileStreamLoader.vshost.exe&amp;#60;&amp;#47;AppDomain&amp;#62;&amp;#60;Exception&amp;#62;&amp;#60;ExceptionType&amp;#62;System.ArgumentException, mscorlib, Version&amp;#61;2.0.0.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;b77a5c561934e089&amp;#60;&amp;#47;ExceptionType&amp;#62;&amp;#60;Message&amp;#62;Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&amp;#60;&amp;#47;Message&amp;#62;&amp;#60;StackTrace&amp;#62;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;StackTrace&amp;#62;&amp;#60;ExceptionString&amp;#62;System.ArgumentException&amp;#58; Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;ExceptionString&amp;#62;&amp;#60;&amp;#47;Exception&amp;#62;&amp;#60;&amp;#47;TraceRecord&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connection to the database are ok, I have traced with SQL Profiler &amp;#58; &lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;INSERT &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93;&amp;#40;&amp;#91;mediaId&amp;#93;, &amp;#91;fileName&amp;#93;, &amp;#91;contentType&amp;#93;&amp;#41; VALUES&amp;#40; &amp;#64;mediaId, &amp;#64;fileName, &amp;#64;contentType&amp;#41;&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier,&amp;#64;fileName nvarchar&amp;#40;256&amp;#41;,&amp;#64;contentType nvarchar&amp;#40;256&amp;#41;&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;,&amp;#64;fileName&amp;#61;N&amp;#39;RogAndZachOnFilestream.wmv&amp;#39;,&amp;#64;contentType&amp;#61;N&amp;#39;video&amp;#47;x-ms-wmv&amp;#39;&lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;SELECT &amp;#91;file&amp;#93;.PathName&amp;#40;&amp;#41;, GET_FILESTREAM_TRANSACTION_CONTEXT&amp;#40;&amp;#41; FROM &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93; WHERE &amp;#91;mediaId&amp;#93; &amp;#61; &amp;#64;mediaId&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;&lt;br /&gt;Comments: &lt;P&gt;I reproduced this and forwarded to FILESTREAM team for investigation.&amp;nbsp; Great catch!&lt;/P&gt;</description><author>rdoherty</author><pubDate>Thu, 22 Nov 2007 04:32:05 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Error: Invalid handle.\r\nParameter name: handle 20071122043205A</guid></item><item><title>COMMENTED ISSUE: Error: Invalid handle.\r\nParameter name: handle</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=8622</link><description>Error Message is &amp;#58; &amp;#34;Invalid handle.&amp;#92;r&amp;#92;nParameter name&amp;#58; handle&amp;#34; on line &amp;#58; &lt;br /&gt;&lt;br /&gt;The code instruction generating the error is &amp;#58;  FileStream destBlob &amp;#61; new FileStream&amp;#40;handle, FileAccess.Write&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Stack Trace is &amp;#58; &lt;br /&gt;&lt;br /&gt;A first chance exception of type &amp;#39;System.ArgumentException&amp;#39; occurred in mscorlib.dll&lt;br /&gt;System.Transactions Critical&amp;#58; 0 &amp;#58; &amp;#60;TraceRecord xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;2004&amp;#47;10&amp;#47;E2ETraceEvent&amp;#47;TraceRecord&amp;#34; Severity&amp;#61;&amp;#34;Critical&amp;#34;&amp;#62;&amp;#60;TraceIdentifier&amp;#62;http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;TraceCodes&amp;#47;System&amp;#47;ActivityTracing&amp;#47;2004&amp;#47;07&amp;#47;Reliability&amp;#47;Exception&amp;#47;Unhandled&amp;#60;&amp;#47;TraceIdentifier&amp;#62;&amp;#60;Description&amp;#62;Unhandled exception&amp;#60;&amp;#47;Description&amp;#62;&amp;#60;AppDomain&amp;#62;FileStreamLoader.vshost.exe&amp;#60;&amp;#47;AppDomain&amp;#62;&amp;#60;Exception&amp;#62;&amp;#60;ExceptionType&amp;#62;System.ArgumentException, mscorlib, Version&amp;#61;2.0.0.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;b77a5c561934e089&amp;#60;&amp;#47;ExceptionType&amp;#62;&amp;#60;Message&amp;#62;Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&amp;#60;&amp;#47;Message&amp;#62;&amp;#60;StackTrace&amp;#62;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;StackTrace&amp;#62;&amp;#60;ExceptionString&amp;#62;System.ArgumentException&amp;#58; Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;ExceptionString&amp;#62;&amp;#60;&amp;#47;Exception&amp;#62;&amp;#60;&amp;#47;TraceRecord&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connection to the database are ok, I have traced with SQL Profiler &amp;#58; &lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;INSERT &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93;&amp;#40;&amp;#91;mediaId&amp;#93;, &amp;#91;fileName&amp;#93;, &amp;#91;contentType&amp;#93;&amp;#41; VALUES&amp;#40; &amp;#64;mediaId, &amp;#64;fileName, &amp;#64;contentType&amp;#41;&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier,&amp;#64;fileName nvarchar&amp;#40;256&amp;#41;,&amp;#64;contentType nvarchar&amp;#40;256&amp;#41;&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;,&amp;#64;fileName&amp;#61;N&amp;#39;RogAndZachOnFilestream.wmv&amp;#39;,&amp;#64;contentType&amp;#61;N&amp;#39;video&amp;#47;x-ms-wmv&amp;#39;&lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;SELECT &amp;#91;file&amp;#93;.PathName&amp;#40;&amp;#41;, GET_FILESTREAM_TRANSACTION_CONTEXT&amp;#40;&amp;#41; FROM &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93; WHERE &amp;#91;mediaId&amp;#93; &amp;#61; &amp;#64;mediaId&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;&lt;br /&gt;Comments: ** Comment from web user: ZachSkylesOwens ** &lt;p&gt;This issue was found by a developer in France.&lt;/p&gt;&lt;p&gt;After going back and forth a few times we discovered that the problem was he was using SQL Server authentication mode and using &amp;#34;sa&amp;#34;.  We developed these samples using Windows Authentication.  Once he updated his configuration the sample ran without an issue.&lt;/p&gt;&lt;p&gt;We will investigate what changes need to be made for SQL Server authentication mode to work properly before closing this Issue.&lt;/p&gt;</description><author>ZachSkylesOwens</author><pubDate>Wed, 21 Nov 2007 21:34:51 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Error: Invalid handle.\r\nParameter name: handle 20071121093451P</guid></item><item><title>CREATED ISSUE: Error: Invalid handle.\r\nParameter name: handle</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=8622</link><description>Error Message is &amp;#58; &amp;#34;Invalid handle.&amp;#92;r&amp;#92;nParameter name&amp;#58; handle&amp;#34; on line &amp;#58; &lt;br /&gt;&lt;br /&gt;The code instruction generating the error is &amp;#58;  FileStream destBlob &amp;#61; new FileStream&amp;#40;handle, FileAccess.Write&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Stack Trace is &amp;#58; &lt;br /&gt;&lt;br /&gt;A first chance exception of type &amp;#39;System.ArgumentException&amp;#39; occurred in mscorlib.dll&lt;br /&gt;System.Transactions Critical&amp;#58; 0 &amp;#58; &amp;#60;TraceRecord xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;2004&amp;#47;10&amp;#47;E2ETraceEvent&amp;#47;TraceRecord&amp;#34; Severity&amp;#61;&amp;#34;Critical&amp;#34;&amp;#62;&amp;#60;TraceIdentifier&amp;#62;http&amp;#58;&amp;#47;&amp;#47;msdn.microsoft.com&amp;#47;TraceCodes&amp;#47;System&amp;#47;ActivityTracing&amp;#47;2004&amp;#47;07&amp;#47;Reliability&amp;#47;Exception&amp;#47;Unhandled&amp;#60;&amp;#47;TraceIdentifier&amp;#62;&amp;#60;Description&amp;#62;Unhandled exception&amp;#60;&amp;#47;Description&amp;#62;&amp;#60;AppDomain&amp;#62;FileStreamLoader.vshost.exe&amp;#60;&amp;#47;AppDomain&amp;#62;&amp;#60;Exception&amp;#62;&amp;#60;ExceptionType&amp;#62;System.ArgumentException, mscorlib, Version&amp;#61;2.0.0.0, Culture&amp;#61;neutral, PublicKeyToken&amp;#61;b77a5c561934e089&amp;#60;&amp;#47;ExceptionType&amp;#62;&amp;#60;Message&amp;#62;Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&amp;#60;&amp;#47;Message&amp;#62;&amp;#60;StackTrace&amp;#62;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;StackTrace&amp;#62;&amp;#60;ExceptionString&amp;#62;System.ArgumentException&amp;#58; Invalid handle.&lt;br /&gt;Parameter name&amp;#58; handle&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync&amp;#41;&lt;br /&gt;   at System.IO.FileStream..ctor&amp;#40;SafeFileHandle handle, FileAccess access&amp;#41;&lt;br /&gt;   at FilestreamLoader.Program.Main&amp;#40;&amp;#41; in C&amp;#58;&amp;#92;demos&amp;#92;Katmai&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;SQLSrvE2E_SQL2K8_Samples_v1.1&amp;#92;FILESTREAM-WPF-HTTP Sample&amp;#92;CS&amp;#92;FilestreamWpfHttp&amp;#92;FilestreamLoader&amp;#92;main.cs&amp;#58;line 106&lt;br /&gt;   at System.AppDomain._nExecuteAssembly&amp;#40;Assembly assembly, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at System.AppDomain.ExecuteAssembly&amp;#40;String assemblyFile, Evidence assemblySecurity, String&amp;#91;&amp;#93; args&amp;#41;&lt;br /&gt;   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly&amp;#40;&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart_Context&amp;#40;Object state&amp;#41;&lt;br /&gt;   at System.Threading.ExecutionContext.Run&amp;#40;ExecutionContext executionContext, ContextCallback callback, Object state&amp;#41;&lt;br /&gt;   at System.Threading.ThreadHelper.ThreadStart&amp;#40;&amp;#41;&amp;#60;&amp;#47;ExceptionString&amp;#62;&amp;#60;&amp;#47;Exception&amp;#62;&amp;#60;&amp;#47;TraceRecord&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connection to the database are ok, I have traced with SQL Profiler &amp;#58; &lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;INSERT &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93;&amp;#40;&amp;#91;mediaId&amp;#93;, &amp;#91;fileName&amp;#93;, &amp;#91;contentType&amp;#93;&amp;#41; VALUES&amp;#40; &amp;#64;mediaId, &amp;#64;fileName, &amp;#64;contentType&amp;#41;&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier,&amp;#64;fileName nvarchar&amp;#40;256&amp;#41;,&amp;#64;contentType nvarchar&amp;#40;256&amp;#41;&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;,&amp;#64;fileName&amp;#61;N&amp;#39;RogAndZachOnFilestream.wmv&amp;#39;,&amp;#64;contentType&amp;#61;N&amp;#39;video&amp;#47;x-ms-wmv&amp;#39;&lt;br /&gt;&lt;br /&gt;exec sp_executesql N&amp;#39;SELECT &amp;#91;file&amp;#93;.PathName&amp;#40;&amp;#41;, GET_FILESTREAM_TRANSACTION_CONTEXT&amp;#40;&amp;#41; FROM &amp;#91;dbo&amp;#93;.&amp;#91;media&amp;#93; WHERE &amp;#91;mediaId&amp;#93; &amp;#61; &amp;#64;mediaId&amp;#59;&amp;#39;,N&amp;#39;&amp;#64;mediaId uniqueidentifier&amp;#39;,&amp;#64;mediaId&amp;#61;&amp;#39;1AB1E4B3-1F87-48DF-B3FA-88582E3D29D4&amp;#39;&lt;br /&gt;</description><author>ZachSkylesOwens</author><pubDate>Wed, 21 Nov 2007 20:17:19 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Error: Invalid handle.\r\nParameter name: handle 20071121081719P</guid></item><item><title>CLOSED ISSUE: Test</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=8492</link><description>This is a test Issue&lt;br /&gt;Comments: This was just a test.</description><author>ZachSkylesOwens</author><pubDate>Fri, 09 Nov 2007 16:10:21 GMT</pubDate><guid isPermaLink="false">CLOSED ISSUE: Test 20071109041021P</guid></item><item><title>CREATED ISSUE: Test</title><link>http://www.codeplex.com/SQLSrvE2E/WorkItem/View.aspx?WorkItemId=8492</link><description>This is a test Issue&lt;br /&gt;</description><author>ZachSkylesOwens</author><pubDate>Wed, 07 Nov 2007 23:58:57 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Test 20071107115857P</guid></item></channel></rss>