general error c101008d…

本文探讨了VC编译过程中出现的特定错误“mt.exe:generalerrorc101008d”,并提供了几种可行的解决方案,包括调整项目属性设置及关闭杀毒软件等方法。
警告较为简单,主要是使用了原来RTL中字符串处理函数如strcpy等现在被认为不安全的函数造成的。 

而错误就让人纳闷了,该错误为: 

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\Release\jiaoshi.exe". f 
最终原因 已查明见最后一部分
上网找了一下,只有英文网页有相关讨论,懒得去翻译了。中文网页中倒是有一个,而且有解决办法,那就是在项目属性——配置属性——链接器——清单文件中, 把生成清单改成否就行了。 

经过进一步的探索,发现在项目属性——配置属性——清单工具——输入和输出中,把嵌入清单改成否也行。 

然而,问题虽然解决了,原因却还不明。因为,既然生成清单和嵌入清单是微软的默认设置,为什么却会出现错误呢?第一种方法的作者认为清单是.net程序 (托管程序)需要的,所以去掉后便能正常生成了,然而后一种方法仍然生成了清单,而且也能正常运行又作何解,而且微软的说明中也没有提到清单只是为CLR 程序准备的,而是应该所有程序都要加上清单。 

更新:还有一种更简单的方法:如果编译前将所有打开的与该项目有关的文件都关掉,也可以解决问题。

最终原因 已查明
由于VC需要把生成的文件中嵌入MANIFEST文件,而由于杀毒软件之类的会握有这个文件句柄(因为杀毒软件
发现这个EXE,DLL正在读写),于是VC就写不进去了,方法是暂时关闭杀毒软件,这样就不用
改写MANIFECT
我用的是瑞星杀毒软件,有这个问题.
Hi,

This might be due to antivirus holding open handle on the exe generated and thus when VS tries to embed the manifest it fails with access denied. 
Is Antivirus running on your machine? Does this repro with Antivirus turned off?

If above is not the case can you provide us with a repro.

Thanks,

VC++ Team

<html> <head> <title>Draw a transient circle or rectangle</title> <script type="text/javascript" src="https://df-prod.autocad360.com/jsapi/v3/Autodesk.AutoCAD.js "> </script> <script type="text/javascript"> // Some point information, as populated by user prompting var pt0 = new Array(); var pt1 = new Array(); var pt2 = new Array(); var pt3 = new Array(); function drawRec() { var firstPoint, secondPoint; // Prompt for the user for the first point var options = new Acad.PromptPointOptions("Specify the first point of the rectangle: "); Acad.Editor.getPoint(options).then(onFirstPoint,error); // If the first point was successful, prompt the user for a second point function onFirstPoint(arg) { var obj = arg; firstPoint = obj.value; // Prompt for the user for the second point var options = new Acad.PromptPointOptions("Specify the opposite corner of the rectangle: "); Acad.Editor.getPoint(options).then(onSecondPoint,error); } // If an error occurred, display a general error message function error() { alert("Invalid point specified."); } // If both points were successfully specified, then draw the rectangle function onSecondPoint(arg) { var obj = arg; secondPoint = obj.value; // Draw the rectangle Acad.Editor.executeCommand("RECTANG", firstPoint.x + "," + firstPoint.y, "", secondPoint.x + "," + secondPoint.y, ""); } } </script> <style type="text/css"> td, body { font-family: sans-serif; font-size: 10pt; } body { background-color: #686868; padding: 0; margin: 5px 5px 5px 5px; color: #FFF; } textarea { font-family: Consolas; font-size: 8pt; } </style> </head> <body> <!-- Create a tabular UI with headings and comboboxes --> <h3>Transient circle or rectangle</h3> <table border="0"> <tr> <th> </th> <td> <input type='button' style="width: 220px" onclick='drawRec()' value='Draw Rectangle Transient' /> </td> </tr> </table> </body> </html> 为啥这段代码最后的Acad.Editor.executeCommand("RECTANG", firstPoint.x + "," + firstPoint.y, "", secondPoint.x + "," + secondPoint.y, "");没有效果,其他都是有效果的
07-18
zzz@zzz-virtual-machine:/home/11/Chapter4/实战18 WebLogic任意文件上传漏洞$ curl -v http://192.168.20.128:32788/ws_utc/config.do * Trying 192.168.20.128:32788... * Connected to 192.168.20.128 (192.168.20.128) port 32788 (#0) > GET /ws_utc/config.do HTTP/1.1 > Host: 192.168.20.128:32788 > User-Agent: curl/7.81.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Tue, 02 Dec 2025 15:53:59 GMT < Content-Length: 5912 < Content-Type: text/html;charset=UTF-8 < Set-Cookie: JSESSIONID=yj3fxUisbdX7VPXYW_yPUVhc1kTosX59ygzuEL6LJ_pQi0dUAVJj!-1959541400; path=/; HttpOnly < <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- * * Copyright (c) 2005,2013, Oracle and/or its affiliates. All rights reserved. * --> <html documentType="html4-loose" lang="en_US"> <head> <title>settings</title> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <link href="css/tc-brand.css" type="text/css" rel="stylesheet"> <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta HTTP-EQUIV="Expires" CONTENT="-1"> <script language="JavaScript" src="js/jquery/jquery-latest.min.js" type="text/javascript"></script> <link href="css/jquery_theme/smoothness/jquery-ui-latest.custom.css" type="text/css" rel="stylesheet"> <script language="JavaScript" src="js/jquery/jquery-ui-latest.custom.min.js" type="text/javascript"></script> <script language="JavaScript" src="js/tc/common.js" type="text/javascript"></script> </head> <body> <div id="tc_container"> <div> <table width="100%" role="presentation" summary=""> <tr> <td width="40px"> <a id="skip-link" href="#mainContentStart">Skip to main content</a> <a href="http://www.oracle.com/" target="_top"> <img src="images/oracle-logo-small.png" alt="Oracle logo" style="border: 0pt none; margin: 2px 2px 2px 5px; padding: 0pt;" align="left" border="0" height="33" width="33"> </a> </td> <td valign="bottom"> <span class="pageheader tc_background">settings</span> </td> </tr> </table> </div> <div id='linetable'> <table cellspacing="0" cellpadding="0" width="100%" border="0" role="presentation" summary=""> <tr> <td class="ltgrayline"><img src="images/sp.gif" height="1" width="1" alt=""></td> </tr> </table> </div> <div id="tc_menu"> <table cellspacing="0" cellpadding="0" width="90%" border="0" align="center" role="presentation" summary=""> <tr> <td></td> </tr> </table> </div> <div id="tc_mainContent" style="display:none"> <div id="tc_sidebar"> <div id='tc_setting_menu_container'> </div> </div> <div id="tc_content"> <a name="mainContentStart" id="mainContentStart" tabindex="-1"></a> <div id="tc_setting_panel_container"></div> </div> <div> </div> </div> <div id="tc_footer"> <div id="footer"> <span><a href="#top" title="Back to Top"> <img src="images/sp.gif" height="20" width="21" border="0" alt="Back to Top" class="backtotoff" onmouseover="className='backtoton'" onmouseout="className='backtotoff'"></a></span> <p> <!-- f:message bundle='javax.servlet.jsp.jstl.fmt.LocalizationContext@5bd4e594' key='label_major_version' />: <br> Build ID: <br--> Copyright 2013 ©,2013, Oracle and/or its affiliates. All rights reserved.</p> </div> </div> </div> <script type="text/javascript"> var defaultType = ''; var localizedMap={}; localizedMap['label_choose_wsdl_recent']='Recent WSDL Files'; localizedMap['label_choose_wsdl_available']='Available WSDL Files'; localizedMap['title_remove_previous_wsdl']='Remove wsdl from cached list'; localizedMap['label_wsdllist_hide']='Hide WSDL List'; localizedMap['label_wsdllist_show']='Show WSDL List'; localizedMap['label_setting_menu_item_general']='General'; localizedMap['label_setting_menu_item_proxy']='Proxy'; localizedMap['label_setting_menu_item_security']='Security'; localizedMap['label_setting_menu_item_general_desc']='General Setting'; localizedMap['label_setting_menu_item_proxy_desc']='Proxy Setting'; localizedMap['label_setting_menu_item_security_desc']='Security Setting'; localizedMap['label_section_key_store_list']='Saved JKS Keystores'; localizedMap['label_section_key_store_name']='Setting Name'; localizedMap['label_section_key_store_filename']='Keystore File'; localizedMap['label_section_key_store_password']='Keystore Password'; localizedMap['label_section_key_store_do_not_save_password']='Do not save password in product env.'; localizedMap['label_section_no_key_store_password']='No pre-defined password'; localizedMap['label_section_no_key_store']='No pre-defined key store setting'; localizedMap['label_setting_title_add_keystore']='Add Keystore Setting'; localizedMap['label_setting_title_edit_keystore']='Edit Keystore Setting'; localizedMap['label_setting_action_add']='Add'; localizedMap['label_setting_action_edit']='Edit'; localizedMap['label_setting_action_remove']='Remove'; localizedMap['label_setting_action_cancel']='Cancel'; localizedMap['label_setting_action_cancel_edit']='Cancel Edit'; localizedMap['label_setting_action_submit']='Submit'; localizedMap['label_setting_action_submit_edit']='Submit Edit'; localizedMap['label_setting_is_not_valid']='is not valid'; localizedMap['label_setting_save_success']='Save successfully'; localizedMap['label_setting_menu_item_display']='Display information'; localizedMap['please_input_the_correct_host_name']='Please input the correct host name.'; localizedMap['please_input_the_correct_port_name']='The port number must be greater than zero, please input the correct port number.'; </script> <script language="JavaScript" src="js/tc/param_ui_render.js" type="text/javascript"></script> <script language="JavaScript" src="js/tc/setting.js" type="text/javascript"></script> <script language="JavaScript" src="js/tc/setting_security.js" type="text/javascript"></script> </body> </html> * Connection #0 to host 192.168.20.128 left intact zzz@zzz-virtual-machine:/home/11/Chapter4/实战18 WebLogic任意文件上传漏洞$ curl -v http://192.168.20.128:32788/ws_utc/css/index.html * Trying 192.168.20.128:32788... * Connected to 192.168.20.128 (192.168.20.128) port 32788 (#0) > GET /ws_utc/css/index.html HTTP/1.1 > Host: 192.168.20.128:32788 > User-Agent: curl/7.81.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 404 Not Found < Date: Tue, 02 Dec 2025 15:54:08 GMT < Content-Length: 1164 < Content-Type: text/html; charset=UTF-8 < <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"> <HTML> <HEAD> <TITLE>Error 404--Not Found</TITLE> </HEAD> <BODY bgcolor="white"> <FONT FACE=Helvetica><BR CLEAR=all> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all> <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 404--Not Found</H2> </FONT></TD></TR> </TABLE> <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3> </FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.5 404 Not Found</H4> </FONT><P><FONT FACE="Courier New">The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.</p><p>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.</FONT></P> </FONT></TD></TR> </TABLE> </BODY> </HTML> * Connection #0 to host 192.168.20.128 left intact zzz@zzz-virtual-machine:/home/11/Chapter4/实战18 WebLogic任意文件上传漏洞$
最新发布
12-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值