我将我做的项目传到服务器上,其中treeview 总是会提示错误:(本机运行正常)
不知道是服务器的问题,还是那个地方设置的问题
服务器根目录中做的东西用到treeview却显示是正确的.
错误代码:
内部错误: 未正确初始化 GDI+。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Runtime.InteropServices.ExternalException: 内部错误: 未正确初始化 GDI+。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  
ExternalException (0x80004005): 内部错误: 未正确初始化 GDI+。]
   System.Drawing.Bitmap..ctor(Stream stream) +270
   System.Drawing.ToolboxBitmapAttribute..cctor() +165[TypeInitializationException: “System.Drawing.ToolboxBitmapAttribute”的类型初始值设定项引发异常。]
   System.Drawing.ToolboxBitmapAttribute..ctor(Type t) +0
   System.Reflection.CustomAttribute.CreateCAObject(Int32& propNum, Assembly& assembly) +0
   System.Reflection.CustomAttribute.GetObject() +57
   System.Reflection.CustomAttribute.CheckConsistencyAndCreateArray(CustomAttribute caItem, Type caType) +539
   System.Reflection.CustomAttribute.GetCustomAttributes(MemberInfo member, Type caType, Boolean inherit) +459
   System.Reflection.CustomAttribute.GetCustomAttributes(Type type, Type caType, Boolean inherit) +110
   System.RuntimeType.GetCustomAttributes(Boolean inherit) +11
   System.ComponentModel.TypeDescriptor.GetCustomAttributes(Type type) +78
   System.ComponentModel.MemberList.ReflectGetCustomAttributes(Type classToReflect, Type metadataType) +322
   System.ComponentModel.MemberList.GetAttributes() +121
   System.ComponentModel.ComponentEntry.GetAttributes(Object component) +127
   System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) +19
   System.Web.Compilation.TemplateControlCompiler.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, PropertySetterEntry pse) +706
   System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +812
   System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +355
   System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +355
   System.Web.Compilation.TemplateControlCompiler.BuildMiscClassMembers() +52
   System.Web.Compilation.PageCompiler.BuildMiscClassMembers() +10
   System.Web.Compilation.BaseCompiler.BuildSourceDataTree() +1291
   System.Web.Compilation.BaseCompiler.GetCompiledType() +129
   System.Web.UI.PageParser.CompileIntoType() +60
   System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +124[HttpException (0x80004005): “System.Drawing.ToolboxBitmapAttribute”的类型初始值设定项引发异常。]
   System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +692
   System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
   System.Web.UI.TemplateParser.GetParserCacheItem() +88
   System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +116
   System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +36
   System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173