473,471 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Running a 1.1 app under a 2.0 root web....

I started to struggle with this recently. We have already crossed the
inheritance issue with root web's/assemblies and so on from the web.config
(ie we are using the remove assembly attribute in sub webs). Anyway, we
have upgraded our main root site to .net 2.0. We have a few other apps
under the root that are 1.1 and started reporting 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: Unrecognized configuration section 'xhtmlConformance'

So the 1.1 engine has no clue what that tag means and craps out. I found a
few posts that stated this was by design (which is a huge problem for us)
here is the link:

http://connect.microsoft.com/VisualS...dbackID=102118

I think i have found a workaround based on information/trial and error but
need to know if there are any side effects that would possibly be a problem.

I took the problem tag <xhtmlConformance mode="Legacy"/out of the root
web site web.config and added it to the web.config under the server
%windows%\Microsoft.NET\Framework\v2.0.50727\CONFI G\web.config

We don't/can't imagine a situation where we would need to set this by web
site ( the tag value ). So, my question is, is this ok, does it pose any
problems, risks? It seems to me that this is fine. I find it hard to
believe that its ok based on the above post from ms and they stated
basically by design, no workarounds other than changing the url.
Sep 22 '06 #1
6 1987
Create separate app pools for 1.1 and 2.0. That is your first step. Next,
place the 1.1 apps in the 1.1 application pool. That should solve your
problems.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Jim Butler" <bi*******@noemail.noemailwrote in message
news:O7**************@TK2MSFTNGP06.phx.gbl...
>I started to struggle with this recently. We have already crossed the
inheritance issue with root web's/assemblies and so on from the web.config
(ie we are using the remove assembly attribute in sub webs). Anyway, we
have upgraded our main root site to .net 2.0. We have a few other apps
under the root that are 1.1 and started reporting 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: Unrecognized configuration section
'xhtmlConformance'

So the 1.1 engine has no clue what that tag means and craps out. I found
a few posts that stated this was by design (which is a huge problem for
us) here is the link:

http://connect.microsoft.com/VisualS...dbackID=102118

I think i have found a workaround based on information/trial and error but
need to know if there are any side effects that would possibly be a
problem.

I took the problem tag <xhtmlConformance mode="Legacy"/out of the root
web site web.config and added it to the web.config under the server
%windows%\Microsoft.NET\Framework\v2.0.50727\CONFI G\web.config

We don't/can't imagine a situation where we would need to set this by web
site ( the tag value ). So, my question is, is this ok, does it pose any
problems, risks? It seems to me that this is fine. I find it hard to
believe that its ok based on the above post from ms and they stated
basically by design, no workarounds other than changing the url.

Sep 22 '06 #2
Thanks for the response, but, we already did that and that will fix the
reverse of this situation. The problem is the root web app is 2.0 and there
are some sub apps that are still 1.1, When a 1.1 sub web app loads, it
loads all configs in a heirarchial fashion from the root (the 2.0 version)
and when it hits a tag it doesn't understand, it craps out. It is easily
reproducible, if you check the ms link you can repro easily. I only need to
know if i am doing something will cause undesired side effects, which i am
guessing not, but wanted to check.

Thanks,

jim

Anyway, just wondering what side effect if any, of moving the tag to the 2.0
web config
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:eK**************@TK2MSFTNGP02.phx.gbl...
Create separate app pools for 1.1 and 2.0. That is your first step. Next,
place the 1.1 apps in the 1.1 application pool. That should solve your
problems.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Jim Butler" <bi*******@noemail.noemailwrote in message
news:O7**************@TK2MSFTNGP06.phx.gbl...
>>I started to struggle with this recently. We have already crossed the
inheritance issue with root web's/assemblies and so on from the web.config
(ie we are using the remove assembly attribute in sub webs). Anyway, we
have upgraded our main root site to .net 2.0. We have a few other apps
under the root that are 1.1 and started reporting 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: Unrecognized configuration section
'xhtmlConformance'

So the 1.1 engine has no clue what that tag means and craps out. I found
a few posts that stated this was by design (which is a huge problem for
us) here is the link:

http://connect.microsoft.com/VisualS...dbackID=102118

I think i have found a workaround based on information/trial and error
but need to know if there are any side effects that would possibly be a
problem.

I took the problem tag <xhtmlConformance mode="Legacy"/out of the root
web site web.config and added it to the web.config under the server
%windows%\Microsoft.NET\Framework\v2.0.50727\CONF IG\web.config

We don't/can't imagine a situation where we would need to set this by web
site ( the tag value ). So, my question is, is this ok, does it pose any
problems, risks? It seems to me that this is fine. I find it hard to
believe that its ok based on the above post from ms and they stated
basically by design, no workarounds other than changing the url.


Sep 22 '06 #3
On Fri, 22 Sep 2006 13:39:49 -0400, "Jim Butler" <bi*******@noemail.noemailwrote:
>Thanks for the response, but, we already did that and that will fix the
reverse of this situation. The problem is the root web app is 2.0 and there
are some sub apps that are still 1.1, When a 1.1 sub web app loads, it
loads all configs in a heirarchial fashion from the root (the 2.0 version)
and when it hits a tag it doesn't understand, it craps out. It is easily
reproducible, if you check the ms link you can repro easily. I only need to
know if i am doing something will cause undesired side effects, which i am
guessing not, but wanted to check.

Thanks,

jim
We had that situation and could only solve it by setting up a new web site ( on the same IIS 6 server ) and using the
header info to set the new URL host name..
Register this header name entry with your DNS and it is 'seen' as a totally separate site ( it can then have 1.1 as its
default .NET) and 2.0 can stay as default on the original site..

Sep 22 '06 #4
Thanks for the response, i worry about the url issues that we pull js and
images from the root. But anyway, luckily we are not using anything out of
the box ( net 2.0 features that would require a significant customization to
the web.config, we had already built all that stuff into our framework), so
there was only one tag that was a problem, and by moving it to the 2.0
framework web.config, it allowed the 1.1 app to work properly because the
1.1 engine has no knowledge of the 2.0 web.config that sits in the
%windows%framework.... directory, therefor it won't try to load it.

Thanks,

jim

ps, just offering what we figured out as a work around (which will be even a
greater problem with the release of .net 3.0), and wondering if anyone knew
of any side effects of taking this approach.
"Turkbear" <no***@nowhere.comwrote in message
news:96********************************@4ax.com...
On Fri, 22 Sep 2006 13:39:49 -0400, "Jim Butler"
<bi*******@noemail.noemailwrote:
>>Thanks for the response, but, we already did that and that will fix the
reverse of this situation. The problem is the root web app is 2.0 and
there
are some sub apps that are still 1.1, When a 1.1 sub web app loads, it
loads all configs in a heirarchial fashion from the root (the 2.0 version)
and when it hits a tag it doesn't understand, it craps out. It is easily
reproducible, if you check the ms link you can repro easily. I only need
to
know if i am doing something will cause undesired side effects, which i am
guessing not, but wanted to check.

Thanks,

jim
We had that situation and could only solve it by setting up a new web site
( on the same IIS 6 server ) and using the
header info to set the new URL host name..
Register this header name entry with your DNS and it is 'seen' as a
totally separate site ( it can then have 1.1 as its
default .NET) and 2.0 can stay as default on the original site..

Sep 22 '06 #5
Hi Jim,

Yes, you're right, the problem you met is an existing limitation of the
ASP.NET web.config inheritance. The ASP.NET application will inherit the
web.config in its super path hierarchy regardless of the super
application's version. Generally the recommendation is as below:

** if possible, isolate ASP.NET 1.1 and 2.0 applications in different
website, of course the application pool should also be separated.

** If we can not avoid deploy both 1.1 and 2.0 ASP.NET applications in the
same IIS site, we'd better always put 1.1 application at super level path.
In other words, try avoid putting ASP.NET 1.1 applications as sub
application under ASP.NET 2.0 application.

for your scenario, it is a parituclar case that you can not avoid nesting
ASP.NET 1.1 app under 2.0 app, I think the workaround you got from product
feedback center is the reasonable approach( put 2.0 specific global setting
into the machine level web.config file).

BTW, I've also met some other issue like the super web.config's
<httphandlersetting be inherited by sub applications(unexpectedly). In
ASP.NET 1.1, this is also restricted, while in ASP.NET 2.0, we can use the
<locationelement to remove the httphandler setting for such certain sub
directory. e.g

=========================
<location path="subdir1">
<system.web>
<httpHandlers>
<clear/>
</httpHandlers>
</system.web>
</location>
==========================
#How to: Configure Specific Directories Using Location Settings
http://msdn2.microsoft.com/en-us/library/ms178692.aspx
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 25 '06 #6
Thanks for the info,

jim
"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:Na**************@TK2MSFTNGXA01.phx.gbl...
Hi Jim,

Yes, you're right, the problem you met is an existing limitation of the
ASP.NET web.config inheritance. The ASP.NET application will inherit the
web.config in its super path hierarchy regardless of the super
application's version. Generally the recommendation is as below:

** if possible, isolate ASP.NET 1.1 and 2.0 applications in different
website, of course the application pool should also be separated.

** If we can not avoid deploy both 1.1 and 2.0 ASP.NET applications in the
same IIS site, we'd better always put 1.1 application at super level path.
In other words, try avoid putting ASP.NET 1.1 applications as sub
application under ASP.NET 2.0 application.

for your scenario, it is a parituclar case that you can not avoid nesting
ASP.NET 1.1 app under 2.0 app, I think the workaround you got from product
feedback center is the reasonable approach( put 2.0 specific global
setting
into the machine level web.config file).

BTW, I've also met some other issue like the super web.config's
<httphandlersetting be inherited by sub applications(unexpectedly). In
ASP.NET 1.1, this is also restricted, while in ASP.NET 2.0, we can use
the
<locationelement to remove the httphandler setting for such certain sub
directory. e.g

=========================
<location path="subdir1">
<system.web>
<httpHandlers>
<clear/>
</httpHandlers>
</system.web>
</location>
==========================
#How to: Configure Specific Directories Using Location Settings
http://msdn2.microsoft.com/en-us/library/ms178692.aspx
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Sep 25 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: jn | last post by:
They have a server here that runs PHP as root (which is probably bad). I wrote a test script that tries to create a text file. echo "<B>I'm running as user: " . $_ENV . "</B><BR/><BR/>"; ...
1
by: Adi | last post by:
A java program we have written crashes with IBM JDK 1.3.1 on linux. It works fine on other platforms(Solaris,HPUx). It gets a SIGSERV Signal 11 and crashes just after few minutes after starting up....
0
by: Mark Adams | last post by:
I really need some help with this. MySQL will not start on boot despite everything I've done to make sure that it is set to do so. When I start it as root from a terminal with...
0
by: David M. | last post by:
I started the mysql database with the "safe_mysqld" command and with the user who own mysql. in the errr-log file, I have that: 050123 23:16:50 mysqld started Warning: One can only use the...
6
by: dwelch91 | last post by:
Greetings- This is on Linux... I have a daemon running as root and I want to execute another Python program as another user (a regular user). I have the name of the user and can use the 'pwd' and...
4
by: Nick Sinclair | last post by:
Hi all, I'm new to C. I have successfully written a small C program that acts as a "wrapper" around cgi scripts. These scripts perform admin tasks such as backing up etc. Obviously, The need...
1
by: Ennio-Sr | last post by:
Hi all! Testing a script where I need to make sure that postgresql is running before passing a <psql dbasename -c "insert into ..." > instruction I faced this curious behaviour: This is the...
0
by: paulhjwu | last post by:
Hi, I have problems running a couple of shell scripts from PHP. I found a similar posting, so I posted my question to the original author. But unfortunately the original author is not at the...
3
by: chernevik | last post by:
Here is a newbie question: how do I get the server examples in the Preview chapter of "Progamming Python" (Lutz) to run? The code is supposed to be a little webserver on which to run examples,...
3
by: Lawrence Krubner | last post by:
I've a PHP script that is run as a cron job. It contains this line: $stringListingAllProcesses = shell_exec("lsof | grep vsftpd"); The lsof command returns almost nothing unless you are the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.