So, I fired up the IDE and opened my existing solution which contained about 6 projects in them including a Website and the rest as class libraries. It opened up the conversion wizard and asked me if I would like to create a backup. I said yes and proceeded. That is where my trouble started. Once the conversion was done I tried building the solution and the compiler threw the following error:
Error 46 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
I was using the development server and no IIS. And no clue about how to configure a website in the the development server as an application. After scavenging through tons of Google Results I came across a post that mentioned the following:
I don’t understand why, but when I have a web.config file defined within the individual application directories, I receive the error described the the person initiating this thread. Removing the web.config file fixed the problem for me. With that said, it is also important to define the applications virtual directory as a web app, the the last forum post explained.
Hmmm.. having read that the backup I created on conversion came across my mind. It was inside the website folder like this:
The backup folder also had a copy of the Web.Config file inside it. That was it. I moved the backup folder elsewhere and tried rebuilding the solution and voila,
========== Build: 6 succeeded or up-to-date, 0 failed, 0 skipped ==========