Forum

IIS - System.Compo...
 
Bildirimler
Hepsini Temizle

IIS - System.ComponentModel.Win32Exception: Access is denied hatası

3 Yazılar
2 Üyeler
0 Reactions
3,923 Görüntüleme
(@MustafaCAGLIYAN)
Gönderiler: 2
New Member
Konu başlatıcı
 

Arkadaşlar Selam. Visual Studio C# ile bir portal çalışmam var. Oracle veri tabanına bağlanıp envanter kartlarını listeliyorum. bu envanterlere bağlı dokumanların linklerini Grid View nesnesine getiriyorum. ilgili satır da çalıştır dediğimde linkte bulunan Döküman adresine gidip dökümanları Default program ile çalıştırılmasını sağlıyorum. Bu işlemi tasarım ortamında projeyi derlediğimde herhangi bir problem olmadan çalıştırıyorum. Fakat IIS sunucuya attığımda  " System.ComponentModel.Win32Exception: Access is denied " hatası alıyorum. 

IIS tarafında Yetkiler ile ilgili bir çok şey denedim. Companent Sevices Com Security  tarafında Network Sevices yetkilerini de verdim. ama bir türlü çözüm bulamıyorum. 

İlgilenen arkadaşlara şimdiden çok teşekkür ederim.

dosyaları çalıştırırken Kullandığım Metot  Process.Start    Metodu. 

C# ta çalıştırdığım kod :

txtLink.Text = HttpUtility.HtmlDecode(GVEnvanterRecords.SelectedRow.Cells[4].Text.ToString());
Process.Start(txtLink.Text);

IIS Sunucuda çalıştığında aldığım Hata Açıklaması : 

Server Error in '/' Application.


Access 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.ComponentModel.Win32Exception: Access is denied

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Win32Exception (0x80004005): Access is denied]
   System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +756
   System.Diagnostics.Process.Start() +131
   System.Diagnostics.Process.Start(ProcessStartInfo startInfo) +49
   nskgroup.Teknik_resimDetay.GVEnvanterRecords_SelectedIndexChanged(Object sender, EventArgs e) +148
   System.Web.UI.WebControls.GridView.OnSelectedIndexChanged(EventArgs e) +116
   System.Web.UI.WebControls.GridView.HandleSelect(Int32 rowIndex) +103
   System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +248
   System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +201
   System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9754214
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3562

 

 
Gönderildi : 29/12/2016 14:08

(@birolaydugan)
Gönderiler: 867
Prominent Member
 

IIS_USR , IIS web users için yetkilerinizi kontrol ediniz .

 
Gönderildi : 29/12/2016 19:53

(@MustafaCAGLIYAN)
Gönderiler: 2
New Member
Konu başlatıcı
 

Selamlar. Bu kullanıcılara yetki verdiğim halde malesef çözüm olmuyor. 

 
Gönderildi : 19/01/2017 20:43

Paylaş: