It sounds like a configuration issue with IIS, which has the base trust key locked so it can't be modified. I'm not sure why that would be to be honest - I've never seen this on a default installation unless a section was explicitly locked down by an administrator.
To fix this you'll need to find where the section is locked.
Go into the IIS Manager.
If it doesn't say full, change the value to Full. If it doesn't want to change, check on the right hand side to see wether there's an option to 'Unlock section'. My guess is that somewhere along the hierarchy the section is locked so it can't be changed further down.
If the above is fine, go down a level to the Web Site level (ie. Default Web Site, or YourSite) and repeat the above steps.
Again, by default this shouldn't be locked down, so I'm not sure why or how that would have gotten set. You're running Windows 7 I suppose? Admin lockdown of some sort?
I'm still new to the server side of things and having some real basic configuration problem which I seem to not be able to identify.
When following the instructions for Rick's famous "Hello world" example I keep getting the following message after calling http://localhost/DevDemo/default.htm in Chrome.
You can skip the German comments - I'm just leaving them in for Rick :-)
KonfigurationsfehlerBeschreibung: Fehler beim Verarbeiten einer Konfigurationsdatei, die für diese Anforderung erforderlich ist. Überprüfen Sie die unten angegebenen Fehlerinformationen, und ändern Sie die Konfigurationsdatei entsprechend.
Parserfehlermeldung: Einen Abschnitt, der als allowDefinition='MachineToApplication' registriert ist, über die Programmebene hinaus zu verwenden verursacht einen Fehler. Dieser Fehler kann von einem virtuellen Verzeichnis verursacht werden, das nicht als Anwendung in IIS konfiguriert ist.
Quellfehler:
Zeile 62: </compilation>
Zeile 63: <!-- Web Connection Managed Module requires that it runs in FULL TRUST (COM Interop) -->
Zeile 64: <trust level="Full"/>
Zeile 65: <httpHandlers>
Zeile 66: </httpHandlers>
Quelldatei: C:\inetpub\wwwroot\devdemo\web.config Zeile: 64
Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.5466; ASP.NET-Version:2.0.50727.5456
A listing of web.config at that point is included at the end.
I installed IIS Express (64bit), .NET Framework 4, reinstalled WebConnection 5.65 and get the server running.
But when calling localhost/DevDemo/default.htm and selecting the Hello World Test Page (Testpage.dp) I get the problem. The a listing of web.config follows below.
I _have_ tried to change line 54 from "Full" to "FULL TRUST" - no change.
Any hints, pointers in the right direction?
******************************************************************
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="webConnectionVisualStudio" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<section name="webConnectionConfiguration" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<section name="webConnectionErrorPages" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</configSections>
<webConnectionVisualStudio>
<!-- Configuration Settings for the Web Connection Visual Studio Add-in
Not used at runtime, only at the design time -->
<add key="FoxProjectBasePath" value="c:\wconnect\"/>
<add key="WebProjectBasePath" value="C:\inetpub\wwwroot\DevDemo\"/>
<add key="WebProjectVirtual" value="http://localhost/DevDemo"/>
<!-- Optional PRG launched when VFP IDE launches -->
<add key="IdeOnLoadPrg" value=""/>
<!-- The default browser used. Blank IE Automation, otherwise specify browser exe path -->
<add key="WebBrowser" value=""/>
<add key="WebBrowserAlternate" value="C:\Program Files (x86)\mozilla firefox\firefox.exe"/>
<!-- The editor used to edit FoxPro code - blank means FoxPro Editor is used -->
<add key="FoxProEditor" value=""/>
<add key="_FoxProEditorAlternate" value="C:\Program Files (x86)\pspad editor\pspad.exe"/>
</webConnectionVisualStudio>
<webConnectionConfiguration>
<!-- NOTE: These settings apply only to the Web Connection Managed Module! -->
<add key="Timeout" value="60"/>
<add key="PostBufferLimit" value="0"/>
<add key="TempPath" value="c:\temp\dd\"/>
<add key="TempFilePrefix" value="DD_"/>
<add key="MessagingMechanism" value="File"/>
<add key="AdminAccount" value="ANY"/>
<add key="AdminPage" value="~/admin/admin.aspx"/>
<add key="ExeFile" value="c:\wconnect\DevDemo.exe"/>
<add key="UpdateFile" value=""/>
<add key="LogDetail" value="False"/>
<add key="ValidateRequest" value="False"/>
<add key="ComServerProgId" value="DevDemo.DevDemoServer"/>
<add key="ComServerLoadingMode" value="LoadBased"/>
<add key="ServerCount" value="2"/>
<add key="AutoStartServers" value="False"/>
<add key="MessageDisplayFooter" value="Message generated by Web Connection IIS Connector Module"/>
</webConnectionConfiguration>
<webConnectionErrorPages>
<!-- NOTE: These settings apply only to the Web Connection Managed Module! -->
<add key="Exception" value=""/>
<add key="OleError" value=""/>
<add key="Timeout" value=""/>
<add key="NoOutput" value=""/>
<add key="Busy" value=""/>
<add key="Maintenance" value=""/>
<add key="InvalidRequestId" value=""/>
<add key="TranmitFileFailure" value=""/>
<add key="PostBufferSize" value=""/>
</webConnectionErrorPages>
<system.web>
<compilation defaultLanguage="c#" debug="true">
<!-- Build Providers enable your script extensions to be editable in Visual Studio -->
<buildProviders>
<add extension=".wcsx" type="System.Web.Compilation.PageBuildProvider"/>
<add extension=".wc" type="System.Web.Compilation.PageBuildProvider"/>
<add extension=".dp" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
</compilation>
<!-- Web Connection Managed Module requires that it runs in FULL TRUST (COM Interop) -->
<trust level="Full"/>
<httpHandlers>
</httpHandlers>
</system.web>
<!-- IIS 7 Script Map Configuration -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name=".dp_wconnect-module" path="*.dp" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode"/>
<add name=".wwsoap_wconnect-module" path="*.wwsoap" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode"/>
<add name=".wc_wconnect-module" path="*.wc" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode"/>
<add name=".wcs_wconnect-module" path="*.wcs" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode"/>
<add name=".wcsx_wconnect-module" path="*.wcsx" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode"/>
</handlers>
<!--
*** ExtensionLess URL handling ***
* Requires Url Rewrite Module 2.0 is installed
-->
<!--
<rewrite>
<rules>
<rule name="ExtensionLessUrls" patternSyntax="Wildcard" stopProcessing="true">
<match url="*.*" negate="true" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="UrlRewriteHandler.dp" appendQueryString="true" />
</rule>
</rules>
</rewrite>
-->
</system.webServer>
</configuration>