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"?>
<configuratio n>
<appSettings>
<add key="blog_db_co nnection_string "
value="server=o urserver;databa se=BlogsNet;pro vider=sqloledb" />
<add key="blog_base_ page" value="Blog.asp x" />
<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_ty pe" value="SQL" />
------- Here is what I added
<add key="cookieDoma inName" value=".ourdoma in.com" />
---------
</appSettings>
------- Here is what I added (there was no system.web originally in their
web.config)
<system.web>
<identity impersonate="tr ue"
userName="regis try:HKLM\SOFTWA RE\sss\identity \ASPNET_SETREG, userName"
password="regis try:HKLM\SOFTWA RE\sss\identity \ASPNET_SETREG, password"
/>
<authenticati on mode="Forms">
<forms loginUrl="login .aspx" name="oursite.C OM.AUTH" path="/"/>
</authentication>
<machineKey validationKey=" DDC...rest of key is here"
decryptionKey=" 084...rest of key is here" validation="SHA 1" decryption="3DE S"
/>
</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 ='MachineToAppl ication' 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="regis try:HKLM\SOFTWA RE\sss\identity \ASPNET_SETREG, password"
Line 24: />
Line 25: <authenticati on mode="Forms">
Line 26: <forms loginUrl="login .aspx" name="sss.COM.A UTH" path="/"/>
Line 27: </authentication>
Source File: C:\Inetpub\wwwr oot\BlogsNET\bl og\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