Amazon EC2 + DotNetOpenAuth + Elastic Beanstalk = Url Rewrite Hell (fix)

This is the fix for the dotnetopenauth.aspnet module not working on an amazon ec2 instance that was published out using beanstalk. The web deploy folder + url rewriting rules that amazon places in the web config confuse the module and it dies. The following issue https://github.com/DotNetOpenAuth/DotNetOpenAuth/issues/35 in github references it, but no fix is avaliable at this time.

You can deploy your project to the root and then we won’t put any IIS URL rewrite rules in the web.config. In Visual Studio right click on your project and select “Package/Publish Settings” and then in the field “IIS Web site/application name to use on the destination server:” change it from “Default Web Site/_deployed" to just "Default Web Site/".

By the way, questions about Visual Studio deployment are more likely to be answered faster in the AWS .NET Forums. https://forums.aws.amazon.com/forum.jspa?forumID=61

Hope that helps

Norm

from https://forums.aws.amazon.com/thread.jspa?messageID=330957

Jason Kulatunga

Devops & Infrastructure guy @Gusto (ex-Adobe). I write about, and play with, all sorts of new tech. All opinions are my own.

San Francisco, CA blog.thesparktree.com

Subscribe to Sparktree

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!