RE: Compiler Error Message: CS0007: Unexpected common language...

RE: Compiler Error Message: CS0007: Unexpected common language...

am 20.12.2007 05:01:00 von MohamadElarabi

This is obviously a security issue. Try running your app under the local
administrator just verify that elevated rights resolve the problem. If they
do, then you might set it back to the default value but you may need to give
the ASPNET user or the "Network Service" user more rights on the folder where
the application resides.

Of course, needless to say that running the site under elevated rights my
pose a risk. But since this is Vista, MS's approach was for it to be locked
down out of the box and users will need to open the security as they need to,
vs. the original XP where it starts off with open security and users lock it
down as they need to. Kind of the opposite model.

Good luck.

--
Mohamad Elarabi
Lead Developer. MCTS, MCPD.


"FrigginMook" wrote:

> Hi there. I am trying to setup my machine to develop ASP.NET. I am having an
> issue under Vista that I never had under XP. I am getting the following
> message from a simple page (source below). I am certain this should be an
> easy fix, however I have not seen anything but similar questions and no
> answers.
>
> Anyone have any ideas?
>
> ***Error from localhost:***
> Server Error in '/' Application.
> ------------------------------------------------------------ --------------------
>
> Compilation Error
> Description: An error occurred during the compilation of a resource required
> to service this request. Please review the following specific error details
> and modify your source code appropriately.
>
> Compiler Error Message: CS0007: Unexpected common language runtime
> initialization error -- 'Access is denied. '
>
> Source Error:
>
>
>
> [No relevant source lines]
>
>
> Source File: Line: 0
>
>
>
> Show Detailed Compiler Output:
>
>
> c:\windows\system32\inetsrv>
> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library
> /utf8output
> /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0 __b03f5f7f11d50a3a\System.Web.Services.dll"
> /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0 .0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"
> /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c56 1934e089\System.Data.dll"
> /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c5 61934e089\System.Xml.dll"
> /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03 f5f7f11d50a3a\System.Drawing.dll"
> /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.d ll"
> /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f1 1d50a3a\System.Web.dll"
> /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serializatio n\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll "
> /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c56193 4e089\System.dll"
> /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0. 0__b03f5f7f11d50a3a\System.Configuration.dll"
> /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__ b03f5f7f11d50a3a\System.Web.Mobile.dll"
> /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0 __b77a5c561934e089\System.ServiceModel.dll"
> /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0. 0__b77a5c561934e089\System.IdentityModel.dll"
> /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporar y ASP.NET
> Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.dll"
> /debug- /optimize+ /w:4 /nowarn:1659;1699
> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.0.cs"
> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.1.cs"
>
>
> Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.312
> for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
> Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
>
> fatal error CS0007: Unexpected common language runtime initialization error
> -- 'Access is denied. '
>
>
>
>
>
>
> ------------------------------------------------------------ --------------------
> Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET
> Version:2.0.50727.833
> ***End Error***
>
> ***Source for "Punctual.aspx"***
>
>
>
> The Punctual Web Server
>
>

Welcome


> In WebServerLand the time is currently:
>
>
>

RE: Compiler Error Message: CS0007: Unexpected common language...

am 29.12.2007 11:10:00 von mib_sanfran

"Obvious" or not, I am getting the same 'CS0007...Access Denied' even when I
set my default 'Anonymous' IIS account as the local adminstrator. I have
tried everything I can think of to clear this error (uninstall/reinstall IIS,
u/r .NET 2/3/3.5). I have taken ownership of the entire .NET folder and
granted full acceess to the admin account on the .NET folders... Nothing
helps. The crazy thing is that these simple ASP.NET applications run fine
from within the debugger inside Visual Studio. While I believe that this
problem is likely a security-related issue, I have had no luck finding
anything on the web that provides a solution.

BTW... I am running IIS 7 inside Vista Ultimate that came with my new Dell
PC (and it is very possible that Dell corrupted the .NET framework somehow
during their install).

"Mohamad Elarabi" wrote:

> This is obviously a security issue. Try running your app under the local
> administrator just verify that elevated rights resolve the problem. If they
> do, then you might set it back to the default value but you may need to give
> the ASPNET user or the "Network Service" user more rights on the folder where
> the application resides.
>
> Of course, needless to say that running the site under elevated rights my
> pose a risk. But since this is Vista, MS's approach was for it to be locked
> down out of the box and users will need to open the security as they need to,
> vs. the original XP where it starts off with open security and users lock it
> down as they need to. Kind of the opposite model.
>
> Good luck.
>
> --
> Mohamad Elarabi
> Lead Developer. MCTS, MCPD.
>
>
> "FrigginMook" wrote:
>
> > Hi there. I am trying to setup my machine to develop ASP.NET. I am having an
> > issue under Vista that I never had under XP. I am getting the following
> > message from a simple page (source below). I am certain this should be an
> > easy fix, however I have not seen anything but similar questions and no
> > answers.
> >
> > Anyone have any ideas?
> >
> > ***Error from localhost:***
> > Server Error in '/' Application.
> > ------------------------------------------------------------ --------------------
> >
> > Compilation Error
> > Description: An error occurred during the compilation of a resource required
> > to service this request. Please review the following specific error details
> > and modify your source code appropriately.
> >
> > Compiler Error Message: CS0007: Unexpected common language runtime
> > initialization error -- 'Access is denied. '
> >
> > Source Error:
> >
> >
> >
> > [No relevant source lines]
> >
> >
> > Source File: Line: 0
> >
> >
> >
> > Show Detailed Compiler Output:
> >
> >
> > c:\windows\system32\inetsrv>
> > "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library
> > /utf8output
> > /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0 __b03f5f7f11d50a3a\System.Web.Services.dll"
> > /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0 .0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"
> > /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c56 1934e089\System.Data.dll"
> > /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c5 61934e089\System.Xml.dll"
> > /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03 f5f7f11d50a3a\System.Drawing.dll"
> > /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.d ll"
> > /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f1 1d50a3a\System.Web.dll"
> > /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serializatio n\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll "
> > /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c56193 4e089\System.dll"
> > /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0. 0__b03f5f7f11d50a3a\System.Configuration.dll"
> > /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__ b03f5f7f11d50a3a\System.Web.Mobile.dll"
> > /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0 __b77a5c561934e089\System.ServiceModel.dll"
> > /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0. 0__b77a5c561934e089\System.IdentityModel.dll"
> > /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporar y ASP.NET
> > Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.dll"
> > /debug- /optimize+ /w:4 /nowarn:1659;1699
> > "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> > Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.0.cs"
> > "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> > Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.1.cs"
> >
> >
> > Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.312
> > for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
> > Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
> >
> > fatal error CS0007: Unexpected common language runtime initialization error
> > -- 'Access is denied. '
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------ --------------------
> > Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET
> > Version:2.0.50727.833
> > ***End Error***
> >
> > ***Source for "Punctual.aspx"***
> >
> >
> >
> > The Punctual Web Server
> >
> >

Welcome


> > In WebServerLand the time is currently:
> >
> >
> >

RE: Compiler Error Message: CS0007: Unexpected common language...

am 29.12.2007 11:15:00 von MohamadElarabiMCPD

Did you try allowing "Everyone" full control on the folder? While this is a
crazy thing to do but as a test it could establish whether this is a folder
security issue or not.

--
Mohamad Elarabi
MCP, MCTS, MCPD.


"mib_sanfran" wrote:

> "Obvious" or not, I am getting the same 'CS0007...Access Denied' even when I
> set my default 'Anonymous' IIS account as the local adminstrator. I have
> tried everything I can think of to clear this error (uninstall/reinstall IIS,
> u/r .NET 2/3/3.5). I have taken ownership of the entire .NET folder and
> granted full acceess to the admin account on the .NET folders... Nothing
> helps. The crazy thing is that these simple ASP.NET applications run fine
> from within the debugger inside Visual Studio. While I believe that this
> problem is likely a security-related issue, I have had no luck finding
> anything on the web that provides a solution.
>
> BTW... I am running IIS 7 inside Vista Ultimate that came with my new Dell
> PC (and it is very possible that Dell corrupted the .NET framework somehow
> during their install).
>
> "Mohamad Elarabi" wrote:
>
> > This is obviously a security issue. Try running your app under the local
> > administrator just verify that elevated rights resolve the problem. If they
> > do, then you might set it back to the default value but you may need to give
> > the ASPNET user or the "Network Service" user more rights on the folder where
> > the application resides.
> >
> > Of course, needless to say that running the site under elevated rights my
> > pose a risk. But since this is Vista, MS's approach was for it to be locked
> > down out of the box and users will need to open the security as they need to,
> > vs. the original XP where it starts off with open security and users lock it
> > down as they need to. Kind of the opposite model.
> >
> > Good luck.
> >
> > --
> > Mohamad Elarabi
> > Lead Developer. MCTS, MCPD.
> >
> >
> > "FrigginMook" wrote:
> >
> > > Hi there. I am trying to setup my machine to develop ASP.NET. I am having an
> > > issue under Vista that I never had under XP. I am getting the following
> > > message from a simple page (source below). I am certain this should be an
> > > easy fix, however I have not seen anything but similar questions and no
> > > answers.
> > >
> > > Anyone have any ideas?
> > >
> > > ***Error from localhost:***
> > > Server Error in '/' Application.
> > > ------------------------------------------------------------ --------------------
> > >
> > > Compilation Error
> > > Description: An error occurred during the compilation of a resource required
> > > to service this request. Please review the following specific error details
> > > and modify your source code appropriately.
> > >
> > > Compiler Error Message: CS0007: Unexpected common language runtime
> > > initialization error -- 'Access is denied. '
> > >
> > > Source Error:
> > >
> > >
> > >
> > > [No relevant source lines]
> > >
> > >
> > > Source File: Line: 0
> > >
> > >
> > >
> > > Show Detailed Compiler Output:
> > >
> > >
> > > c:\windows\system32\inetsrv>
> > > "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library
> > > /utf8output
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0 __b03f5f7f11d50a3a\System.Web.Services.dll"
> > > /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0 .0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll"
> > > /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c56 1934e089\System.Data.dll"
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c5 61934e089\System.Xml.dll"
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03 f5f7f11d50a3a\System.Drawing.dll"
> > > /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.d ll"
> > > /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f1 1d50a3a\System.Web.dll"
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serializatio n\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll "
> > > /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c56193 4e089\System.dll"
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0. 0__b03f5f7f11d50a3a\System.Configuration.dll"
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__ b03f5f7f11d50a3a\System.Web.Mobile.dll"
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0 __b77a5c561934e089\System.ServiceModel.dll"
> > > /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0. 0__b77a5c561934e089\System.IdentityModel.dll"
> > > /out:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporar y ASP.NET
> > > Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.dll"
> > > /debug- /optimize+ /w:4 /nowarn:1659;1699
> > > "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> > > Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.0.cs"
> > > "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> > > Files\root\26676eb7\92c7e946\App_Web_punctual.aspx.a03b1cdb. 133ssp-c.1.cs"
> > >
> > >
> > > Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.312
> > > for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
> > > Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
> > >
> > > fatal error CS0007: Unexpected common language runtime initialization error
> > > -- 'Access is denied. '
> > >
> > >
> > >
> > >
> > >
> > >
> > > ------------------------------------------------------------ --------------------
> > > Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET
> > > Version:2.0.50727.833
> > > ***End Error***
> > >
> > > ***Source for "Punctual.aspx"***
> > >
> > >
> > >
> > > The Punctual Web Server
> > >
> > >

Welcome


> > > In WebServerLand the time is currently:
> > >
> > >
> > >