Hi. I have now got the module working in a c# web application running in IIS. However I am finding the delay associated with ImportPSModule very significant when it is needing to be done for each hit. Is it possible to load ExchangeOnlineManagement as an IIS module so that it is already loaded for the application and there would be no need to load it explicitly through the application code each time a connection is needed? I have tried adding ExchangeOnlineManagement as a managed module in IIS but that causes IIS to generate an error:
Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x5215df96
Faulting module name: KERNELBASE.dll, version: 6.3.9600.19724, time stamp: 0x5ec5262a
Exception code: 0xe0434352
Perhaps I am not loading the module correctly? or perhaps it cannot be loaded through the IIS configuration the way I am attempting.
Any advice would be appreciated?