Quantcast
Channel: Troubleshooting
Viewing all articles
Browse latest Browse all 1814

Accessing windows application through WCF service under IIS

$
0
0

I am developing a system where user interacts with WCF Service hosted in IIS server. The WCF application then have to fire-up winform application along with some parameters. This winform application do some processing and then load a application(software) installed in the server. This application will create some output documents and put it in the share-able folder where user has a access to. 

It is working fine in development environment i.e. output was being created but when I deployed it in IIS, it started throwing error:

System.UnauthorizedAccessException

I tried loading the WinForm using two methods:

  1. Winform is loaded creating a instance of WinForm from WCF host
  2. Instance of WinForm is loaded (.EXE) using System.Process.Start()

Both operation failed. I tried giving AppPool "Local System" identity but doind that It started throwing me visual studio runtime excpetion "An unhandled exception of type "System.Runtime.InteropServices.COMException' ". I tried converting the program into x86 too but it did not work. But when I run the application independently, it is working fine.


Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>