<?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>ControlSystemWorks Blog - setup</title>
    <link>http://www.controlsystemworks.com/blog/</link>
    <description>Of CSWorks and software development</description>
    <language>en-us</language>
    <copyright>ControlSystemWorks.com</copyright>
    <lastBuildDate>Thu, 02 Sep 2010 20:08:52 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>support@ControlSystemWorks.net</managingEditor>
    <webMaster>support@ControlSystemWorks.net</webMaster>
    <item>
      <trackback:ping>http://www.controlsystemworks.com/blog/Trackback.aspx?guid=e65f3561-1c32-4f28-9bfb-af42a9fcc594</trackback:ping>
      <pingback:server>http://www.controlsystemworks.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.controlsystemworks.com/blog/PermaLink,guid,e65f3561-1c32-4f28-9bfb-af42a9fcc594.aspx</pingback:target>
      <dc:creator>Sergey Sorokin</dc:creator>
      <wfw:comment>http://www.controlsystemworks.com/blog/CommentView,guid,e65f3561-1c32-4f28-9bfb-af42a9fcc594.aspx</wfw:comment>
      <wfw:commentRss>http://www.controlsystemworks.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e65f3561-1c32-4f28-9bfb-af42a9fcc594</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Some people who are willing to try CSWorks
have no possibility or desire to install IIS (Internet Information Services). Starting
today, to make their lives a bit easier, we offer a special distribution of CSWorks
called "CSWorks Light" that <b>does not require IIS</b>. A couple of highlights:<br /><ul><li>
this distribution uses <a href="http://www.controlsystemworks.com/articles/UsingCassiniWebServer.html">Microsoft
Cassini</a> web server - a very simple and limited-functionality, lightweight alternative
to IIS;</li><li>
this distribution misses some samples that work with IIS-hosted CSWorks;</li><li>
this distribution <b>should not be used in production environment</b>, it is for demo
purposes only.</li></ul>
Cassini-based deployment has the following limitations:<br /><ul><li>
it can host only one ASP.NET application per port;</li><li>
it does not support HTTPS;</li><li>
it does not support authentication;</li><li>
it responds only to localhost requests.</li></ul>
Cassini was designed as a simple tool for debugging .NET applications and it is not
officially supported by Microsoft (read full story <a href="http://www.controlsystemworks.com/articles/UsingCassiniWebServer.html">here</a>),
so please do not expect stellar performance and production-grade reliability from
CSWorks Light.<br /><br />
The link to CSWorks Light download will be provided in the email you will receive
after submitting our <a href="http://www.controlsystemworks.com/DownloadDescription.aspx">download
form</a>.<br /><br /><br /><br /><br /><p></p><img width="0" height="0" src="http://www.controlsystemworks.com/blog/aggbug.ashx?id=e65f3561-1c32-4f28-9bfb-af42a9fcc594" /></body>
      <title>CSWorks Light - no IIS required</title>
      <guid isPermaLink="false">http://www.controlsystemworks.com/blog/PermaLink,guid,e65f3561-1c32-4f28-9bfb-af42a9fcc594.aspx</guid>
      <link>http://www.controlsystemworks.com/blog/2010/09/02/CSWorksLightNoIISRequired.aspx</link>
      <pubDate>Thu, 02 Sep 2010 20:08:52 GMT</pubDate>
      <description>Some people who are willing to try CSWorks have no possibility or desire to install IIS (Internet Information Services). Starting today, to make their lives a bit easier, we offer a special distribution of CSWorks called "CSWorks Light" that &lt;b&gt;does
not require IIS&lt;/b&gt;. A couple of highlights:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
this distribution uses &lt;a href="http://www.controlsystemworks.com/articles/UsingCassiniWebServer.html"&gt;Microsoft
Cassini&lt;/a&gt; web server - a very simple and limited-functionality, lightweight alternative
to IIS;&lt;/li&gt;
&lt;li&gt;
this distribution misses some samples that work with IIS-hosted CSWorks;&lt;/li&gt;
&lt;li&gt;
this distribution &lt;b&gt;should not be used in production environment&lt;/b&gt;, it is for demo
purposes only.&lt;/li&gt;
&lt;/ul&gt;
Cassini-based deployment has the following limitations:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
it can host only one ASP.NET application per port;&lt;/li&gt;
&lt;li&gt;
it does not support HTTPS;&lt;/li&gt;
&lt;li&gt;
it does not support authentication;&lt;/li&gt;
&lt;li&gt;
it responds only to localhost requests.&lt;/li&gt;
&lt;/ul&gt;
Cassini was designed as a simple tool for debugging .NET applications and it is not
officially supported by Microsoft (read full story &lt;a href="http://www.controlsystemworks.com/articles/UsingCassiniWebServer.html"&gt;here&lt;/a&gt;),
so please do not expect stellar performance and production-grade reliability from
CSWorks Light.&lt;br&gt;
&lt;br&gt;
The link to CSWorks Light download will be provided in the email you will receive
after submitting our &lt;a href="http://www.controlsystemworks.com/DownloadDescription.aspx"&gt;download
form&lt;/a&gt;.&lt;br&gt;
&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://www.controlsystemworks.com/blog/aggbug.ashx?id=e65f3561-1c32-4f28-9bfb-af42a9fcc594" /&gt;</description>
      <comments>http://www.controlsystemworks.com/blog/CommentView,guid,e65f3561-1c32-4f28-9bfb-af42a9fcc594.aspx</comments>
      <category>demo</category>
      <category>news</category>
      <category>setup</category>
    </item>
    <item>
      <trackback:ping>http://www.controlsystemworks.com/blog/Trackback.aspx?guid=721db983-c590-4f21-9e8b-7d7455398537</trackback:ping>
      <pingback:server>http://www.controlsystemworks.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.controlsystemworks.com/blog/PermaLink,guid,721db983-c590-4f21-9e8b-7d7455398537.aspx</pingback:target>
      <dc:creator>Sergey Sorokin</dc:creator>
      <wfw:comment>http://www.controlsystemworks.com/blog/CommentView,guid,721db983-c590-4f21-9e8b-7d7455398537.aspx</wfw:comment>
      <wfw:commentRss>http://www.controlsystemworks.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=721db983-c590-4f21-9e8b-7d7455398537</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <b>The remote server returned an error:
NotFound.</b>
        <br />
        <br />
In some rare cases, after installing CSWorks and running Pipes and Tanks Demo, you
can see the following error:<br /><br /><img src="content/binary/2010-07-21-LiveDataWebServiceIsNotAvailable.png" /><br /><br />
This means one simple thing: ASP.NET cannot run LiveData Web Service code. There can
be different reasons for this. The first thing you should do in this case is to get
as much additional error information as possible. Check application event log - it
may give you some clues. Also, try to get LiveData Web Service definition from your
browser at http://localhost/CSWorksDemo/LiveDataWebService/Service.asmx.<br /><br />
The browser will probably give you some more details about the error. Consider the
following example.<br />
 <br /><img src="content/binary/2010-07-21-AccessDenied.png" /><br /><br />
The problem in this particular case is that ASP.NET cannot write temporary binary
it compiles for a specific page or web service. There can be several root causes for
that, for example: error in the ASP.NET installation, changing ASP.NET  worker
process account without modifying temp folder privileges etc. There is a lot of information
about this issue in the net, here are some good sources:<br /><br />
http://forums.asp.net/p/1060279/1520411.aspx<br />
http://weblogs.asp.net/rchartier/archive/2006/01/05/434626.aspx<br /><br />
The idea is to give the account ASP.NET runs under, say NETWORK SERVICE, or LocalSystem,
or "ASP.NET v4.0 Classic" account (depends on which account you are using, see your
IIS Manager settings, Application Pools, "ASP.NET v4.0 Classic" pool properties) full
access to all temporary folder it may use while compiling ASP.NET page or service.
Those folders include:<br /><br />
c:\WINDOWS\Microsoft.NET\...\Temporary ASP.NET Files<br />
c:\windows\temp<br /><br />
One would assume that ASP.NET setup (or aspnet_regiis command executed manually) should
do that, but it looks like there is no 100% guarantee. Fixing folder access manually
seems to be the best option. Unfortunately, there is nothing CSWorks installer can
do here - it's ASP.NET setup problem.<br /><br /><b>[HttpWebRequest_WebException_RemoteServer]</b><br /><br />
Another kind of error is common:<br /><br /><img src="content/binary/2010-07-21-WebExceptionRemoteServer.png" /><br /><br />
This is usually caused by CSWorksDemo virtual directory ASP.NET version mismatch:
CSWorks binaries require version 4.0, but the virtual directory uses another version.
If you are using XP or 2003, right-click CSWorksDemo in IIS management console, select
"Properties" and select ASP.NET 4.0 in the "ASP.NET" tab. If you are using 2008 or
Windows 7, make sure you have selected "ASP.NET v4.0 Classic" application pool in
CSWorksDemo virtual directory basic settings.<br /><br />
Another possible reason for this problem is: ASP.NET 4.0 web service extension (Windows
2003) or ASP.NET 4.0 ISAPI extension (2008,Vista, W7) is disabled. Please follow the
instructions at <a href="http://www.controlsystemworks.com/iis.html">http://www.controlsystemworks.com/iis.html</a> and
enable correspondent extension manually.<br /><br /><p></p><img width="0" height="0" src="http://www.controlsystemworks.com/blog/aggbug.ashx?id=721db983-c590-4f21-9e8b-7d7455398537" /></body>
      <title>Error: LiveData Web Service is not available</title>
      <guid isPermaLink="false">http://www.controlsystemworks.com/blog/PermaLink,guid,721db983-c590-4f21-9e8b-7d7455398537.aspx</guid>
      <link>http://www.controlsystemworks.com/blog/2010/07/22/ErrorLiveDataWebServiceIsNotAvailable.aspx</link>
      <pubDate>Thu, 22 Jul 2010 04:41:09 GMT</pubDate>
      <description>&lt;b&gt;The remote server returned an error: NotFound.&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;
In some rare cases, after installing CSWorks and running Pipes and Tanks Demo, you
can see the following error:&lt;br&gt;
&lt;br&gt;
&lt;img src="content/binary/2010-07-21-LiveDataWebServiceIsNotAvailable.png"&gt;
&lt;br&gt;
&lt;br&gt;
This means one simple thing: ASP.NET cannot run LiveData Web Service code. There can
be different reasons for this. The first thing you should do in this case is to get
as much additional error information as possible. Check application event log - it
may give you some clues. Also, try to get LiveData Web Service definition from your
browser at http://localhost/CSWorksDemo/LiveDataWebService/Service.asmx.&lt;br&gt;
&lt;br&gt;
The browser will probably give you some more details about the error. Consider the
following example.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&lt;img src="content/binary/2010-07-21-AccessDenied.png"&gt;
&lt;br&gt;
&lt;br&gt;
The problem in this particular case is that ASP.NET cannot write temporary binary
it compiles for a specific page or web service. There can be several root causes for
that, for example: error in the ASP.NET installation, changing ASP.NET&amp;nbsp; worker
process account without modifying temp folder privileges etc. There is a lot of information
about this issue in the net, here are some good sources:&lt;br&gt;
&lt;br&gt;
http://forums.asp.net/p/1060279/1520411.aspx&lt;br&gt;
http://weblogs.asp.net/rchartier/archive/2006/01/05/434626.aspx&lt;br&gt;
&lt;br&gt;
The idea is to give the account ASP.NET runs under, say NETWORK SERVICE, or LocalSystem,
or "ASP.NET v4.0 Classic" account (depends on which account you are using, see your
IIS Manager settings, Application Pools, "ASP.NET v4.0 Classic" pool properties) full
access to all temporary folder it may use while compiling ASP.NET page or service.
Those folders include:&lt;br&gt;
&lt;br&gt;
c:\WINDOWS\Microsoft.NET\...\Temporary ASP.NET Files&lt;br&gt;
c:\windows\temp&lt;br&gt;
&lt;br&gt;
One would assume that ASP.NET setup (or aspnet_regiis command executed manually) should
do that, but it looks like there is no 100% guarantee. Fixing folder access manually
seems to be the best option. Unfortunately, there is nothing CSWorks installer can
do here - it's ASP.NET setup problem.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;[HttpWebRequest_WebException_RemoteServer]&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;
Another kind of error is common:&lt;br&gt;
&lt;br&gt;
&lt;img src="content/binary/2010-07-21-WebExceptionRemoteServer.png"&gt;
&lt;br&gt;
&lt;br&gt;
This is usually caused by CSWorksDemo virtual directory ASP.NET version mismatch:
CSWorks binaries require version 4.0, but the virtual directory uses another version.
If you are using XP or 2003, right-click CSWorksDemo in IIS management console, select
"Properties" and select ASP.NET 4.0 in the "ASP.NET" tab. If you are using 2008 or
Windows 7, make sure you have selected "ASP.NET v4.0 Classic" application pool in
CSWorksDemo virtual directory basic settings.&lt;br&gt;
&lt;br&gt;
Another possible reason for this problem is: ASP.NET 4.0 web service extension (Windows
2003) or ASP.NET 4.0 ISAPI extension (2008,Vista, W7) is disabled. Please follow the
instructions at &lt;a href="http://www.controlsystemworks.com/iis.html"&gt;http://www.controlsystemworks.com/iis.html&lt;/a&gt; and
enable correspondent extension manually.&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.controlsystemworks.com/blog/aggbug.ashx?id=721db983-c590-4f21-9e8b-7d7455398537" /&gt;</description>
      <comments>http://www.controlsystemworks.com/blog/CommentView,guid,721db983-c590-4f21-9e8b-7d7455398537.aspx</comments>
      <category>setup</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <trackback:ping>http://www.controlsystemworks.com/blog/Trackback.aspx?guid=b66efb71-62a2-4dbc-999f-7709e1932e7b</trackback:ping>
      <pingback:server>http://www.controlsystemworks.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.controlsystemworks.com/blog/PermaLink,guid,b66efb71-62a2-4dbc-999f-7709e1932e7b.aspx</pingback:target>
      <dc:creator>Sergey Sorokin</dc:creator>
      <wfw:comment>http://www.controlsystemworks.com/blog/CommentView,guid,b66efb71-62a2-4dbc-999f-7709e1932e7b.aspx</wfw:comment>
      <wfw:commentRss>http://www.controlsystemworks.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=b66efb71-62a2-4dbc-999f-7709e1932e7b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <b>Symptoms</b>
          <br />
        </p>
        <p>
A few customers were getting the following message when running CSWorks installation:
</p>
        <p>
          <i>Failed while processing WebVirtualDirs. (-2147024894</i> ) (<a target="_blank" href="content/binary/2010-03-09-SetupError80070002.png">see
screenshot</a>)
</p>
        <p>
Setup log file contains the following entry:
</p>
        <p>
          <i>ConfigureIIsExec:  Error 0x80070002: Failed to find Web base</i>
          <br />
        </p>
        <p>
          <b>Why does this happen?</b>
        </p>
        <p>
CSWorks installer installs demo application to IIS (Internet Information Services)
website with following properties:
</p>
        <ul>
          <li>
IP address: all unassigned;</li>
          <li>
Port: 80;</li>
          <li>
Header: &lt;empty&gt;</li>
        </ul>
        <p>
These are the default settings for “Default Web Site” created by IIS installer, and
they usually remain unchanged unless system administrator edits them manually. CSWorks
installer assumes there is a web site with those properties running on this machine,
otherwise it throws the error above.
</p>
        <p>
A similar issue is discussed with WiX installer developers at <a href="http://n2.nabble.com/writemetabasechanges-error-0x80070057-failed-to-create-web-application-td3190173.html">http://n2.nabble.com/WriteMetabaseChanges-Error-0x80070057-failed-to-create-web-application-td3190173.html</a>,
here is an excerpt:&gt;
</p>
        <p>
          <i>“Make sure the IP, Port and Header all exactly match the website on the machine.
These are the 3 things we use to determine if we've found the right website or not.”</i>
        </p>
        <p>
Is it possible to improve CSWorks installer so it can handle more complex scenarios?
We probably can do that, but:
</p>
        <ul>
          <li>
it will increase installer complexity and decrease its reliability;</li>
          <li>
installer will have to make some changes in demo applications’ settings on-the-fly
which is a risky thing.</li>
        </ul>
        <p>
We may consider adding support for those complex scenarios, but this is not a top
priority at the moment. We are sorry about the inconvenience caused and we appreciate
your understanding in this regard.
</p>
        <p>
          <b>Workaround</b>
        </p>
        <p>
Before installing CSWorks, make sure that “Default Web Site” is configured to run
on port 80 for all unassigned IP addresses, and host header name for this configuration
is empty, as <a target="_blank" href="content/binary/2010-03-09-setuperror80070002fix.png">shown
at this screenshot (Windows XP)</a>. When done, run CSWorks installer and make sure
CSWorks demo applications work properly. All demo applications are configured to run
from http://localhost/CSWorksDemo, and they won’t run if you change port or header
for the web site that hosts CSWorksDemo virtual folder. 
</p>
        <img width="0" height="0" src="http://www.controlsystemworks.com/blog/aggbug.ashx?id=b66efb71-62a2-4dbc-999f-7709e1932e7b" />
      </body>
      <title>Setup error: Failed while processing WebVirtualDirs. (-2147024894      )</title>
      <guid isPermaLink="false">http://www.controlsystemworks.com/blog/PermaLink,guid,b66efb71-62a2-4dbc-999f-7709e1932e7b.aspx</guid>
      <link>http://www.controlsystemworks.com/blog/2010/03/10/SetupErrorFailedWhileProcessingWebVirtualDirs2147024894.aspx</link>
      <pubDate>Wed, 10 Mar 2010 06:02:44 GMT</pubDate>
      <description>&lt;p&gt;
&lt;b&gt;Symptoms&lt;/b&gt; 
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
A few customers were getting the following message when running CSWorks installation:
&lt;/p&gt;
&lt;p&gt;
&lt;i&gt;Failed while processing WebVirtualDirs. (-2147024894&lt;/i&gt; ) (&lt;a target="_blank" href="content/binary/2010-03-09-SetupError80070002.png"&gt;see
screenshot&lt;/a&gt;)
&lt;/p&gt;
&lt;p&gt;
Setup log file contains the following entry:
&lt;/p&gt;
&lt;p&gt;
&lt;i&gt;ConfigureIIsExec:&amp;nbsp; Error 0x80070002: Failed to find Web base&lt;/i&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;Why does this happen?&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
CSWorks installer installs demo application to IIS (Internet Information Services)
website with following properties:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
IP address: all unassigned;&lt;/li&gt;
&lt;li&gt;
Port: 80;&lt;/li&gt;
&lt;li&gt;
Header: &amp;lt;empty&amp;gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
These are the default settings for “Default Web Site” created by IIS installer, and
they usually remain unchanged unless system administrator edits them manually. CSWorks
installer assumes there is a web site with those properties running on this machine,
otherwise it throws the error above.
&lt;/p&gt;
&lt;p&gt;
A similar issue is discussed with WiX installer developers at &lt;a href="http://n2.nabble.com/writemetabasechanges-error-0x80070057-failed-to-create-web-application-td3190173.html"&gt;http://n2.nabble.com/WriteMetabaseChanges-Error-0x80070057-failed-to-create-web-application-td3190173.html&lt;/a&gt;,
here is an excerpt:&amp;gt;
&lt;/p&gt;
&lt;p&gt;
&lt;i&gt;“Make sure the IP, Port and Header all exactly match the website on the machine.
These are the 3 things we use to determine if we've found the right website or not.”&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;
Is it possible to improve CSWorks installer so it can handle more complex scenarios?
We probably can do that, but:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
it will increase installer complexity and decrease its reliability;&lt;/li&gt;
&lt;li&gt;
installer will have to make some changes in demo applications’ settings on-the-fly
which is a risky thing.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
We may consider adding support for those complex scenarios, but this is not a top
priority at the moment. We are sorry about the inconvenience caused and we appreciate
your understanding in this regard.
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;Workaround&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
Before installing CSWorks, make sure that “Default Web Site” is configured to run
on port 80 for all unassigned IP addresses, and host header name for this configuration
is empty, as &lt;a target="_blank" href="content/binary/2010-03-09-setuperror80070002fix.png"&gt;shown
at this screenshot (Windows XP)&lt;/a&gt;. When done, run CSWorks installer and make sure
CSWorks demo applications work properly. All demo applications are configured to run
from http://localhost/CSWorksDemo, and they won’t run if you change port or header
for the web site that hosts CSWorksDemo virtual folder. 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.controlsystemworks.com/blog/aggbug.ashx?id=b66efb71-62a2-4dbc-999f-7709e1932e7b" /&gt;</description>
      <comments>http://www.controlsystemworks.com/blog/CommentView,guid,b66efb71-62a2-4dbc-999f-7709e1932e7b.aspx</comments>
      <category>setup</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <trackback:ping>http://www.controlsystemworks.com/blog/Trackback.aspx?guid=9a0dfb03-d47c-4da7-84bc-7ed43793e10e</trackback:ping>
      <pingback:server>http://www.controlsystemworks.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.controlsystemworks.com/blog/PermaLink,guid,9a0dfb03-d47c-4da7-84bc-7ed43793e10e.aspx</pingback:target>
      <dc:creator>Sergey Sorokin</dc:creator>
      <wfw:comment>http://www.controlsystemworks.com/blog/CommentView,guid,9a0dfb03-d47c-4da7-84bc-7ed43793e10e.aspx</wfw:comment>
      <wfw:commentRss>http://www.controlsystemworks.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9a0dfb03-d47c-4da7-84bc-7ed43793e10e</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Users who are new to .NET web development keep asking asking questions about CSWorks
installation errors related to IIS and ASP.NET, here are some of them: 
</p>
        <p>
          <i> Cannot connect to Internet Information Server. (-2147221164) 
<br /><br />
IIS (Internet Information Services) version 5 or higher must be installed 
<br /><br />
IIS (Internet Information Services) version 7 or higher and IIS 6 Management Compatibility
(appcmd.exe) must be installed 
<br /></i>
        </p>
        <p>
Also, you may experience ASP.NET-related problems even after CSWorks installation:
Pipes and Tanks Demo is not running and shows <a href="http://www.controlsystemworks.com/blog/2010/07/22/ErrorLiveDataWebServiceIsNotAvailable.aspx">The
remote server returned an error: NotFound</a>. 
</p>
        <p>
All these messages signal about the same thing: IIS/ASP.NET is not working properly
on this machine. Please follow the steps below to install IIS/ASP.NET on your machine 
</p>
        <p>
          <strong>Windows 7, Windows Server 2008, Vista</strong>
        </p>
        <p>
I will describe the process for Windows Server 2008. Windows 7 interface is very similar,
Vista interface is slightly different, but names and descriptions are pretty much
the same. 
</p>
        <p>
In "Programs and Features", click on "Turn Windows features on or off". <a target="_blank" href="content/binary/2010-02-22-01-TurnWirndowsFeaturesOnOrOff.png">See
screenshot</a>. 
</p>
        <p>
Add Web Server Role if needed, and click on it to configure. <a target="_blank" href="content/binary/2010-02-22-02-WebServerRole.png">See
screenshot</a>. 
</p>
        <p>
Select all Web Server role service required for ASP.NET application hosting as on
the screenshot below. Please pay special attention to the "Application Development"
and "Management Tools" sections. <a target="_blank" href="content/binary/2010-02-22-03-RoleServices.png">See
W2K8 screenshot</a> , or <a target="_blank" href="content/binary/2010-02-22-09-Windows7Features.png">Windows
7 screenshot</a>. 
<br /></p>
        <p>
You may need to enable ASP.NET ISAPI extension manually. Find "ISAPI and CGI Restrictions"
under IIS properties (<a href="content/binary/2010-02-22-09-IsapiAndCgiRestrictions-1.gif">see
screenshot</a>), and enable ASP.NET extensions (<a href="content/binary/2010-02-22-10-IsapiAndCgiRestrictions-2.gif">see
screenshot</a>).<br /></p>
        <p>
          <strong>Windows XP</strong>
        </p>
        <p>
Go to Settings -&gt; Control Panel -&gt;Add or Remove Programs -&gt; Add/Remove Windows
Components. Select "Internet Information Services", and select required components
- <a target="_blank" href="content/binary/2010-02-22-04-XPInstallIIS.png">see screenshot</a>. 
</p>
        <p>
Navigate to your Microsoft .NET windows directory which is usually C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
and run aspnet_regiis -i and aspnet_regiis -c. 
</p>
        <p>
Go to My Computer -&gt; Manage -&gt; Services and Applications -&gt; Internet Information
Services, Select "Default Web Site", right-click on it and modify ASP.NET tab of site
properties so it uses ASP.NET 4.0. <a target="_blank" href="content/binary/2010-02-22-05-XPDefaultWebSiteProperties.png">See
screenshot</a>.
</p>
        <p>
          <strong>Windows Server 2003</strong>
        </p>
        <p>
Go to Settings -&gt; Control Panel -&gt;Add or Remove Programs -&gt; Add/Remove Windows
Components. Select "Internet Information Services", and select required components
- <a target="_blank" href="content/binary/2010-02-22-06-W2K3IISInstall.gif">see screenshot</a>. 
</p>
        <p>
Navigate to your Microsoft .NET windows directory which is usually C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
and run aspnet_regiis -i and aspnet_regiis -c. 
</p>
        <p>
Go to My Computer -&gt; Manage -&gt; Services and Applications -&gt; Internet Information
Services, Select "Default Web Site", right-click on it and modify ASP.NET tab of site
properties so it uses ASP.NET 4.0. <a target="_blank" href="content/binary/2010-02-22-07-W2K3DefaultWebSiteProperties.png">See
screenshot</a>. 
<br /></p>
        <strong>
        </strong>
        <p>
Select "Web Service Extensions" node of local IIS server and enable ASP.NET v4.0
extension.<a target="_blank" href="content/binary/2010-02-22-08-W2K3Ext.png">See screenshot</a>. 
<br /></p>
        <p>
          <br />
        </p>
        <p>
          <b>Update</b> (August 2010):
</p>
        <p>
On XP or 2003, use DefaultAppPool for all CSWorks virtual directories. On Vista, 2008
and Windows 7 platforms, use "ASP.NET v4.0 Classic" for CSWorksDemo virtual directory,
and "ASP.NET v4.0" for CSWorksM2MDemo virtual directory.<br /></p>
        <img width="0" height="0" src="http://www.controlsystemworks.com/blog/aggbug.ashx?id=9a0dfb03-d47c-4da7-84bc-7ed43793e10e" />
      </body>
      <title>Installing IIS and ASP.NET</title>
      <guid isPermaLink="false">http://www.controlsystemworks.com/blog/PermaLink,guid,9a0dfb03-d47c-4da7-84bc-7ed43793e10e.aspx</guid>
      <link>http://www.controlsystemworks.com/blog/2010/02/22/InstallingIISAndASPNET.aspx</link>
      <pubDate>Mon, 22 Feb 2010 17:33:43 GMT</pubDate>
      <description>&lt;p&gt;
Users who are new to .NET web development keep asking asking questions about CSWorks
installation errors related to IIS and ASP.NET, here are some of them: 
&lt;/p&gt;
&lt;p&gt;
&lt;i&gt; Cannot connect to Internet Information Server. (-2147221164) 
&lt;br&gt;
&lt;br&gt;
IIS (Internet Information Services) version 5 or higher must be installed 
&lt;br&gt;
&lt;br&gt;
IIS (Internet Information Services) version 7 or higher and IIS 6 Management Compatibility
(appcmd.exe) must be installed 
&lt;br&gt;
&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;
Also, you may experience ASP.NET-related problems even after CSWorks installation:
Pipes and Tanks Demo is not running and shows &lt;a href="http://www.controlsystemworks.com/blog/2010/07/22/ErrorLiveDataWebServiceIsNotAvailable.aspx"&gt;The
remote server returned an error: NotFound&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
All these messages signal about the same thing: IIS/ASP.NET is not working properly
on this machine. Please follow the steps below to install IIS/ASP.NET on your machine 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Windows 7, Windows Server 2008, Vista&lt;/strong&gt; 
&lt;/p&gt;
&lt;p&gt;
I will describe the process for Windows Server 2008. Windows 7 interface is very similar,
Vista interface is slightly different, but names and descriptions are pretty much
the same. 
&lt;/p&gt;
&lt;p&gt;
In "Programs and Features", click on "Turn Windows features on or off". &lt;a target="_blank" href="content/binary/2010-02-22-01-TurnWirndowsFeaturesOnOrOff.png"&gt;See
screenshot&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
Add Web Server Role if needed, and click on it to configure. &lt;a target="_blank" href="content/binary/2010-02-22-02-WebServerRole.png"&gt;See
screenshot&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
Select all Web Server role service required for ASP.NET application hosting as on
the screenshot below. Please pay special attention to the "Application Development"
and "Management Tools" sections. &lt;a target="_blank" href="content/binary/2010-02-22-03-RoleServices.png"&gt;See
W2K8 screenshot&lt;/a&gt; , or &lt;a target="_blank" href="content/binary/2010-02-22-09-Windows7Features.png"&gt;Windows
7 screenshot&lt;/a&gt;. 
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
You may need to enable ASP.NET ISAPI extension manually. Find "ISAPI and CGI Restrictions"
under IIS properties (&lt;a href="content/binary/2010-02-22-09-IsapiAndCgiRestrictions-1.gif"&gt;see
screenshot&lt;/a&gt;), and enable ASP.NET extensions (&lt;a href="content/binary/2010-02-22-10-IsapiAndCgiRestrictions-2.gif"&gt;see
screenshot&lt;/a&gt;).&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Windows XP&lt;/strong&gt; 
&lt;/p&gt;
&lt;p&gt;
Go to Settings -&amp;gt; Control Panel -&amp;gt;Add or Remove Programs -&amp;gt; Add/Remove Windows
Components. Select "Internet Information Services", and select required components
- &lt;a target="_blank" href="content/binary/2010-02-22-04-XPInstallIIS.png"&gt;see screenshot&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
Navigate to your Microsoft .NET windows directory which is usually C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
and run aspnet_regiis -i and aspnet_regiis -c. 
&lt;/p&gt;
&lt;p&gt;
Go to My Computer -&amp;gt; Manage -&amp;gt; Services and Applications -&amp;gt; Internet Information
Services, Select "Default Web Site", right-click on it and modify ASP.NET tab of site
properties so it uses ASP.NET 4.0. &lt;a target="_blank" href="content/binary/2010-02-22-05-XPDefaultWebSiteProperties.png"&gt;See
screenshot&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Windows Server 2003&lt;/strong&gt; 
&lt;/p&gt;
&lt;p&gt;
Go to Settings -&amp;gt; Control Panel -&amp;gt;Add or Remove Programs -&amp;gt; Add/Remove Windows
Components. Select "Internet Information Services", and select required components
- &lt;a target="_blank" href="content/binary/2010-02-22-06-W2K3IISInstall.gif"&gt;see screenshot&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
Navigate to your Microsoft .NET windows directory which is usually C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
and run aspnet_regiis -i and aspnet_regiis -c. 
&lt;/p&gt;
&lt;p&gt;
Go to My Computer -&amp;gt; Manage -&amp;gt; Services and Applications -&amp;gt; Internet Information
Services, Select "Default Web Site", right-click on it and modify ASP.NET tab of site
properties so it uses ASP.NET 4.0. &lt;a target="_blank" href="content/binary/2010-02-22-07-W2K3DefaultWebSiteProperties.png"&gt;See
screenshot&lt;/a&gt;. 
&lt;br&gt;
&lt;/p&gt;
&lt;strong&gt;&lt;/strong&gt; 
&lt;p&gt;
Select "Web Service Extensions" node of local IIS server and enable ASP.NET&amp;nbsp;v4.0
extension.&lt;a target="_blank" href="content/binary/2010-02-22-08-W2K3Ext.png"&gt;See screenshot&lt;/a&gt;. 
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;b&gt;Update&lt;/b&gt; (August 2010):
&lt;/p&gt;
&lt;p&gt;
On XP or 2003, use DefaultAppPool for all CSWorks virtual directories. On Vista, 2008
and Windows 7 platforms, use "ASP.NET v4.0 Classic" for CSWorksDemo virtual directory,
and "ASP.NET v4.0" for CSWorksM2MDemo virtual directory.&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.controlsystemworks.com/blog/aggbug.ashx?id=9a0dfb03-d47c-4da7-84bc-7ed43793e10e" /&gt;</description>
      <comments>http://www.controlsystemworks.com/blog/CommentView,guid,9a0dfb03-d47c-4da7-84bc-7ed43793e10e.aspx</comments>
      <category>setup</category>
      <category>troubleshooting</category>
    </item>
  </channel>
</rss>