November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi,
What do you mean with "it doesn't work"? I guess Episerver's routing is kicking in so if you want to try Owin out you need to do that on a mapped URL.
I mean that the startup file is never run. The breakpoint in there never trigger.
Can Owin only run on a specifc url?
I gues Owin is a module that runs ontop of everything, but you can map a URL to do something like this:
app.Map("/util/logout.aspx", map => map.Run(ctx => { // Do you stuff return Task.FromResult(0); }));
The problem is that the configuration method is never executed as far as I can tell.
I have tried different configs, but so far no luck.
Perhaps some guidance? http://stackoverflow.com/questions/20203982/owinstartup-not-firing
I have the reference to Microsoft.Owin.Host.SystemWeb in the project. I don't think that's the issue, but thanks!
Now I'm trying this with no luck:
public void Configuration(IAppBuilder app) { throw new Exception(); }
Think I fixed it by running it on IIS instead of just pressing F5 in VS.
Johan Björnfot set me on the right track with one of the answers on StackOverflow.
Should work on IIS Express though, we usually use Express in development and Owin works just fine.
Johan: Hmm, strange.
Also, I now uninstalled and reinstalled the owin packages again, and it stopped working again.
I got issues while ago when working with ServiceApi in IIS Express. Routes were not registered and Owin startup was not fired. Sometimes it worked, sometimes it didn't. Switched to IIS with no further issues. I found that clearing IIS Express cache and restarting the service - sometimes might help. Weird thing is this express :)
I've installed the latest version of Alloy from the VS template.
Then I intalled the Microsoft.Owin.Host.SystemWeb package, and created the startup file for owin like this:
I set a breakpoint at the app.run line, just to see if it hits. The file isn't going to contain this code, I just wanted to see if the file was run.
But it doesn't work. Do I have to do any additional setup to get Owin working?