الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكلة في كود تشغيل exe بعد الرفع

بدأه easy_3a3 في 20 أغسطس 2011 · 3 رد · 839 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

مشكلة في كود تشغيل 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()

#3

يعني اخي ايش اعمل

#4

السلام عليكم ورحمة الله

حتى لو فرضنا انك تمتلك الصلاحيات لتشغيل هذا البرنامج فعند الشتغيل سيعمل على سيرفر الاستضافة وليس على جهاز الكلينت . وعلى جهازك يعمل لانه هو السيرفر والكلينت في نفس الوقت فلو جربت من جهاز آخر فلن يعمل او قد تراه يعمل على السيرفر .

مواضيع مشابهة