<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" 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:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>bencoffman.com/blog - MSBuild</title>
    <link>http://bencoffman.com/blog/</link>
    <description>News about Tech and a few other things.</description>
    <language>en-us</language>
    <copyright>Ben Coffman</copyright>
    <lastBuildDate>Wed, 01 Dec 2010 21:01:04 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>coffmanben@gmail.com</managingEditor>
    <webMaster>coffmanben@gmail.com</webMaster>
    <item>
      <trackback:ping>http://bencoffman.com/blog/Trackback.aspx?guid=8f7dd337-4433-4dbc-951a-8c77cb5b6641</trackback:ping>
      <pingback:server>http://bencoffman.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://bencoffman.com/blog/PermaLink,guid,8f7dd337-4433-4dbc-951a-8c77cb5b6641.aspx</pingback:target>
      <dc:creator>Ben Coffman</dc:creator>
      <wfw:comment>http://bencoffman.com/blog/CommentView,guid,8f7dd337-4433-4dbc-951a-8c77cb5b6641.aspx</wfw:comment>
      <wfw:commentRss>http://bencoffman.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=8f7dd337-4433-4dbc-951a-8c77cb5b6641</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://bencoffman.com/blog/content/binary/microsoft_.net_logo.png" width="120px" border="0" height="75px" />
        <br />
        <b>
          <br />
          <br />
Problem:</b>
        <br />
Error 43 An error occurred loading a configuration file: Failed to start monitoring
changes to '[my path]' because the network BIOS command limit has been reached. For
more information on this error, please refer to Microsoft knowledge base article 810886.
Hosting on a UNC share is not supported for the Windows XP Platform. [my path]\web.config<br /><br /><b>Solution:<br /></b><b>REMEMBER YOU ONLY NEED TO MAKE THESE CHANGES ON YOUR MACHINE NOT THE MACHINE
YOU ARE TYRING TO ACCESS</b><ol><li>
Add the following DWORD value at the following registry key:<br />
HKEY_LOCAL_MACHINE\Software\Microsoft\ASP.NET\FCNMode 
<br />
The following list possible values for the FCNMode DWORD value and the behavior that
is associated with each value.</li><li>
0 or greater than 2 - This is the default behavior. For each subdirectory, the application
will create an object that will monitor the subdirectory.<br />
1 - The application will disable File Change Notifications (FCNs).<br />
2 - The application will create one object to monitor the main directory. The application
will use this object to monitor each subdirectory. 
<br />
I recommend setting the value to 1, to disable the FCN. This is what is causing the
error when you try to use the debugger. 
</li></ol><b> DON'T FORGET:</b><i>If you are running a 64bit version of windows you will need
to go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET</i><br /><br /><b>Explanation:</b><br />
When building over a network I believe MSBuild creates a thread of some sort for each
file it's compiling. This tells it to create only one for the entire project/solution.
For some reason this fixes it. Ugg these last few posts have been some tuff ones.<br /><br />
This blog (<a href="http://tonybellomo.com/FullBlog.aspx?BlogID=10176">http://tonybellomo.com/FullBlog.aspx?BlogID=10176</a>)
helped lead me to my answer, though the 64 bit part through me for a spin.<br /><img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=8f7dd337-4433-4dbc-951a-8c77cb5b6641" /></body>
      <title>Error 43 An error occurred loading a configuration file: Failed to start monitoring changes to...</title>
      <guid isPermaLink="false">http://bencoffman.com/blog/PermaLink,guid,8f7dd337-4433-4dbc-951a-8c77cb5b6641.aspx</guid>
      <link>http://bencoffman.com/blog/2010/12/01/Error43AnErrorOccurredLoadingAConfigurationFileFailedToStartMonitoringChangesTo.aspx</link>
      <pubDate>Wed, 01 Dec 2010 21:01:04 GMT</pubDate>
      <description>&lt;img src="http://bencoffman.com/blog/content/binary/microsoft_.net_logo.png" width="120px" border="0" height="75px"&gt;
&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
&lt;br&gt;
Problem:&lt;/b&gt;
&lt;br&gt;
Error 43 An error occurred loading a configuration file: Failed to start monitoring
changes to '[my path]' because the network BIOS command limit has been reached. For
more information on this error, please refer to Microsoft knowledge base article 810886.
Hosting on a UNC share is not supported for the Windows XP Platform. [my path]\web.config&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Solution:&lt;br&gt;
&lt;/b&gt; &lt;b&gt;REMEMBER YOU ONLY NEED TO MAKE THESE CHANGES ON YOUR MACHINE NOT THE MACHINE
YOU ARE TYRING TO ACCESS&lt;/b&gt; 
&lt;ol&gt;
&lt;li&gt;
Add the following DWORD value at the following registry key:&lt;br&gt;
HKEY_LOCAL_MACHINE\Software\Microsoft\ASP.NET\FCNMode 
&lt;br&gt;
The following list possible values for the FCNMode DWORD value and the behavior that
is associated with each value.&lt;/li&gt;
&lt;li&gt;
0 or greater than 2 - This is the default behavior. For each subdirectory, the application
will create an object that will monitor the subdirectory.&lt;br&gt;
1 - The application will disable File Change Notifications (FCNs).&lt;br&gt;
2 - The application will create one object to monitor the main directory. The application
will use this object to monitor each subdirectory. 
&lt;br&gt;
I recommend setting the value to 1, to disable the FCN. This is what is causing the
error when you try to use the debugger. 
&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt; DON'T FORGET:&lt;/b&gt; &lt;i&gt;If you are running a 64bit version of windows you will need
to go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET&lt;/i&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Explanation:&lt;/b&gt;
&lt;br&gt;
When building over a network I believe MSBuild creates a thread of some sort for each
file it's compiling. This tells it to create only one for the entire project/solution.
For some reason this fixes it. Ugg these last few posts have been some tuff ones.&lt;br&gt;
&lt;br&gt;
This blog (&lt;a href="http://tonybellomo.com/FullBlog.aspx?BlogID=10176"&gt;http://tonybellomo.com/FullBlog.aspx?BlogID=10176&lt;/a&gt;)
helped lead me to my answer, though the 64 bit part through me for a spin.&lt;br&gt;
&lt;img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=8f7dd337-4433-4dbc-951a-8c77cb5b6641" /&gt;</description>
      <comments>http://bencoffman.com/blog/CommentView,guid,8f7dd337-4433-4dbc-951a-8c77cb5b6641.aspx</comments>
      <category>.Net</category>
      <category>ccnet</category>
      <category>MSBuild</category>
    </item>
    <item>
      <trackback:ping>http://bencoffman.com/blog/Trackback.aspx?guid=05cebcbd-687a-4d7f-af7a-df328e4beb03</trackback:ping>
      <pingback:server>http://bencoffman.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://bencoffman.com/blog/PermaLink,guid,05cebcbd-687a-4d7f-af7a-df328e4beb03.aspx</pingback:target>
      <dc:creator>Ben Coffman</dc:creator>
      <wfw:comment>http://bencoffman.com/blog/CommentView,guid,05cebcbd-687a-4d7f-af7a-df328e4beb03.aspx</wfw:comment>
      <wfw:commentRss>http://bencoffman.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=05cebcbd-687a-4d7f-af7a-df328e4beb03</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://bencoffman.com/blog/content/binary/microsoft_.net_logo.png" width="120px" border="0" height="75px" />
        <br />
        <br />
        <br />
        <b>Problem:<br /></b>Done executing task "AspNetCompiler" -- FAILED.<br />
Done executing task "CallTarget" -- FAILED.<br />
(default target) (1) -&gt; (Website target) -&gt; ASPNETCOMPILER : error ASPRUNTIME:
Request failed.<br /><br /><b>Solution:<br /></b><p>
What was going on and not being said was the computer I was on didn't trust the assemblies
I was using on another computer....We all could have got that from the error right?
Anyways, there is a fun little tool called, <a href="http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&amp;displaylang=en">.NET
Framework 2.0 Software Development Kit</a>. Once this kit was installed and downloaded
I ran an application called, .NET Framework 2.0 Configuration. In this tool I selected
</p><ul><li>
Runtime Security Policy &lt;-- Once selected in the right pane I selected<ul><li>
"Adjust Zone Security"<ul><li>
Once this is selected I choose</li><li>
"Make changes to this computer." Click Next<ul><li>
On the next screen click "Local Intranet" and move the trust arrow up to "Full Trust"
I did it for Trusted Sites also.</li></ul></li></ul></li></ul></li></ul><b>Explanation:<br /></b>Remember .Net doesn't let you run assemblies from any which location. Why would
they<font size="4"><span class="Unicode"><b>‽</b></span></font> That could be a nightmare
of security issues, so developers when working on assemblies across the network and
things go south always think perms, down to an assembly level.<br /><br /><br /><br /><p></p><img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=05cebcbd-687a-4d7f-af7a-df328e4beb03" /></body>
      <title>ASPNETCOMPILER : error ASPRUNTIME: Request failed.</title>
      <guid isPermaLink="false">http://bencoffman.com/blog/PermaLink,guid,05cebcbd-687a-4d7f-af7a-df328e4beb03.aspx</guid>
      <link>http://bencoffman.com/blog/2010/12/01/ASPNETCOMPILERErrorASPRUNTIMERequestFailed.aspx</link>
      <pubDate>Wed, 01 Dec 2010 19:27:29 GMT</pubDate>
      <description>&lt;img src="http://bencoffman.com/blog/content/binary/microsoft_.net_logo.png" width="120px" border="0" height="75px"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Problem:&lt;br&gt;
&lt;/b&gt;Done executing task "AspNetCompiler" -- FAILED.&lt;br&gt;
Done executing task "CallTarget" -- FAILED.&lt;br&gt;
(default target) (1) -&amp;gt; (Website target) -&amp;gt; ASPNETCOMPILER : error ASPRUNTIME:
Request failed.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Solution:&lt;br&gt;
&lt;/b&gt;
&lt;p&gt;
What was going on and not being said was the computer I was on didn't trust the assemblies
I was using on another computer....We all could have got that from the error right?
Anyways, there is a fun little tool called, &lt;a href="http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&amp;amp;displaylang=en"&gt;.NET
Framework 2.0 Software Development Kit&lt;/a&gt;. Once this kit was installed and downloaded
I ran an application called, .NET Framework 2.0 Configuration. In this tool I selected
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Runtime Security Policy &amp;lt;-- Once selected in the right pane I selected&lt;ul&gt;
&lt;li&gt;
"Adjust Zone Security"&lt;ul&gt;
&lt;li&gt;
Once this is selected I choose&lt;/li&gt;
&lt;li&gt;
"Make changes to this computer." Click Next&lt;ul&gt;
&lt;li&gt;
On the next screen click "Local Intranet" and move the trust arrow up to "Full Trust"
I did it for Trusted Sites also.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Explanation:&lt;br&gt;
&lt;/b&gt;Remember .Net doesn't let you run assemblies from any which location. Why would
they&lt;font size="4"&gt;&lt;span class="Unicode"&gt;&lt;b&gt;‽&lt;/b&gt;&lt;/span&gt;&lt;/font&gt; That could be a nightmare
of security issues, so developers when working on assemblies across the network and
things go south always think perms, down to an assembly level.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=05cebcbd-687a-4d7f-af7a-df328e4beb03" /&gt;</description>
      <comments>http://bencoffman.com/blog/CommentView,guid,05cebcbd-687a-4d7f-af7a-df328e4beb03.aspx</comments>
      <category>.Net</category>
      <category>ccnet</category>
      <category>MSBuild</category>
      <category>Visual Studio</category>
    </item>
  </channel>
</rss>