My web site is definitely configured as an application in IIS. So what else
could it be? I had added some of our code to this 3rd party's web.config
shown below. So I don't know if it's the 3rd party app that's done in .NET
1.1 that can't handle it or it's some other thing I'm missing here:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="blog_db_connection_string"
value="server=ourserver;database=BlogsNet;provider =sqloledb" />
<add key="blog_base_page" value="Blog.aspx" />
<add key="blog_email_smtp_server" value="our_smtp_server" />
<add key="blog_email_smtp_username" value="" />
<add key="blog_email_smtp_password" value="" />
<add key="blog_email_smtp_port" value="" />
<add key="blog_admin_email" value="" />
<add key="blog_admin_password" value="admin" />
<add key="blog_db_type" value="SQL" />
------- Here is what I added
<add key="cookieDomainName" value=".ourdomain.com" />
---------
</appSettings>
------- Here is what I added (there was no system.web originally in their
web.config)
<system.web>
<identity impersonate="true"
userName="registry:HKLM\SOFTWARE\sss\identity\ASPN ET_SETREG,userName"
password="registry:HKLM\SOFTWARE\sss\identity\ASPN ET_SETREG,password"
/>
<authentication mode="Forms">
<forms loginUrl="login.aspx" name="oursite.COM.AUTH" path="/"/>
</authentication>
<machineKey validationKey="DDC...rest of key is here"
decryptionKey="084...rest of key is here" validation="SHA1" decryption="3DES"
/>
</system.web>
--------
</configuration>
When I browse to their default blog page that comes out of the bog here:
http://localhost/blog/blog.aspx...whatever, I get this error:
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.
Source Error:
Line 23:
password="registry:HKLM\SOFTWARE\sss\identity\ASPN ET_SETREG,password"
Line 24: />
Line 25: <authentication mode="Forms">
Line 26: <forms loginUrl="login.aspx" name="sss.COM.AUTH" path="/"/>
Line 27: </authentication>
Source File: C:\Inetpub\wwwroot\BlogsNET\blog\web.config Line: 25
If I take our added code back out of their web.config, it works fine. We
need this code in there to do single sign-on and to share cookies between our
site and the forum in which we want to implement here.
--
dba123