<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" 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:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 - Discussions by pavone</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/pavone/Discussions/RSS"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 - Discussions by pavone</title>
		<link>http://channel9.msdn.com/Niners/pavone/Discussions</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Niners/pavone/Discussions</link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 23:07:19 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 23:07:19 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>0</c9:totalResults>
	<c9:pageCount>0</c9:pageCount>
	<c9:pageSize>0</c9:pageSize>
	<item>
		<title>Coffeehouse - I work in an internal IT Dept.  Is Channel 9 not for me?</title>
		<description><![CDATA[<p></p><blockquote><div class="quoteText"><p></p><p><a class="permalink" title="Post Permalink" href="/Forums/Coffeehouse/I-work-in-an-internal-IT-Dept-Is-Channel-9-not-for-me/ef86a15e67d54d52b022a1a600166d56">3 hours&nbsp;ago</a>, <a href="/Niners/PerfectPhase">PerfectPhase</a> wrote</p><p>If the video's here aren't your sort of thing I highly recommend <a href="http://pluralsight.com/training">http://pluralsight.com/training</a></p><p></p></div></blockquote><p></p><p>Seconded. Pluralsight is the best video store for MS stack devs, I cannot stop going back to it. Clear concise explanations, that cover nearly everything you need to know to go from newbie to pro. &nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/I-work-in-an-internal-IT-Dept-Is-Channel-9-not-for-me/7cb6d534ebbb45f79c7ba1a6004f3b4f#7cb6d534ebbb45f79c7ba1a6004f3b4f</link>
		<pubDate>Sat, 20 Apr 2013 04:48:28 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/I-work-in-an-internal-IT-Dept-Is-Channel-9-not-for-me/7cb6d534ebbb45f79c7ba1a6004f3b4f#7cb6d534ebbb45f79c7ba1a6004f3b4f</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>36</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Oh look, I&#39;m on video</title>
		<description><![CDATA[<p>Nice video. Good to see a MS expert helping out and sharing the knowledge in this board. Thanks.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Oh-look-Im-on-video/5591689bdff74b469d78a1950144cd80#5591689bdff74b469d78a1950144cd80</link>
		<pubDate>Wed, 03 Apr 2013 19:42:34 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Oh-look-Im-on-video/5591689bdff74b469d78a1950144cd80#5591689bdff74b469d78a1950144cd80</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - The beggining of the end of DirectX?</title>
		<description><![CDATA[<p>&nbsp;It's nice to see MS is supporting WebGL, we've seen some amazing things being done with it. Mind you, I fail to see the connection of support of WebGL to the end of DirectX..&nbsp;</p><p>It would be nice to see better support for OpenGL in Windows, but DirectX is pretty much proven technology, I don't see it going anywhere.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/The-beggining-of-the-end-of-DirectX/0aa9984f96c54ea89d57a1920146c205#0aa9984f96c54ea89d57a1920146c205</link>
		<pubDate>Sun, 31 Mar 2013 19:49:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/The-beggining-of-the-end-of-DirectX/0aa9984f96c54ea89d57a1920146c205#0aa9984f96c54ea89d57a1920146c205</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>28</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ASP.NET MVC does not play nice with IE</title>
		<description><![CDATA[<p>Thanks PopeDai, your search query led me to the right solution. Turned out to be my DivX plug-in for IE, same plug-in in other browsers (Chrome, FF) works fine though.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-MVC-does-not-play-nice-with-IE/48d9f49b77334656b413a18401338b08#48d9f49b77334656b413a18401338b08</link>
		<pubDate>Sun, 17 Mar 2013 18:39:43 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-MVC-does-not-play-nice-with-IE/48d9f49b77334656b413a18401338b08#48d9f49b77334656b413a18401338b08</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>8</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ASP.NET MVC does not play nice with IE</title>
		<description><![CDATA[<p>Both IE9 and IE10. Haven't tested IE8 but doesn't it use the same javascript engine.. I figure there's some&nbsp;configuration or flag in VS2012 (using MVC 4.0 btw) I need to set. Note that this is the default template, I have not added a single line of code.&nbsp;&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-MVC-does-not-play-nice-with-IE/3b01963c852941f89108a1840032dbbe#3b01963c852941f89108a1840032dbbe</link>
		<pubDate>Sun, 17 Mar 2013 03:05:10 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-MVC-does-not-play-nice-with-IE/3b01963c852941f89108a1840032dbbe#3b01963c852941f89108a1840032dbbe</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>8</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ASP.NET MVC does not play nice with IE</title>
		<description><![CDATA[<p>So whenever I try to run the default Internet application from ASP.NET MVC with IE, it throws an exception:</p><p><img src="http://imageshack.us/a/img191/1422/mvcerror.png" alt=""></p><p>And the offending piece of code at which it breaks:<br><br></p><p><pre class="brush: js">// HACK : override appendChild, replaceChild, insertBefore for IE, since it doesn't support DOM events
    if (isInternetExplorer)
    {
        var appendChildOriginal = doc.body.appendChild;
        doc.body.appendChild = function(element)
        {
            appendChildOriginal(element);
            var tag = element.tagName.toLowerCase();
            
            if (&quot;video&quot; == tag)
            {
                ProcessVideoElement(element);
            }
        }

       ....
}</pre></p><p>I can simply continue but it's very annoying. So is there way to disable this error?&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-MVC-does-not-play-nice-with-IE/6faee198aea7485384b0a1830155689d#6faee198aea7485384b0a1830155689d</link>
		<pubDate>Sat, 16 Mar 2013 20:43:01 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-MVC-does-not-play-nice-with-IE/6faee198aea7485384b0a1830155689d#6faee198aea7485384b0a1830155689d</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>8</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ASP.NET and Network Drives Help</title>
		<description><![CDATA[<p>Hey guys,</p><p>So I have another problem. I need to check out a file from PVCS from an ASP.NET webpage. In order to do so I spawn a process that calls a batch file which sets some environment variables and then calls the pvcs command get.exe to get the file. This all works great when I run it on my local machine, but as soon as I deploy to the server all hell breaks lose. The website impersonates the main user, this happens in the web.config (still not sure if relevant).&nbsp;</p><p>After trial and error, I narrowed down the problem to communication with shared drives. PVCS drive is mapped in the server. So I made a small batch script that only does a cd to a directory on this shared drive and it failed. Code is simply &quot;<strong>cd Z:/work/</strong>&quot;.</p><p>Google gave some answers and more questions still. Apparently impersonation and shared drives simply do not work. But I'm not certain if that pertains to spawned process using C# Process class. Though, given that the webpage works perfectly in my machine without impersonation, this might have something to do with it. C# spawned processes have limited permissions, but I don't think this is the problem since my code is failing in doing a simple&nbsp;<strong>cd Z:\work\.&nbsp;</strong></p><p>So I created a console app which does the check out (same code as the webpage) and it worked in the web server without a problem. The problem only occurs when I spawned the process from the webpage in the webserver. I made some dummy code to test.</p><p>I even tried to call the console app from the website, but that still doesn't work.&nbsp;</p><p>&nbsp;</p><p><pre class="brush: csharp">public partial class _Default : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            

        }

        protected void btnCheckout_Click(object sender, EventArgs e)
        {
            Command cmd = new Command(@&quot;cmd&quot;, @&quot;/c testpath.bat&quot;);
            cmd.execute();
          
            lblError.Text = cmd.stderr;
            lblOutput.Text = cmd.stdout;
        }
    }


public class Command
    {
        // Private members
        private Process process;
        private int timeout;

        // Public members
        public string stderr { get; private set; }
        public string stdout { get; private set; }
        public string exception { get; private set; }
        public bool done { get; private set; }
        public int exitLevel { get; private set; }


        /// &lt;summary&gt;
        /// Construct a Command object that will be executed in a Windows environment.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;args&quot;&gt;the command to execute in command prompt&lt;/param&gt;
        /// &lt;param name=&quot;timeout&quot;&gt;This is optional and consists of the time in milliseconds to wait for the command to finish. Default is 10 seconds.&lt;/param&gt;
        public Command(string exec, string args, string workingDir=&quot;&quot;, int timeout = 5000)
        {
            this.timeout = timeout;
            this.exception = &quot;&quot;;
            process = new Process();
            if (!string.IsNullOrEmpty(workingDir))
                process.StartInfo.WorkingDirectory = workingDir;
            process.StartInfo.FileName = exec;
            process.StartInfo.Arguments = args;
            process.StartInfo.UseShellExecute = false;
            process.StartInfo.CreateNoWindow = true;
            process.StartInfo.RedirectStandardError = true;
            process.StartInfo.RedirectStandardOutput = true;
            process.OutputDataReceived &#43;= process_OutputDataReceived;
        }

        void process_OutputDataReceived(object sender, DataReceivedEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Data))
            {
                stdout = e.Data;
            }
        }

        public void execute()
        {
            try
            {
                process.Start();
                process.BeginOutputReadLine();                  // Note that the following three lines in any 
                stderr = process.StandardError.ReadToEnd();     // other order will deadlock. 
                process.WaitForExit(timeout);
            }
            catch (Exception e)
            {
                exception = e.Message;
                Debug.WriteLine(e.Message &#43; &quot;\n&quot; &#43; e.StackTrace);
            }
            Thread.Sleep(1000);
        }

       
    }</pre></p><p>&nbsp;</p><p>Does anybody have any clue what my problem is?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-and-Network-Drives-Help/8ab1217154ea40f9a534a16b01575bcb#8ab1217154ea40f9a534a16b01575bcb</link>
		<pubDate>Wed, 20 Feb 2013 20:50:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-and-Network-Drives-Help/8ab1217154ea40f9a534a16b01575bcb#8ab1217154ea40f9a534a16b01575bcb</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Next XBOX specs - MS going conservative</title>
		<description><![CDATA[<p>@<a href="/Forums/Coffeehouse/Next-XBOX-specs-MS-going-conservative#c2eff70b9980d41ff90a8a14f003b2766">evildictaitor</a>: XNA has been the beginning of many big titles in Xbox Live, titles that have sold over a million like Fez and Super Meat boy. It certainly gave the MS indie space a big boost, but it would be unfair to expect the same gains when compared to fully budgeted games back-up by big publishers.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Next-XBOX-specs-MS-going-conservative/80f27219cb9b42efb4b8a150014fbb9e#80f27219cb9b42efb4b8a150014fbb9e</link>
		<pubDate>Thu, 24 Jan 2013 20:22:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Next-XBOX-specs-MS-going-conservative/80f27219cb9b42efb4b8a150014fbb9e#80f27219cb9b42efb4b8a150014fbb9e</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>17</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - MPI Programming</title>
		<description><![CDATA[<p>&nbsp;Yay, I figured out the problem. I'll leave it up for any curious coders that want to spot the error, if you're able to spot it, treat yourself to a cookie.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/MPI-Programming/6a062be666e24b9eb28ba0fe00148f25#6a062be666e24b9eb28ba0fe00148f25</link>
		<pubDate>Sat, 03 Nov 2012 01:14:51 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/MPI-Programming/6a062be666e24b9eb28ba0fe00148f25#6a062be666e24b9eb28ba0fe00148f25</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - MPI Programming</title>
		<description><![CDATA[<p>&nbsp;Hi niners, I have a different query today, this relates to my master's work rather than my job. Not sure if anyone here is familiar with MPI but here it goes, I have this:<br><br></p><p><pre class="brush: cpp">MPI_Init(&amp;argc, &amp;argv);
  MPI_Comm_rank(MPI_COMM_WORLD, &amp;my_rank);
  MPI_Comm_size(MPI_COMM_WORLD, &amp;comm_sz);

  if(my_rank == 0) {
    for(i=1; i&lt;=n;&#43;&#43;i)
      a[i-1] = i-1;

    // Distribute                                                                                                        
    MPI_Send(a, n, MPI_INT, my_rank&#43;1, n, MPI_COMM_WORLD);

  } else {
    // Receive and distribute initial values                                                                             
    MPI_Recv(a, n, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &amp;status);
    k = status.MPI_TAG/2;
    if(k!=0) {
      MPI_Send(a&#43;1, k, MPI_INT, my_rank&#43;1, k, MPI_COMM_WORLD); //pass sub-array [1..k]                                   
      MPI_Send(a&#43;k&#43;1, k, MPI_INT, k&#43;my_rank&#43;1, k, MPI_COMM_WORLD); //pass sub-array [k&#43;1..2k&#43;1]                          
    }
    partial = a[0];
    printf(&quot;rank: %d\tvalue: %d\n&quot;, my_rank, partial);

    // Carry out Prefix Sum algorithm : for 1 to log2(n)   - THIS IS WHERE IT FAILS                                                          
    j = (int)(log((float)n&#43;1)/log((float)2));
    //printf(&quot;Log(n) = %d\n&quot;, j);                                                                                        
    for(i=0; i&lt;j; &#43;&#43;i) {
      k = (int)(pow((float)2,(float)i));
      printf(&quot;**rank: %d, k=%d\n&quot;, my_rank, k);
      if(my_rank&#43;k&lt;=n) MPI_Send(&amp;partial, 1, MPI_INT, my_rank&#43;k, 0, MPI_COMM_WORLD/*, &amp;request*/);
      if(my_rank-k&gt;=1) {
        MPI_Recv(&amp;value, 1 , MPI_INT, my_rank-k, 0, MPI_COMM_WORLD, &amp;status);
        partial &#43;= value;
      }
    }
    printf(&quot;rank: %d\tpartial: %d\n&quot;, my_rank, partial);
  }

  MPI_Finalize();
</pre></p><p>And it's deadlocking. It works about 80% of the time and the other time, it fails. I've noticed that when it fails, a process usually sends messages, ends before its receiver has received yet. Does anyone know if an&nbsp;MPI process can send message and finalize before message is received?</p><p>I can't see why it's deadlocking, any ideas?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/MPI-Programming/e51193aab8b84849bbcaa0fe000f7c40#e51193aab8b84849bbcaa0fe000f7c40</link>
		<pubDate>Sat, 03 Nov 2012 00:56:22 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/MPI-Programming/e51193aab8b84849bbcaa0fe000f7c40#e51193aab8b84849bbcaa0fe000f7c40</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>3</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Reading Zipped files in ASP.NET 3.5</title>
		<description><![CDATA[<p></p><blockquote><div class="quoteText"><p></p><p><a class="permalink" title="Post Permalink" href="/Forums/Coffeehouse/Reading-Zipped-files-in-ASPNET-35/6184895affef40f98a04a0da00308210">1 hour&nbsp;ago</a>, <a href="/Niners/blowdart">blowdart</a> wrote</p><p>The HTML file input control *always* uploads the file. Always.</p><p></p></div></blockquote><p></p><p>So then the HTML input control and a plain input control in a ASP.NET app are not the same? For example something like this:<br></p><pre class="brush: html">&lt;input type=&quot;file&quot; id=&quot;test&quot;/&gt;</pre><br><br><p></p><p>I have something like that and browsing to something does not (seem) to upload anything. Now if I create an asp.net input type, as soon as I browse to something it starts uploading. I had to implement the ICallbackEventHandler in the .cs file, but it seems to be doing what I need so far.&nbsp;</p><p>As for the zip reader, I wasn't aware javascript could give me what I want, still new to this. I was looking at System.IO.Packaging and thinking of hooking up more client controls to server side functions to do the trick...&nbsp; <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-7.gif?v=c9' alt='Perplexed' /></p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Reading-Zipped-files-in-ASPNET-35/bebb110b04024f9d8f20a0da0048fea9#bebb110b04024f9d8f20a0da0048fea9</link>
		<pubDate>Fri, 28 Sep 2012 04:25:45 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Reading-Zipped-files-in-ASPNET-35/bebb110b04024f9d8f20a0da0048fea9#bebb110b04024f9d8f20a0da0048fea9</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Reading Zipped files in ASP.NET 3.5</title>
		<description><![CDATA[<p>Hey there, again.</p><p>So now I'm trying to, if possible, read the content (file names) from a .zip file when somebody browses to a zipped file using my HTML file input. Is this possible without uploading the zipped file to the server (given I have a UNC path)?&nbsp;</p><p>To make it clearer, a use case would be a user come to my website, uses my html file input to browse to a zipped file, then clicks a html or asp.net button and my website outputs the names of all the files inside the zipped file (ideally without any upload).&nbsp;</p><p>Thanks.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Reading-Zipped-files-in-ASPNET-35/9fd77681a3b847fcabfba0da0011cc05#9fd77681a3b847fcabfba0da0011cc05</link>
		<pubDate>Fri, 28 Sep 2012 01:04:47 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Reading-Zipped-files-in-ASPNET-35/9fd77681a3b847fcabfba0da0011cc05#9fd77681a3b847fcabfba0da0011cc05</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ActiveXObject</title>
		<description><![CDATA[<p>&nbsp;I made another version where the only difference is that it requires a UNC path and makes no use of ActiveX whatsoever, if the client is fine with it, then it's all good.&nbsp;</p><p>If not, then how effective would it be to let this site into their Trusted Sites, and such only this website could make use of this ActiveX object? I noticed that this website already works in our network with the only caveat of producing a pop-up asking for confirmation, so it's not like I need to make any changes to the systems as I initially thought. Recall that this is an intranet site, no one will change internet zones.&nbsp;</p><p>Regards&nbsp;</p><p>&nbsp;</p><p>-- Update ---</p><p>Looks like browse with UNC path will do fine.</p><p>Thanks for the feedback.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ActiveXObject/1936d16863844601a2daa0d20145a39c#1936d16863844601a2daa0d20145a39c</link>
		<pubDate>Thu, 20 Sep 2012 19:45:36 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ActiveXObject/1936d16863844601a2daa0d20145a39c#1936d16863844601a2daa0d20145a39c</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ActiveXObject</title>
		<description><![CDATA[<p>&nbsp;No other way to do what I need I'm afraid. Not the method I'd prefer of doing it either, but I'm just the junior code monkey following instructions.&nbsp;</p><p>Preferably I'd like that message turned off for my site only, an intranet site which only allows access to a few selected people. But any method to turn that message off would work, I'll leave it to the users whether they want to or not.&nbsp;</p><p>What I'm doing is, reading users' mapped drives to the actual UNC paths so I can copy files from whatever mapped path they select.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ActiveXObject/a5a4fd466a2844849a04a0d1014e42a1#a5a4fd466a2844849a04a0d1014e42a1</link>
		<pubDate>Wed, 19 Sep 2012 20:17:00 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ActiveXObject/a5a4fd466a2844849a04a0d1014e42a1#a5a4fd466a2844849a04a0d1014e42a1</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ActiveXObject</title>
		<description><![CDATA[<p>&nbsp;I have the following javascript:<br><pre class="brush: text">var WshNetwork = new ActiveXObject(&quot;WScript.Network&quot;);
var Drives = WshNetwork.EnumNetworkDrives();</pre></p><p>Which gives me this warning:<br>&quot;An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction? &nbsp;YES &nbsp;NO&quot;</p><p>Does anyone know how I can make it so that I can ask the user to install or do something so that that message doesn't pop up again?</p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ActiveXObject/5c4c3bb7ed3640cfbea7a0d1014a73b8#5c4c3bb7ed3640cfbea7a0d1014a73b8</link>
		<pubDate>Wed, 19 Sep 2012 20:03:08 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ActiveXObject/5c4c3bb7ed3640cfbea7a0d1014a73b8#5c4c3bb7ed3640cfbea7a0d1014a73b8</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>16</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - VS2010 vs VS2012 ASP.NET</title>
		<description><![CDATA[<p>&nbsp;Webforms. It seems to be using IIS Express, for both version I simply use the nice GUI |&gt; Debug command but it seems they might do different things from VS2010 to VS2012... VS2010 opens a development server, VS2012 opens IIS Express, how can I get VS2012 to do the same thing as VS2010 to test my website?&nbsp;</p><p>Btw I'm targeting .NET 3.5 so I don't think .NET 4.5 should affect my app, since it's not .NET 4...</p><p>&nbsp;</p><p>[Update]</p><p>Solved it! It was definitely IIS Express giving me trouble, went into Project properties and changed it to use VS local dev server and it works as expected now. Thanks for leading me in the right direction&nbsp; <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif?v=c9' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/VS2010-vs-VS2012-ASPNET/a2e19d98624947099fcca0d1012d4b21#a2e19d98624947099fcca0d1012d4b21</link>
		<pubDate>Wed, 19 Sep 2012 18:16:58 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/VS2010-vs-VS2012-ASPNET/a2e19d98624947099fcca0d1012d4b21#a2e19d98624947099fcca0d1012d4b21</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>6</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - VS2010 vs VS2012 ASP.NET</title>
		<description><![CDATA[<p>I have the same project, same exact code on both VS2010 and VS2012, both targeting .NET 3.5. Running in my local machine, the following works in VS2010 but returns &quot;&quot; in VS2012.</p><p>requestor = User.Identity.Name;</p><p>Same web.config as well. Both running in Debug mode in IE8. What did VS2012 do to the development server?&nbsp; <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-8.gif?v=c9' alt='Expressionless' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/VS2010-vs-VS2012-ASPNET/d4e53fdb3ea14b51971ea0d1010073a8#d4e53fdb3ea14b51971ea0d1010073a8</link>
		<pubDate>Wed, 19 Sep 2012 15:33:42 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/VS2010-vs-VS2012-ASPNET/d4e53fdb3ea14b51971ea0d1010073a8#d4e53fdb3ea14b51971ea0d1010073a8</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>6</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Large File Uploads in ASP.NET 3.5</title>
		<description><![CDATA[<p>Security is not much of an issue since this is an internal webpage where only a few people have access to it, these same people also have access to the web server anyways.&nbsp;</p><p>I'm still intrigued though, why does the file get uploaded without any code doing so after someone browses to a file and causes a postback?</p><p>[edit]</p><p>I just thought of something, is it because it needs to be loaded into memory otherwise it loses the state and the path to the file..</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Large-File-Uploads-in-ASPNET-35/f90b9483cc4d47c39e51a0cf011b8f13#f90b9483cc4d47c39e51a0cf011b8f13</link>
		<pubDate>Mon, 17 Sep 2012 17:12:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Large-File-Uploads-in-ASPNET-35/f90b9483cc4d47c39e51a0cf011b8f13#f90b9483cc4d47c39e51a0cf011b8f13</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Large File Uploads in ASP.NET 3.5</title>
		<description><![CDATA[<p>&nbsp;It seems I'll have to rely on javascript then.. All I need is to copy from one place to the other. I could also spawn a process to robocopy from the webserver..&nbsp;</p><p>Thanks blowdart, now I know FileUpload is definitely a big nono.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Large-File-Uploads-in-ASPNET-35/b1df42887e644ca8b13ba0cf010bd4a8#b1df42887e644ca8b13ba0cf010bd4a8</link>
		<pubDate>Mon, 17 Sep 2012 16:15:08 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Large-File-Uploads-in-ASPNET-35/b1df42887e644ca8b13ba0cf010bd4a8#b1df42887e644ca8b13ba0cf010bd4a8</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Large File Uploads in ASP.NET 3.5</title>
		<description><![CDATA[<p>So my journey continues. I'm now trying to work on a webpage that needs to transfers files that may be as large as 10GB from one location to the other and ASP.NET 3.5 is not letting me do so with the FileUpload control.&nbsp;</p><p>After modifying web.config as follows:</p><p><pre class="brush: text">&lt;httpRuntime executionTimeout=&quot;1000000000&quot; maxRequestLength=&quot;2097151&quot;/&gt;</pre></p><p>I can upload files over 1GB, but it still fails when it comes to files at 4GB or higher.&nbsp;</p><p>Another thing I've noticed is that going into any event handler after browsing to a large file, takes a long time, even if the handler's code has nothing to do with the upload. I'm not really sure how the FileUpload control works, but it seems as if some copying is going on before it even gets to my handler, sure hope it's not putting all of that information in memory.</p><p>Can anybody shed some light on this? thanks niners.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Large-File-Uploads-in-ASPNET-35/29e75bac4e114effac77a0cf01088de8#29e75bac4e114effac77a0cf01088de8</link>
		<pubDate>Mon, 17 Sep 2012 16:03:12 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Large-File-Uploads-in-ASPNET-35/29e75bac4e114effac77a0cf01088de8#29e75bac4e114effac77a0cf01088de8</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ASP.NET and Threading</title>
		<description><![CDATA[<p></p><blockquote><div class="quoteText"><p></p><p><a class="permalink" title="Post Permalink" href="/Forums/Coffeehouse/ASPNET-and-Threading/476a3efe9ce84867b92fa0c401500b5a">3 hours&nbsp;ago</a>, <a href="/Niners/lensman">lensman</a> wrote</p><p>Also consider that asp.net apps operate within a sand box.&nbsp; Your thread might not have rights to view the destination location.&nbsp;</p><p></p></div></blockquote><p></p><p>&nbsp;I think you may just be right about that. This is an exception I got from a File.Delete in another thread spawned:<br>&quot;The account used is a computer account. Use your global user account or local user account to access this server. &nbsp;&quot;</p><p>And blowdart comes to the rescue yet again, you're awesome, thanks.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-and-Threading/a627a3b480894d039d42a0c401884118#a627a3b480894d039d42a0c401884118</link>
		<pubDate>Thu, 06 Sep 2012 23:48:09 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-and-Threading/a627a3b480894d039d42a0c401884118#a627a3b480894d039d42a0c401884118</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - ASP.NET and Threading</title>
		<description><![CDATA[<p>&nbsp;I have yet another question for the C9 gurus. Recall that in my previous thread, I was working with an ASP.NET app and multi-threading. I came across an odd problem:</p><p>My app has to check for several paths on network shares, this is done with Directory.Exists(path). However this is always returning False when called from inside one of my spawned threads, if called from the main Thread with the same path, it returns True.</p><p>Can anyone shed some light as to why this happens?&nbsp;</p><p>Thanks&nbsp;&nbsp; <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif?v=c9' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-and-Threading/22d76d02aa2b401b8571a0c401484bbf#22d76d02aa2b401b8571a0c401484bbf</link>
		<pubDate>Thu, 06 Sep 2012 19:55:17 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/ASPNET-and-Threading/22d76d02aa2b401b8571a0c401484bbf#22d76d02aa2b401b8571a0c401484bbf</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>10</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Question on C# Threads</title>
		<description><![CDATA[<p>&nbsp;You are correct, it's not assigned unless a set of specific menu items are selected from drop down menus, however I've made sure to make those selections and I know that it's been assigned by using the debugger. The thread runs, fills the list, and then is somehow set to null.</p><p>&nbsp;I'm very new to C# Threading, so I'm learning a lot through this project. Our website was initially done in ASP.NET Framework 2.0, I've changed it to 3.5 but the server does not support anything above that, so now I'm looking through the multiple ways of accomplishing this and best practices. Currently going through &quot;C# in a Nutshell&quot; which has been great. Your suggestions are much appreciated.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Question-on-C-Threads/436dbc2a490042adae8aa0bf016fd78b#436dbc2a490042adae8aa0bf016fd78b</link>
		<pubDate>Sat, 01 Sep 2012 22:19:16 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Question-on-C-Threads/436dbc2a490042adae8aa0bf016fd78b#436dbc2a490042adae8aa0bf016fd78b</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>20</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Question on C# Threads</title>
		<description><![CDATA[<p>&nbsp;It's rather interesting, I tried to replicate the error in a console application and it worked just fine, no null reference, even though the logic is the same. Initially I thought it might have to do with scope. The code that's giving me the error is an ASP.NET webpage and the Thread logic is exactly as described in the first post.</p><p>In global scope, I have defined&nbsp; a thread and a static list (which is modified by such thread) and set thread to null and list to new List&lt;string&gt;().</p><p>I did a workaround by checking that the list has been changed, if not the it goes back to the old way of fetching after user request. Still, it intrigues me why that error is being thrown and I seem unable to replicate, it'll probably be something very simple I'm overlooking.</p><p>All the relevant code:</p><p><pre class="brush: csharp">protected void ddlRelTypeSelected(object sender, EventArgs e)
        {
            lblRelType.Visible = true;

            string strALPHA =&quot;&quot;;
           
            if (ddlPlatform.Text == &quot;IVWEX&quot;)
            {
                if (ddlType.Text == &quot;QA.Builds&quot; || ddlType.Text == &quot;QA.Releases&quot;)
                {
                    // ...
                }
                else
                {
                    // ...
                }
            }
            else if (ddlPlatform.Text == &quot;ALPHA&quot;)
            {
                if (ddlType.Text == &quot;QA.Candidates&quot;)
                {
                    // ...
                }
                else if (ddlType.Text == &quot;SCM.QA_Images&quot;)
                {
                    // ...
                }
                else    // QA.Releases
                {
                    strALPHA = ConfigurationManager.AppSettings[&quot;RelTypeAlpha&quot;].ToString();
                    string[] arrALPHA = strALPHA.Split(chsep);
                    ddlRelType.DataSource = arrALPHA;

                    // spawn osThread and gameThread
                    osThread = new Thread(() =&gt; getReleases(&quot;OS&quot;, alist));   
                    osThread.Start();
                    gamesThread = new Thread(() =&gt; getReleases(&quot;GAMES&quot;, blist));
                    gamesThread.Start();
                }
                ddlRelType.DataBind();
                ddlRelType.Visible = true;
            }     
        }

        private void getReleases(string SType, List&lt;string&gt; list)
        {
            OleDbConnection conn = openDBConnection(SCMSoftwareReleases);
            string SqlQuery = &quot; SELECT Release_Label as ReleaseLabel, Release_Type as ReleaseType &quot;
                      &#43; &quot; FROM TrackReleases &quot;
                      &#43; &quot; WHERE Platform = 'ALPHA' &quot;
                      &#43; &quot; AND Software_Type = '&quot; &#43; SType &#43; &quot;' &quot;
                      &#43; &quot; AND Release_Type &lt;&gt; 'Branch' &quot;
                      &#43; &quot; ORDER by 1 asc&quot;;
            OleDbDataAdapter da = new OleDbDataAdapter(SqlQuery, conn);
            DataSet ds = new DataSet();
            da.Fill(ds);
            DataRowCollection drc = ds.Tables[&quot;Table&quot;].Rows;    // Table is default name
            list.Clear();
            
            for (int i = 0; i &lt; drc.Count; &#43;&#43;i)
                list.Add(drc[i][0].ToString() &#43; &quot;|&quot; &#43; drc[i][1].ToString());
            if (conn != null)
                conn.Close();
        }

        private void fetchReleases(ref string[] arr, string SType)
        {
            osThread.Join();    // null reference exception
            
            // ...
        }</pre></p><p>The webpage is a bunch of dropdown menus that leads to the sql query. The threads are without a doubt being spawned before fetchReleases is called because fetchReleases can only be called from a UI element that only appears after the call to ddlRelTypeSelected event handler.</p><p>Actually stepping through the debugger shows me that threads are finished before going to fetchReleases. <br>Now I'm thinking it's due to being a web app, the stateless nature of web apps has gotten me again?!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Question-on-C-Threads/93d7f177147b4f94b0c7a0bf0154970f#93d7f177147b4f94b0c7a0bf0154970f</link>
		<pubDate>Sat, 01 Sep 2012 20:40:03 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Question-on-C-Threads/93d7f177147b4f94b0c7a0bf0154970f#93d7f177147b4f94b0c7a0bf0154970f</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>20</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Coffeehouse - Question on C# Threads</title>
		<description><![CDATA[<p>Sounds good blowdart, except I'm limited to .NET Framework 3.5 and Task does not seem to be available in my .NET references...&nbsp;</p><p>I'm currently looking into BackgroundWorker, I've been reading a bit on it and it sounds pretty good. I wasn't too worried about Threads using up too many resources because I spawn very very few of them anyways, but it doesn't hurt to recycle.&nbsp;</p><p>You guys have been of great help though.&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Coffeehouse/Question-on-C-Threads/4aabfd1a56414298b842a0be0128bfc7#4aabfd1a56414298b842a0be0128bfc7</link>
		<pubDate>Fri, 31 Aug 2012 18:00:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Coffeehouse/Question-on-C-Threads/4aabfd1a56414298b842a0be0128bfc7#4aabfd1a56414298b842a0be0128bfc7</guid>
		<dc:creator>pavone</dc:creator>
		<slash:comments>20</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/pavone/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>