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

asp.netÖÐwordתhtmlÅöµ½µÄȨÏÞÒì³£ÎÊÌâ


¼ìË÷ COM À๤³§ÖÐ CLSID Ϊ {000209FF-0000-0000-C000-000000000046} µÄ×é¼þʱʧ°Ü£¬Ô­ÒòÊdzöÏÖÒÔÏ´íÎó: 80070005¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆڼ䣬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.UnauthorizedAccessException: ¼ìË÷ COM À๤³§ÖÐ CLSID Ϊ {000209FF-0000-0000-C000-000000000046} µÄ×é¼þʱʧ°Ü£¬Ô­ÒòÊdzöÏÖÒÔÏ´íÎó: 80070005¡£
ASP.NET δ±»ÊÚȨ·ÃÎÊËùÇëÇóµÄ×ÊÔ´¡£Ç뿼ÂÇÊÚÓè ASP.NET ÇëÇó±êʶ·ÃÎÊ´Ë×ÊÔ´µÄȨÏÞ¡£ASP.NET ÓÐÒ»¸öÔÚÓ¦ÓóÌÐòûÓÐÄ£ÄâʱʹÓõĻù½ø³Ì±êʶ(ͨ³££¬ÔÚ IIS 5 ÉÏΪ {MACHINE}\ASPNET£¬ÔÚ IIS 6 ÉÏΪÍøÂç·þÎñ)¡£Èç¹ûÓ¦ÓóÌÐòÕýÔÚͨ¹ý <identity impersonate="true"/> Ä£Ä⣬Ôò±êʶ½«ÎªÄäÃûÓû§(ͨ³£Îª IUSR_MACHINENAME)»ò¾­¹ýÉí·ÝÑéÖ¤µÄÇëÇóÓû§¡£
Òª½« ASP.NET ·ÃÎÊȨÏÞÊÚÓèij¸öÎļþ£¬ÇëÔÚ×ÊÔ´¹ÜÀíÆ÷ÖÐÓÒ»÷¸ÃÎļþ£¬Ñ¡Ôñ“ÊôÐÔ”£¬È»ºóÑ¡Ôñ“°²È«”Ñ¡Ï¡£µ¥»÷“Ìí¼Ó”Ìí¼ÓÊʵ±µÄÓû§»ò×顣ͻ³öÏÔʾ ASP.NET ÕÊ»§£¬Ñ¡ÖÐËùÐè·ÃÎÊȨÏÞ¶ÔÓ¦µÄ¿ò¡£
¶ÔÓÚÕâ¸öÎÊÌâ,ÍøÉÏÓм¸ÖÖ½â¾ö·½°¸,ÆäÖÐ×îÖ÷ÒªÓжþÖÖ£º
1¡¢Ò»ÖÖ¾ÍÊÇÔÚweb.configÎļþÖÐÅäÖÃ
<identity impersonate="true" userName="administrator" password="123"/>
2¡¢µÚ¶þÖÖ¸úµÚÒ»Öֲ¶à,ÊÇÅäÖÃdcomnfg,DCOM×é¼þ(WORD×é¼þ)µÄ·ÃÎÊȨÏÞ
Õâ¶þÖÖ·½·¨¶¼Éæ¼°µ½ÁË·þÎñÆ÷µÄÓû§ÃûºÍÃÜÂë,¶øÎÒÓöµ½µÄÎÊÌâÊDz»ÐèÒªÖªµÀ·þÎñÆ÷µÄÃÜÂëÈ´ÒªÈÃASP.NET³ÌÐòÓзÃÎÊȨÏÞ,
3¡¢×îÖÕ½â¾ö·½·¨£º
ºÜ¼òµ¥,Ö»ÐèÔÚIISÖÐÄãµÄWEB¹¤³ÌÉÏÃæÓÒ»÷>ÊôÐÔ>Ŀ¼°²È«>µã»÷"ÄäÃû·ÃÎʺÍÉí·ÝÑéÖ¤"Öеã»÷"±à¼­">ÔÚµ¯³öµÄ"Éí·ÝÑéÖ¤·½·¨"¶Ô»°¿òÖÐ,
½«"¼¯³É Windows Éí·ÝÑéÖ¤(N)"Ñ¡ÉϾÍOKÁË
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/atlim/archive/2009/10/11/4654366.aspx


Ïà¹ØÎĵµ£º

asp.netÒ³Ãæ»Ø´«Óëjsµ÷Ó÷þÎñ¶Ëʼþ£¬PostbackµÄÔ­Àí

 
Asp.net ÖÐÔÚ¿Í»§¶Ë´¥·¢·þÎñÆ÷¶Ëʼþ·ÖΪÁ½ÖÖÇé¿ö£º
Ò».   WebControlsÖеÄButton ºÍHtmlControlsÖеÄTypeΪsubmitµÄHtmlInputButton
ÕâÁ½ÖÖ°´Å¥×îÖÕµ½¿Í»§¶ËµÄ±íÏÖÐÎʽΪ£º<input type="submit" value="Submit">£¬ÕâÊÇForm±íµ¥µÄÌá½»°´Å¥£¬µã»÷ÒÔºó»á×÷Ϊ²ÎÊý·¢Ë͵½·þÎñ¶Ë£¬²ÎÊýÊÇÕâÑùµÄ£º
¿Ø¼ ......

asp.net´Ósql server2005ÖвéѯÊý¾Ý

 Ê×ÏÈÒªÌí¼Ó
using System.Data;
using System.Data.SqlClient;    
½ÓÏÂÀ´£º
          SqlConnection conn = new SqlConnection("server=QLPC\\SQL2005;uid=sa;pwd=£¨ÄãµÄÃÜÂ룩;database=£¨ÄãµÄÊý¾Ý±í£©");     &n ......

ASP.NETÎļþÏÂÔغ¯ÊýʹÓÃ

 ASP.NETÎļþÏÂÔغ¯ÊýʹÓÃÊÇʲôÇé¿öÄØ£¿ÔÚÄãµÄPage_LoadÖÐÌí¼ÓÕâÑùµÄ´úÂë:
Page.Response.Clear();
bool success = ResponseFile(Page.Request, Page.Response, "Ä¿µÄÎļþÃû³Æ", @"Ô´Îļþ·¾¶", 1024000);
if (!success) Response.Write("ÏÂÔØÎļþ³ö´í£¡"); Page.Response.End();
ASP.NETÎļþÏÂÔغ¯Êý´úÂëΪ: ......

ÔÚASP.NETÖÐʵÏÖÈçºÎÏÂÔØtxt¼°xmlÎļþµÄ·½·¨

string destFileName = "ok.txt";
            destFileName = Server.MapPath(".") + "\\"+destFileName;
            destFileName = Server.UrlDecode(destFileName);
    &nbs ......

ASP.NET°²È«ÈÏÖ¤ ËÄ

——ÇÉÃîʵÏÖ Form ±íµ¥ÈÏÖ¤¿çÕ¾µã¡¢¿ç·þÎñÆ÷µÄµ¥µãµÇ¼£¨Single Sign On£©
×÷Õߣºº®Óð·ã(cityhunter172)
µÚËIJ¿·Ö Form ÈÏÖ¤µÄ²¹³ä
Ç°ÈýƪÔÚ CSDN ÂÛ̳¹«²¼ºó£¬Ð§¹ûÈçͬ“ÉñÏÉ·Åƨ——¹ûÈ»²»Í¬·²£¨·´£©Ï씡£Îª¸Ðл¹ã´óÍøÓѵÄÈÈÇéÓëÖ§³Ö£¬Õâ²»£¬¾­¹ýÕâÒ»Õó×ÓµÄÔÍÄð¡¢ÐÞÁ¶£¬ÌØÒâ×¼±¸ÁËÕâµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ