Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Missing required tag <CodeGroup>

Reply
Thread Tools

Missing required tag <CodeGroup>

 
 
Trapulo
Guest
Posts: n/a
 
      02-08-2010
I have this error, calling every aspx file, when I switch the app pool from
64 to 32 bit.
I've tested the same web site on an other similar server, and I haven't any
error, so I think there is something wrong on the server config, but I can
understand what. I have many other web sites, 64 and 32 bit, and they run
without problem.
I've tried to switch to full trust the web site, but still the same.

someone can help me?
I'm running Win Server 2008 x64

thanks



System.ArgumentException: Invalid XML. Missing required tag <CodeGroup> for
type 'System.Security.Policy.PolicyLevel'


[ArgumentException: Invalid XML. Missing required tag <CodeGroup> for type
'System.Security.Policy.PolicyLevel'.]
System.Security.Policy.PolicyLevel.FromXml(Securit yElement e) +1350
System.Security.SecurityManager.LoadPolicyLevelFro mStringHelper(String
str, String path, PolicyLevelType type) +207
System.Security.SecurityManager.LoadPolicyLevelFro mString(String str,
PolicyLevelType type) +37
System.Web.HttpRuntime.CreatePolicyLevel(String configFile, String
appDir, String binDir, String strOriginUrl, Boolean& foundGacToken) +420
System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection,
SecurityPolicySection securityPolicySection) +8922526
System.Web.HttpRuntime.HostingInit(HostingEnvironm entFlags hostingFlags)
+186

[HttpException (0x80004005): Invalid XML. Missing required tag <CodeGroup>
for type 'System.Security.Policy.PolicyLevel'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +8894031
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +85

System.Web.HttpRuntime.ProcessRequestNotificationP rivate(IIS7WorkerRequest
wr, HttpContext context) +333





 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-08-2010
On Feb 8, 1:27*pm, Trapulo <nonscrive...@nospam.nospam> wrote:
> I have this error, calling every aspx file, when I switch the app pool from
> 64 to 32 bit.
> I've tested the same web site on an other similar server, and I haven't any
> error, so I think there is something wrong on the server config, but I can
> understand what. I have many other web sites, 64 and 32 bit, and they run
> without problem.
> I've tried to switch to full trust the web site, but still the same.
>
> someone can help me?
> I'm running Win Server 2008 x64
>
> thanks
>
> *System.ArgumentException: Invalid XML. Missing required tag <CodeGroup> for
> type 'System.Security.Policy.PolicyLevel'
>
> [ArgumentException: Invalid XML. Missing required tag <CodeGroup> for type
> 'System.Security.Policy.PolicyLevel'.]
> * *System.Security.Policy.PolicyLevel.FromXml(Securit yElement e) +1350
> * *System.Security.SecurityManager.LoadPolicyLevelFro mStringHelper(String
> str, String path, PolicyLevelType type) +207
> * *System.Security.SecurityManager.LoadPolicyLevelFro mString(String str,
> PolicyLevelType type) +37
> * *System.Web.HttpRuntime.CreatePolicyLevel(String configFile, String
> appDir, String binDir, String strOriginUrl, Boolean& foundGacToken) +420
> * *System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection,
> SecurityPolicySection securityPolicySection) +8922526
> * *System.Web.HttpRuntime.HostingInit(HostingEnvironm entFlags hostingFlags)
> +186
>
> [HttpException (0x80004005): Invalid XML. Missing required tag <CodeGroup>
> for type 'System.Security.Policy.PolicyLevel'.]
> * *System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +8894031
> * *System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +85
>
> System.Web.HttpRuntime.ProcessRequestNotificationP rivate(IIS7WorkerRequest
> wr, HttpContext context) +333


It sounds like it's an error with Code Access Security configuration
(CAS). CAS is used to protect application by restricting the resources
the application can access and the privileged operations it can
perform. For example, if you need to run a component with a full trust
(high privileges), then you need to add an entry in its security
configuration file (web.config, or other *.config) to grant full trust
to its assembly. If you don't know what all this about, then check if
other ASP.NET sites are working, it's either somethig wrong with your
application, or you did install something recently.
 
Reply With Quote
 
 
 
 
Trapulo
Guest
Posts: n/a
 
      02-08-2010
On Feb 8, 2:18*pm, Alexey Smirnov <alexey.smir...@gmail.com> wrote:

> It sounds like it's an error with Code Access Security configuration
> (CAS). CAS is used to protect application by restricting the resources
> the application can access and the privileged operations it can
> perform. For example, if you need to run a component with a full trust
> (high privileges), then you need to add an entry in its security
> configuration file (web.config, or other *.config) to grant full trust
> to its assembly. If you don't know what all this about, then check if
> other ASP.NET sites are working, it's either somethig wrong with your
> application, or you did install something recently.


Yes, I know CAS. This web site however is really "stupid": just some
aspx pages. No bin, no dll compiled, and I've the error just calling
an aspx page without code inside. This web site only I've a lot of
other Webs (in x64 and x86 threads) on same server and are all running
(with "real" aspx applications).

I've tried without web.config, with full trust, but still nothing. And
if I switch to 64bit, asp.net starts.

Thanks
 
Reply With Quote
 
Trapulo
Guest
Posts: n/a
 
      02-08-2010

"Alexey Smirnov" wrote:

> It sounds like it's an error with Code Access Security configuration
> (CAS). CAS is used to protect application by restricting the resources
> the application can access and the privileged operations it can
> perform. For example, if you need to run a component with a full trust
> (high privileges), then you need to add an entry in its security
> configuration file (web.config, or other *.config) to grant full trust
> to its assembly. If you don't know what all this about, then check if
> other ASP.NET sites are working, it's either somethig wrong with your
> application, or you did install something recently.
> .
>


Yes, I know CAS. However this is just a "stupid" web sites, with some aspx
an not other. No dll, no bin, etc. I've tried a full trust with a simple page
aspx without code (and without web.config), and still this error.
I've a lot of other Webs on this server, with x64 or x86 threads, and all
they are working well.

Is there any way to know whitch is the file where it finds this "error"?

thanks


 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-08-2010
On 8 Feb., 17:17, Trapulo <nonscrive...@nospam.nospam> wrote:
> "Alexey Smirnov" wrote:
> > It sounds like it's an error with Code Access Security configuration
> > (CAS). CAS is used to protect application by restricting the resources
> > the application can access and the privileged operations it can
> > perform. For example, if you need to run a component with a full trust
> > (high privileges), then you need to add an entry in its security
> > configuration file (web.config, or other *.config) to grant full trust
> > to its assembly. If you don't know what all this about, then check if
> > other ASP.NET sites are working, it's either somethig wrong with your
> > application, or you did install something recently.
> > .

>
> Yes, I know CAS. However this is just a "stupid" web sites, with some aspx
> an not other. No dll, no bin, etc. I've tried a full trust with a simple page
> aspx without code (and without web.config), and still this error.
> I've a lot of other Webs on this server, with x64 or x86 threads, and all
> they are working well.
>
> Is there any way to know whitch is the file where it finds this "error"?
>
> thanks


Check if asp.net has been correctly registered for this website. Try
aspnet_regiis or similar
 
Reply With Quote
 
Vince Xu [MSFT]
Guest
Posts: n/a
 
      02-12-2010
Hi,

Did you resolve this issue? I didn't see your response for a time.

--
Sincerely,

Vince Xu

Microsoft Online Support

 
Reply With Quote
 
Trapulo
Guest
Posts: n/a
 
      02-12-2010
On 12/02/2010 6.56, Vince Xu [MSFT] wrote:
> Hi,
>
> Did you resolve this issue? I didn't see your response for a time.
>


No: it seems all ok either on the Web server, (all other sites running with
same settings) and on ther Web Site (running on an other similar serer)..

I cannot find what configuration has an error in ASP.NET environment,
according to the error message it reports.
 
Reply With Quote
 
Trapulo
Guest
Posts: n/a
 
      02-14-2010


"Vince Xu [MSFT]" wrote:

> Hi,
>
> Did you resolve this issue? I didn't see your response for a time.
>


I've found.
In fact I had an xml syntax error in my custom trust.config file. I didn't
notice that, because all webs that I run in 32 bit mode are classic asp and
not aspx. However there is a trouble with IIS admin that make difficult to
find this. If I swtich app pool to 32 bit, ASP.NET uses the config file under
\framework and not under \framework64 folder. But if I change trust mode to
full, as diagnostic test, the console will update the web.config file in the
64 bit folder (with a location tag), and my selection will not be used! The
32 bit aspnet Web will run with standard trust setting.

Now I've a last trouble: this Web site requires an OLEDB connection. I've
allowed it in my medium-custom trust config file, as described here:
http://msdn.microsoft.com/en-us/libr...ledbpermission

But running the site still have an error that reports that OLEDB is not
allowed ...
What can be?

thanks







 
Reply With Quote
 
Vince Xu [MSFT]
Guest
Posts: n/a
 
      02-15-2010
Hi,

It looks still the permisstion of OLED. Could you please post the entire
information of the error you got?

--
Regards,
Vince
Microsoft Support Online

--------------------
| Thread-Topic: Missing required tag <CodeGroup>
| thread-index: Acqtm1a2lWTecqt6RLWuND/i67I6sg==
| X-WBNR-Posting-Host: 88.149.225.73
| From: Trapulo <>
| References: <BABB653C-94BF-43B7-B582->
<956afb24-1927-4ed4-be3e->
<940A855F-9059-44FC-B17E->
<>
| Subject: Re: Missing required tag <CodeGroup>
| Date: Sun, 14 Feb 2010 09:30:01 -0800
| Lines: 35
| Message-ID: <897D9A7A-F230-427D-AED8->
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:96443
| NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
|
| "Vince Xu [MSFT]" wrote:
|
| > Hi,
| >
| > Did you resolve this issue? I didn't see your response for a time.
| >
|
| I've found.
| In fact I had an xml syntax error in my custom trust.config file. I
didn't
| notice that, because all webs that I run in 32 bit mode are classic asp
and
| not aspx. However there is a trouble with IIS admin that make difficult
to
| find this. If I swtich app pool to 32 bit, ASP.NET uses the config file
under
| \framework and not under \framework64 folder. But if I change trust mode
to
| full, as diagnostic test, the console will update the web.config file in
the
| 64 bit folder (with a location tag), and my selection will not be used!
The
| 32 bit aspnet Web will run with standard trust setting.
|
| Now I've a last trouble: this Web site requires an OLEDB connection. I've
| allowed it in my medium-custom trust config file, as described here:
|
http://msdn.microsoft.com/en-us/libr...020_oledbpermi
ssion
|
| But running the site still have an error that reports that OLEDB is not
| allowed ...
| What can be?
|
| thanks
|
|
|
|
|
|
|
|

 
Reply With Quote
 
Trapulo
Guest
Posts: n/a
 
      02-15-2010
On 15/02/2010 9.22, Vince Xu [MSFT] wrote:
> Hi,
>
> It looks still the permisstion of OLED. Could you please post the entire
> information of the error you got?
>


Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Data.OleDb.OleDbPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


It seems that OleDB is not permitted, but I'm sure the config file has
permission defined as I read in that page, and I'm sure that ASP.NET is
using that file (I tried to insert an XML error, and the page reported that
error).

thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid XML. Missing required tag <CodeGroup> Trapulo ASP .Net 3 02-09-2010 06:51 AM
Create a VD with required properties on a required Web Server (Windows Advanced Server 2000 has 3 Web Servers) Just D. ASP .Net 0 03-10-2006 06:02 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
html tag, runat server - cant find required properties!!??? Milsnips ASP .Net 2 11-04-2004 05:06 PM
Help: Make all fields in table tag required. Spanky Javascript 1 09-08-2003 08:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57