Forum

Windows server 2008...
 
Bildirimler
Hepsini Temizle

Windows server 2008 de Access denied hatası

3 Yazılar
3 Üyeler
0 Reactions
2,475 Görüntüleme
(@uygurkubra)
Gönderiler: 11
Active Member
Konu başlatıcı
 

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

 
Gönderildi : 18/03/2011 20:23

(@mesutaladag)
Gönderiler: 327
Reputable Member
 

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


 

 
Gönderildi : 18/03/2011 20:41

(@sehmuzaltin)
Gönderiler: 2
New Member
 

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:

Line 474:
Line 475:        string htmlmarkup = strWriter.ToString();
Line 476:        FileStream fs = new FileStream(Server.MapPath("personel.xls"), FileMode.Create);
Line 477:        //FileStream fs = new FileStream(Server.MapPath("personel.xls"), FileMode.Create, FileAccess.Read);
Line 478:        try

Source File: d:\webroot\yunus emre vakfi-109784119\sarajevo.yeebilgisistemi.org\wwwroot\turkce\personel.aspx.cs    Line: 476

Stack Trace:

[UnauthorizedAccessException: Access to the path 'D:\Webroot\Yunus Emre Vakfi-109784119\sarajevo.yeebilgisistemi.org\wwwroot\turkce\personel.xls' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +9727326
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) +1142
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +78
   System.IO.FileStream..ctor(String path, FileMode mode) +71
   turkce_personel.GridExceleDonussun(DataTable dtData) in d:\webroot\yunus emre vakfi-109784119\sarajevo.yeebilgisistemi.org\wwwroot\turkce\personel.aspx.cs:476
   turkce_personel.tumindir_Click(Object sender, ImageClickEventArgs e) in d:\webroot\yunus emre vakfi-109784119\sarajevo.yeebilgisistemi.org\wwwroot\turkce\personel.aspx.cs:196
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
   System.Web.UI.WebControls.ImageButton.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) +5563


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022

YARDIMLARINIZI BEKLİYORUM.

 

 
Gönderildi : 21/02/2014 20:30

Paylaş: