Greetings all, I need a bit of advice/help with this.
Been struggling with Office365 for business for two weeks now. I have a working example running in blank Web Forms project which I am trying to ported into DNN module (based on Chris Hammond template).
The very first problem was:
Exception: No owin.Environment item was found in the context.
From my understanding had something to do with DNN not being able find/run Startup.cs. So, I thought that I wasn't allowed to have Startup.cs in the module and I was proven wrong. DNNChat module also uses Startup.cs to reference SignalR.
After I flipped owin:AutomaticAppStartup value from false to true in DNNs web.config I started to have issues with Microsoft.Owin.Security 184.108.40.206 library not being found.
Adding some assembly bindings to DNNs web.config to reflect update dll's solved that issue and I am now able to run the module inside DNN.
But when I click on Sign In button I get redirected to my website home page not to the https://login.windows.net as I would expect. So I though maybe its FriendlyURL engine, nope, disabling Friendly URLs didn't help.
And now I am sitting here thinking that DNN must be hijacking HttpContext in some way.
Any one have any suggestion where I should look next?