السلام عليكم
مشكلة في كود تشغيل exe بعد الرفع
عملت كوم بشتغل عادي قبل رفع الموقع لكن لما ارفع المموقع بيعطيني هاي المسج
Access is denied
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: Access is denied
Source Error:
Line 7: p.StartInfo.FileName = Server.MapPath("naeema.exe")
Line 8:
Line 9: p.Start()
Line 10:
Line 11: End Sub
Source File: d:\DZHosts\LocalUser\abdamh\www.abdmoh.somee.com\Default.aspx.vb Line: 9
Stack Trace:
[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +614
System.Diagnostics.Process.Start() +56
_Default.Button1_Click(Object sender, EventArgs e) in d:\DZHosts\LocalUser\abdamh\www.abdmoh.somee.com\Default.aspx.vb:9
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
===============================================
السلام عليكم
مشكلة في كود تشغيل exe بعد الرفع
عملت كوم بشتغل عادي قبل رفع الموقع لكن لما ارفع المموقع بيعطيني هاي المسج
Access is denied
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: Access is denied
Source Error:
Line 7: p.StartInfo.FileName = Server.MapPath("naeema.exe")
Line 8:
Line 9: p.Start()
Line 10:
Line 11: End Sub
Source File: d:\DZHosts\LocalUser\abdamh\www.abdmoh.somee.com\Default.aspx.vb Line: 9
Stack Trace:
[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +614
System.Diagnostics.Process.Start() +56
_Default.Button1_Click(Object sender, EventArgs e) in d:\DZHosts\LocalUser\abdamh\www.abdmoh.somee.com\Default.aspx.vb:9
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
مع العلم هذا هو الكود
Dim p As New Process
p.StartInfo.FileName = Server.MapPath("co.exe")
p.Start()



