Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÅäÖÃASP.NETƽ̨ʱÓöµ½µÄ¡°·ÃÎÊIISÔªÊý¾Ý¿âʧ°Ü¡±


·ÃÎÊ 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һϣ¬·¢ÏÖÓÐÕâÖÖÎÊÌâµÄ»¹²»Ö¹ÎÒÒ»¸ö£¬¿´ÁËÏ£¬Ô­Òò¾ÍÊÇIISºÍ.net Framework2.0°²×°Ë³Ðò·´ÁË£¬ÒòΪÎÒÏÈÇ°Ôø¾­×°¹ýVisualStudio2005£¬ËùÒÔϵͳÀïÏÈ°²×°ÁË.net Framework2.0£¬¶øÕâÑùºóÀ´×°¹ýIISºó£¬.net Frameworkδע²áÏà¹Ø×é¼þ£¬²»ÄܶÔIIS×ö³öÐ޸ģ¬¾Í»á³öÏÖÕâÖÖÇé¿ö£¡
½â¾ö·½·¨£º
µ½C:\WINDOWS\Microsoft.NET\Framework


Ïà¹ØÎĵµ£º

ASP.NETµ÷Óô洢¹ý³Ì

        public static string GetCustomerCName(ref ArrayList arrayCName,ref ArrayList arrayID)
        {
            SqlConnection con=ADConnection.createConnection();
  ......

Asp.net ÖÐGridView¸÷ÖÖÓ÷¨

1.GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò£º
Ч¹ûͼ£º
1.AllowSortingÉèΪTrue£¬aspx´úÂëÖÐÊÇAllowSorting="True"£»
2.ĬÈÏ1Ò³10Ìõ£¬Èç¹ûÒªÐÞ¸ÄÿҳÌõÊý£¬ÐÞ¸ÄPageSize¼´¿É£¬ÔÚaspx´úÂëÖÐÊÇPageSize="12"¡£
3.ĬÈϵÄÊǵ¥ÏòÅÅÐòµÄ£¬ÓÒ»÷GridViewµ¯³ö“ÊôÐÔ”£¬Ñ¡ÔñAllowSortingΪTrue¼´¿É¡£
2.GridViewÑ¡ÖУ¬±à¼­£¬È¡Ïû£¬É¾³ ......

ѧϰasp.net±È½ÏÍêÕûµÄÁ÷³Ì (¶Ô³õѧÕßÓкܺõİïÖú)

Èç¹ûÄãÒѾ­Óн϶àµÄÃæÏò¶ÔÏ󿪷¢¾­Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
¡¡¡¡µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó(OO)ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥!
¡¡¡¡µÚ¶þ²½¡¡¶Ô.NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓÃ³Ì ......

ASP.NETÖÐDataList¿Ø¼þÊôÐÔ

ItemTemplate:ÏîÄ£°æ£¬±ê¼ÇÁËÿÐÐÏÔʾµÄÄÚÈÝ
AlternatingItemTemplate:½»ÌæÏîÄ£°æ£¬¿ÉÉèÖý»ÌæÐÐÏÔʾ²»Í¬µÄ·ç¸ñ£¬²»ÉèÖÃʱ£¬ÓëÏîÄ£°æÏàͬ
SelectedItemTemplate:Ñ¡ÖÐÄ£°æ£¬ÉèÖÃÑ¡ÖкóµÄÌØÊâÑùʽ
EditItemTemplate:±à¼­ÏîÄ£°æ
HeaderTemplateºÍFooterTemplate£ºÒ³Ã¼ºÍÒ³½ÅµÄÄ£°æ
SeparatorTemplate£º·Ö¸ô·ûÄ£°æ£¬Ò»°ãÓà ......

´ø±à¼­µÄÏÂÀ­¿òasp.net

ÐÞ¸ÄÁË´Ó£ºhttp://www.cnblogs.com/ejiyuan/archive/2007/11/09/954325.htmlµÄÒ»ÅúÎÄÕ Éú³ÉÁË¿ÉÒÔÔÚGridviewÀïÃæµ÷ÓõÄCombBox¿Ø¼þ£¬ÊÇ»ùÓÚAjaxµÄ¡£
    ¶ÀÁ¢Ê¹ÓÃʹÓ÷½Ê½£¨£©£º  <Com:ComboBox ID="ComboBox2" runat="server" Independent="true"  Width="80px" EnableViewState="true"> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ