ÅäÖÃASP.NETƽ̨ʱÓöµ½µÄ¡°·ÃÎÊIISÔªÊý¾Ý¿âʧ°Ü
ÅäÖÃASP.NETƽ̨ʱÓöµ½µÄ“·ÃÎÊIISÔªÊý¾Ý¿âʧ°Ü”
(2007-05-18 09:20:08)
±êÇ©£º
asp
·ÖÀࣺ¼¼ÊõËæ±Ê
ʵϰҲ½áÊøÁË£¬×î½üÖÕÓÚÓÐʱ¼äÕýʽµØ¸ã±ÏÒµÉè¼ÆÁË……
¿ÎÌâÊǹØÓڴһ¸ö»ùÓÚASP.NETÍøÕ¾¿ò¼ÜµÄ£¬µ±È»ÅäÖÿª·¢Æ½Ì¨ÊǵÚÒ»²½£¬×°ÉÏIISºó£¬ÔÚ±¾µØ·ÃÎÊ.aspxÒ³Ãæʱ×ܳöÏÖÈçϱ¨´íÐÅÏ¢£º
·ÃÎÊ IIS ÔªÊý¾Ý¿âʧ°Ü¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆڼ䣬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.Web.Hosting.HostingEnvironmentException: ·ÃÎÊ IIS ÔªÊý¾Ý¿âʧ°Ü¡£
ÓÃÓÚÔËÐÐ ASP.NET µÄ½ø³ÌÕÊ»§±ØÐë¾ßÓÐ¶Ô IIS ÔªÊý¾Ý¿â(Èç IIS://servername/W3SVC)µÄ¶Á·ÃÎÊȨ¡£ÓйØÈçºÎÐÞ¸ÄÔªÊý¾Ý¿âȨÏÞµÄÐÅÏ¢£¬Çë²Î¼û http://support.microsoft.com/?kbid=267904¡£
Ô´´íÎó:
Ö´Ðе±Ç° Web ÇëÇóÆÚ¼äÉú³ÉÁËδ´¦ÀíµÄÒì³£¡£¿ÉÒÔʹÓÃÏÂÃæµÄÒì³£¶ÑÕ»¸ú×ÙÐÅϢȷ¶¨ÓйØÒì³£ÔÒòºÍ·¢ÉúλÖõÄÐÅÏ¢¡£
¶ÑÕ»¸ú×Ù:
[HostingEnvironmentException: ·ÃÎÊ IIS ÔªÊý¾Ý¿âʧ°Ü¡£]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +690 System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +174
System.Web.CachedPathData.GetConfigPathData(String configPath) +398
System.Web.CachedPathData.GetConfigPathData(String configPath) +263
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +166
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +187
--------------------------------------------------------------------------------
°æ±¾ÐÅÏ¢: Microsoft .NET Framework °æ±¾:2.0.50727.42; ASP.NET °æ±¾:2.0.50727.42
´óÒâ¾ÍÊÇûÓзþÎñÆ÷Éϵ±Ç°IIS½ø³ÌûÓзÃÎÊÔªÊý¾Ý¿âµÄȨÏÞ……ÎÒ¾ÍÄÉÃƶùÁË£¬.NET Framework2.0Ò²×°ÁËѽ£¬Ó¦¸Ã¿ÉÒÔÖ§³Ö.netÁËѽ£¿ÓÚÊÇGoogleһϣ¬·¢ÏÖÓÐÕâÖÖÎÊÌâ
Ïà¹ØÎĵµ£º
asp.net×Ö·û´®½ØȡʵÏÖ´úÂ룬ÐèÒªµÄÅóÓÑ¿ÉÒԲο¼Ï¡£
1£¬°Ñ´úÂë·ÅÔÚsqlhelperÖС£
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
#region ½ØÈ¡×Ö·û´®
/// <summary>
/// ½ØÈ¡×Ö·û´®
/// </summary>
/// <param name="str_value"></param>
/// <param name="str_len"></param>
/// <returns&g ......
private void btnUploadPicture_Click(object sender, System.EventArgs e) { //¼ì²éÉÏ´«ÎļþµÄ¸ñʽÊÇ·ñÓÐЧ if(this.UploadFile.PostedFile.ContentType.ToLower().IndexOf("image") < 0) { Response.Write("ÉÏ´«Í¼Æ¬¸ñʽÎÞЧ£¡"); return; } //Éú³ÉÔͼ Byte[] oFileByte = new byte[this.UploadFile.PostedFile.Conte ......
×î½üÑо¿ÁËÒ»ÏÂtreeview£¬·¢ÏÖÓÐÁ½ÖÖʵÏÖÎÞÏÞ¼¶Ê÷µÄ·½·¨£¬ÎÄ×Ö²»Ïë¶àд£¬Ö±ÈëÖ÷Ìâ¡£
ÏÈ¿´¿´Ð§¹ûͼ£º
ÏÈ¿´¿´Êý¾Ý¿â±íµÄÉè¼Æ£¬Êý¾Ý±íÖ÷Òª°üÀ¨ID£¬Name£¬ParentIDÕâÈýÏÆäÖÐIDÊÇÖ÷¼ü£¬ParentID¶ÔÓ¦½ÚµãµÄ¸¸½Úµã£º
·½·¨Ò»£ºÓõݹé±éÀúÊý¾Ý£¬²¢½«½ÚµãÖð¸öÌí¼Óµ½treeviewÖÐÈ¥¡£
1.ÏȽøÐÐÊý¾Ý¿âÁ¬½ÓºÍÊý¾ÝµÄ¶ÁÈ¡£¬²¢½«¸ù½Ú ......
×î½üÐèÒªÒ»¸öasp.netϵÄÍøÒ³±à¼Æ÷£¬¾¹ý¼¸ÌìµÄ²éÕÒÓëÕûÀí£¬ÖÕÓÚ½«Ö÷ÒªµÄ¼¸¸ö±à¼Æ÷ÕÒÆ룬×Ô¼ºÓùýºó£¬×ÜÖÕһϡ£
1¡¢ Cuteeditordemo£º¹¦ÄÜ×îÇ¿´óµÄÓ¦¸ÃÊÇÕâ¸ö±à¼Æ÷ÁË£¬µ«ÊÇÕâ¸ö±à¼Æ÷±È½ÏµÄ´ó£¬ÓÐ5MB¶à£¬Í¬Ê±ÔËÐÐÆðÀ´Ëٶȷ½ÃæÒ²±È½ÏµÄÂý¡£ÔÚʵ¼ÊµÄʹÓÃÖУ¬¹úÄÚʹÓõÄÈ˲¢²»¶à£¬¶øÇÒÊÇÓ¢ÎÄ°æµÄ¡£Ç¿ÄÜÊÇ×îÇ¿´ó£¬µ ......