Forum

IIS de ASP.net ile ...
 
Bildirimler
Hepsini Temizle

[Çözüldü] IIS de ASP.net ile networkteki dosyalara erişme

2 Yazılar
2 Üyeler
0 Likes
2,843 Görüntüleme
(@eroldursun)
Gönderiler: 2171
Famed Member
Konu başlatıcı
 

Arkadaşlar ;

IIS 8 deki uygulamamız networkteki farklı bir file server paylaşımına erişmek istiyor ama yetki hatası veriyor.

Anladığım kadarıyla asp.net ilgili yere erişemiyor.

İlgili klasöre ve dosyalara security tabından IIS makina adına okuma yetkisi verince erişim gerçekleşiyor.

Şimdi bu erişim yapan IIS cihazı bu paylaşıma domain userlarımdan biri ile eşleştirip onunla bağlantı kurmasını istiyorum.

nereyi nasıl değişmek gerek.

 

 

Exception Details: System.UnauthorizedAccessException: Access to the path '\\server\paylasim\dosya.pdf' 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.

 
Gönderildi : 31/03/2021 23:03

(@serkanates)
Gönderiler: 1288
Üye
 

Günaydın;

Aslında istisna logunda sizi yönlendriyor. Web.config ve "identity impersonate" tagini taklip ederseniz sizi cevaba götürecektir. http://www.csharpnedir.com/articles/read/?id=485 adresindeki bilgiler de faydalı olacaktır.

İyi çalışmalar.

 
Gönderildi : 01/04/2021 07:48

Paylaş: