救命
Server Error in '/WebPlan' Application.
--------------------------------------------------------------------------------
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.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +33
System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +193
System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +16
System.Web.UI.ControlBuilder.CreateChildBuilder(String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, String sourceFileName, Type& childType) +90
System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +1119
System.Web.UI.TemplateParser.ParseStringInternal(String text) +705
System.Web.UI.TemplateParser.ParseString(String text, String virtualPath, String basePhysicalDir) +102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
备注:
我在我的宽带接入主机建了一个虚拟目录WebPlan,采用共享路径的方法指向我本机的共享目录:\\BillGates\WebPlan,通过外网访问出错.但是如果直接在我本机上用http://127.0.0.1/WebPlan则不会出错.请指点.