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 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.

Hope that helps



Jason Kulatunga

Build Automation & Infrastructure guy @Adobe. I write about, and play with, all sorts of new tech. All opinions are my own.

San Francisco, CA

Subscribe to Sparktree

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!