PDA

View Full Version : مشکل با اجرای کد در هاست



baidin
یک شنبه 28 آذر 1395, 18:59 عصر
سلام
من از یک فایل آپلودر برای ckeditor استفاده می کنم و در لوکال به درستی اجرا میشه ولی در هاست اجرا نمیشه و عکس را آپلود نمیکنه:
Server Error in '/' Application.


Access to the path 'C:\inetpub\whosts\.....com\httpdocs\Images\er.png ' 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.UnauthorizedAccessException: Access to the path 'C:\inetpub\whosts\.......com\httpdocs\Images\er.p ng' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.



خواهشا راهنمایی نمایید . سایت را آپلود کردم و مشکل آپلود عکس دارم.

mortezagt
دوشنبه 29 آذر 1395, 08:46 صبح
از طریق کنترل پنل خود هاست،قفل پوشه ای که فایلها توش اپلود میشن رو باز کن.
معمولا جلوی اسم اون فولدر باید ایکون شکل قفل باشه و روش بزن و دسترسی رو باز بزار

baidin
چهارشنبه 01 دی 1395, 10:59 صبح
از طریق کنترل پنل خود هاست،قفل پوشه ای که فایلها توش اپلود میشن رو باز کن.
معمولا جلوی اسم اون فولدر باید ایکون شکل قفل باشه و روش بزن و دسترسی رو باز بزار
دقیقا همینطور بود
متشکرم