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=2.0.0.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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
   System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase) +140
   System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +295
   System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +163
   System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +192
情况是这样的,我机器安装的是XP,然后通过虚拟机安装了一台Win2003. 2003里面安装IIS6.0. 站点文件指向我本机XP的一个共享目录. 就是iis设置主目录选择"另一台计算机的共享". 试者运行html没问题,但是在运行ASP.NET的时候报错,信息如上.NET Framework正常安装,搜了以下 AspNetHostingPermission 这个类,貌似是负责安全运行的,我估计肯定是我用共享目录创建站点这个操作触发了安全规则.附上已经查到了一点点资料"http://msdn.microsoft.com/zh-cn/magazine/wyts434y(VS.80).aspx"还请高手帮我解决, 谢谢