救命

5027527 2004-07-02 09:35:41
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则不会出错.请指点.
...全文
80 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
5027527 2004-07-02
  • 打赏
  • 举报
回复
我用了Microsoft.Web.UI.WebControls控件,是安装使用的。不在/WebPlan/bin的目录里。

http://218.94.23.63/WebPlan/Source/plaza.aspx 这个出错。
报错:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: File or assembly name Microsoft.Web.UI.WebControls, or one of its dependencies, was not found.

Source Error:


Line 1: <%@ Register TagPrefix="myNS" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">




http://127.0.0.1/WebPlan/Source/plaza.aspx 这个不出错。


5027527 2004-07-02
  • 打赏
  • 举报
回复
to dattotzy(酋长):有的文件是可以打开的,说明不是共享目录的权限问题。

http://218.94.23.63/WebPlan/Source/test1.aspx 这个是可以打开的。
5027527 2004-07-02
  • 打赏
  • 举报
回复
http://218.94.23.63/WebPlan/Source/plaza.aspx 这个出错。
http://127.0.0.1/WebPlan/Source/plaza.aspx 这个不出错。

请指点。
酋长 2004-07-02
  • 打赏
  • 举报
回复
权限不够 设置你的共享目录的访问权限是Everyone都可以读写

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧