Forum
Merhabalar,
Ben serverımda bulunan sitemin içinde PDF isimli bir klasör oluşturdum bu klasör içinde de word dosyaları bulunmaktadır.Sitede bu dosyaları okumaya çalıştığımda
Server Error in '/' Application.
Access to the path 'c:\inetpub\vhosts\holidaylines.com\httpdocs\PDF\ReservationDetails-57.doc' 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\vhosts\holidaylines.com\httpdocs\PDF\ReservationDetails-57.doc'
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) 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
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.
Şeklinde bir hata almaktayım.Asp.net projesi üzerinde klasör izinleri tam yetki var ama hala aynı hatayı almaktayım bu konuyla ilgili yardımlarınızı rica ediyorum.
İlginiz için teşekkürler
Merhabalar,
Yayinlamaya calistiginiz PDF dosyalarinin bulundugu paylastirilmis klasor uzerinde paylasim izinlerinden (Sharing tab) Everyone : Read yetkisi verin. Security tabina gecerek NTFS izinlerinden de Network Service hesabina Read & Execute yetkisi verin.
Tekrar test ederseniz sorunsuz gelmesi gerekiyor.
İyi çalışmalar,
Mesut Aladağ.
Microsoft MVP, MCT
Server Error in '/' Application.
Access to the path 'D:\Webroot\****************************\personel.xls' 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 'D:\Webroot\Yunus Emre
Vakfi-109784119\sarajevo.yeebilgisistemi.org\wwwroot\turkce\personel.xls'
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
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.
Source Error:
|
Source File: d:\webroot\yunus emre vakfi-109784119\sarajevo.yeebilgisistemi.org\wwwroot\turkce\personel.aspx.cs Line: 476
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022
YARDIMLARINIZI BEKLİYORUM.