I am sorry Alexey, I am not sure that I uderstand a question...
Here is the error in more details:
Caught Exception: System.Configur ation.Configura tionErrorsExcep tion:
An error occurred loading a configuration file: Request for the
permission of type 'System.Securit y.Permissions.F ileIOPermission ,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9' failed. (machine.config ) --->
System.Security .SecurityExcept ion: Request for the permission of type
'System.Securit y.Permissions.F ileIOPermission , mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9'
failed.
at System.Security .CodeAccessSecu rityEngine.Chec k(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security .CodeAccessPerm ission.Demand()
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIB UTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode,
FileAccess access, FileShare share)
at
System.Configur ation.Internal. InternalConfigH ost.StaticOpenS treamForRead(St ring
streamName)
at
System.Configur ation.Internal. InternalConfigH ost.System.Conf iguration.Inter nal.IInternalCo nfigHost.OpenSt reamForRead(Str ing
streamName, Boolean assertPermissio ns)
at
System.Configur ation.Internal. InternalConfigH ost.System.Conf iguration.Inter nal.IInternalCo nfigHost.OpenSt reamForRead(Str ing
streamName)
at
System.Configur ation.Internal. DelegatingConfi gHost.OpenStrea mForRead(String
streamName)
at System.Configur ation.UpdateCon figHost.OpenStr eamForRead(Stri ng
streamName)
at
System.Configur ation.BaseConfi gurationRecord. InitConfigFromF ile()
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security .Permissions.Fi leIOPermission
The Zone of the assembly that failed was:
MyComputer
--- End of inner exception stack trace ---
at
System.Configur ation.Configura tionSchemaError s.ThrowIfErrors (Boolean
ignoreLocal)
at
System.Configur ation.BaseConfi gurationRecord. ThrowIfParseErr ors(Configurati onSchemaErrors
schemaErrors)
at System.Configur ation.Configura tion..ctor(Stri ng locationSubPath ,
Type typeConfigHost, Object[] hostInitConfigu rationParams)
at
System.Configur ation.Internal. InternalConfigC onfigurationFac tory.System.Con figuration.Inte rnal.IInternalC onfigConfigurat ionFactory.Crea te(Type
typeConfigHost, Object[] hostInitConfigu rationParams)
at
System.Web.Conf iguration.WebCo nfigurationHost .OpenConfigurat ion(WebLevel
webLevel, ConfigurationFi leMap fileMap, VirtualPath path, String site,
String locationSubPath , String server, String userName, String
password, IntPtr tokenHandle)
at
System.Web.Conf iguration.WebCo nfigurationMana ger.OpenWebConf igurationImpl(W ebLevel
webLevel, ConfigurationFi leMap fileMap, String path, String site,
String locationSubPath , String server, String userName, String
password, IntPtr userToken)
at
System.Web.Conf iguration.WebCo nfigurationMana ger.OpenWebConf iguration(Strin g
path)
at SecurityLayer.I sWebConfigProte cted(String sectionName)
at Administration_ Admin_Security. Page_Load(Objec t sender, EventArgs
e)
at System.Web.Util .CalliHelper.Ev entArgFunctionC aller(IntPtr fp,
Object o, Object t, EventArgs e)
at System.Web.Util .CalliEventHand lerDelegateProx y.Callback(Obje ct
sender, EventArgs e)
at System.Web.UI.C ontrol.OnLoad(E ventArgs e)
at System.Web.UI.C ontrol.LoadRecu rsive()
at System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
at System.Web.UI.P age.ProcessRequ est(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
at System.Web.UI.P age.ProcessRequ est()
at System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext
context)
at System.Web.UI.P age.ProcessRequ est(HttpContext context)
at
ASP.administrat ion_admin_secur ity_aspx.Proces sRequest(HttpCo ntext
context)
at
System.Web.Http Application.Cal lHandlerExecuti onStep.System.W eb.HttpApplicat ion.IExecutionS tep.Execute()
at System.Web.Http Application.Exe cuteStep(IExecu tionStep step,
Boolean& completedSynchr onously)
Inner Exception: System.Security .SecurityExcept ion: Request for the
permission of type 'System.Securit y.Permissions.F ileIOPermission ,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9' failed.
at System.Security .CodeAccessSecu rityEngine.Chec k(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security .CodeAccessPerm ission.Demand()
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIB UTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode,
FileAccess access, FileShare share)
at
System.Configur ation.Internal. InternalConfigH ost.StaticOpenS treamForRead(St ring
streamName)
at
System.Configur ation.Internal. InternalConfigH ost.System.Conf iguration.Inter nal.IInternalCo nfigHost.OpenSt reamForRead(Str ing
streamName, Boolean assertPermissio ns)
at
System.Configur ation.Internal. InternalConfigH ost.System.Conf iguration.Inter nal.IInternalCo nfigHost.OpenSt reamForRead(Str ing
streamName)
at
System.Configur ation.Internal. DelegatingConfi gHost.OpenStrea mForRead(String
streamName)
at System.Configur ation.UpdateCon figHost.OpenStr eamForRead(Stri ng
streamName)
at
System.Configur ation.BaseConfi gurationRecord. InitConfigFromF ile()
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security .Permissions.Fi leIOPermission
The Zone of the assembly that failed was:
MyComputer
On Tue, 14 Aug 2007 01:03:46 -0700, Alexey Smirnov
<al************ @gmail.comwrote :
>On Aug 14, 9:16 am, Mike <ablyp...@yahoo .comwrote:
>Hi
I have problem as folow:
Caught Exception: System.Configur ation.Configura tionErrorsExcep tion:
An error occurred loading a configuration file: Request for the
permission of type 'System.Securit y.Permissions.F ileIOPermission ,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken =b77a5c561934e0 89' failed. (machine.config ) --->
System.Securit y.SecurityExcep tion: Request for the permission of type
'System.Securi ty.Permissions. FileIOPermissio n, mscorlib,
Version=2.0.0. 0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9'
failed.
I am hosting www.1and1.comserver.
This problem is noticed only on two pages, all others work well
I tried to use folowing part of code within web configuration, but
without success...
<location allowOverride=" true" path="~">
<system.web>
<trust level="Full" />
</system.web>
</location>
Please help
Thanks,
Mike
What code gives you that exception?