Developer Forum »
Converting Webnodes to run as WebApp
20 posts

Are there any special instructions on how to convert Webnodes to run as a Web Application (and not Website) ?

 

/N

120 posts

There is a function in the menu found in the setup utility under "Tools" called "Convert Website to Web Application". With this the setup will try to convert an existing website to a web application. This involves adding .designer files and creating a suitable project file. Make sure you update the site to the latest version first. (You will get a warning if you do not.)

The conversion is not always 100%, and it is likely you will need to make some manual changes to the project afterwards before it compiles, but it should save you a lot of time. Unlike websites, web application projects requires that every public class has a unique name, this includes page classes found in code behind files of aspx files. Quite often you will need to rename some of the page classes, but that's about it.

PS: We've also added support for MVC applications, but there is no automatic conversion here. To get going with MVC start with the new MVC example application found in the setup utility.

Ole

20 posts
Picture

Just wanted to let you know that it worked out fine! I had to manually resolve some problems, and delete a WAF/...../old folder - but everything seems to be in good shape now.

Working with a WebApp is so much nicer than Websites - especially allowing for greater reuse of code - and also much faster compilation times!

Good work guys!!

 /N

 

 

 

20 posts

One issue that I have experienced is that upon Rebuild - the entire bin directory is wiped clean. This is where WAF.dll and all the other Webnodes DLL's are located.

I solved this by copying these DLL's into a separate folder, and linking them into the Webnodes WebApp project. Whenever I update Webnodes later on (new WAF.DLL etc.) I will have to remember to save these DLL's to my separate folder - so I don't loose them upon the next Rebuild.

120 posts

Thanks for letting us know. Next update will improve on this!

1