PDA

View Full Version : اجرا نشدن برنامه اسیموال در سرور



saeed31641
چهارشنبه 08 مهر 1394, 19:57 عصر
سلام مشکلی که من بر خوردم اینکه که گزارشاتمم در سیستم خودم در iis درست اجرا میشه ولی زمانی که به سرور انتقال داده میشه روی هاست خطای erro 500:
Internal not server میده
جالب اینه من روی ه هاست روشه تریس کردن با محیط ویژال درست کار میکنه ولی همنیه که روی iis سرور میزارم کار نمیکنه خطا میده.
حالا با کتابخانه elmah خطا شو گرفتم این خطا رو میده
خطا:


System.UnauthorizedAccessExceptionAccess to the path 'Stimulsoft' is denied.
System.UnauthorizedAccessException: Access to the path 'Stimulsoft' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

کد های برنامه


StiReport report = new StiReport();
string xsltPath = Path.Combine(System.Web.HttpContext.Current.Server .MapPath(@"~/Areas/RepUser/"), "ListLab.mrt");

report.Load(xsltPath);

StiConfig.Save();

string CnnStr = ConfigurationManager.ConnectionStrings["labado"].ConnectionString;

report.Dictionary.Databases.Clear();


report.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("cnlablist", CnnStr));
......

fakhravari
پنج شنبه 09 مهر 1394, 21:52 عصر
کدای بایند کردنت بزار

saeed31641
جمعه 10 مهر 1394, 07:58 صبح
من کد رو. به اینت رو.ش اصلاح کردم جواب داد
StiReport report = new StiReport();
string xsltPath = Path.Combine(System.Web.HttpContext.Current.Server .MapPath(@"~//Areas//RepUser//"), "ListLab.mrt");


report.Load(xsltPath);