random error when using page outputCache

N

Nalaka

Hi,
I get the following error, I thought at random intervals.
Then I realized, that this happens around the time tha page outputCache is
set to expire.
So I disabled the page output cache and the problem went away.
I put in the outputcache back and the problem is back.

I am using forms authentication... and asp.net 2.0.

Have you seen this problem before... any help is deeply appreciated.


-------- Exception
elow --------------------------------------------------------------
<br>Offending URL: http://www.....
<br>Source: mscorlib
<br>Message: Request for the permission of type

'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
<br>Stack trace:

at System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.Path.GetFullPath(String path)
at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath,
Boolean& pathTooLong)
at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath)
at System.Web.CachedPathData.GetConfigPathData(String configPath)
at System.Web.CachedPathData.GetConfigPathData(String configPath)
at System.Web.UI.Page.InitOutputCache(OutputCacheParameters
cacheSettings)
at ASP.default_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.default_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)


<br>baseExceptionSource: mscorlib
<br>baseExceptionMessage: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,

Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
<br>baseExceptionStacktrace: at
System.Security.CodeAccessSecurityEngine.Check(Object

demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.Path.GetFullPath(String path)
at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath,
Boolean& pathTooLong)
at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath)
at System.Web.CachedPathData.GetConfigPathData(String configPath)
at System.Web.CachedPathData.GetConfigPathData(String configPath)
at System.Web.UI.Page.InitOutputCache(OutputCacheParameters
cacheSettings)
at ASP.default_aspx.FrameworkInitialize()
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.default_aspx.ProcessRequest(HttpContext context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
 
N

Nalaka

One other thing... I am using masterpages....

Default .aspx has.... <%@ OutputCache Duration="16000" Location="server"
VaryByParam="none" %>
Have not put any outputCache directive on master page....
 
S

Steven Cheng[MSFT]

Hello Nalaka,

As for this FileIOPermission security exception error with ASP.Net page
outputcache, I've also noticed your another previous thread below:

http://www.velocityreviews.com/forums/t361858-random-fileiopermission-error.
html

Is this problem still the same issue you encountered in that thread? If
so, as Walter has also mentioned, this is likely an environment specific
issue and he has also requested a simplified repro project. Have you been
able to create such a repro project? If so, you can send the project to me
so that we can perform some local test for on our environment. Please make
sure the project is a common and simplified one (based on IIS or vs 2005
test server). You can reach me through the email in my signature(remove
"online").

BTW, due to the nature of this issue's complexity, it may require some
advanced debugging to get the root cause and this is usually done through
the Product support team. Therefore, according to our newsgroup's support
limitation, it would be better for you to contact CSS for further
assistance if this issue is urgent for you.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



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

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.

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



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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top