Deploy site from a Visual Studio Soultion

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/1/2011 12:34:27 PM
Gravatar
Total Posts 199

Deploy site from a Visual Studio Soultion

I have a Visual Studio 2010 solution along with tortoise HG that I use to get updated code and create custom features - it all works and builds fine.

I assume that the web directory is what gets deployed to my hosting provider, but it differs from the packaged code so I want to be sure if I have to run a "BUILD - CLEAN MOJOPORTAL.WEB.

For example the packaged download in the "App_MasterPages" does not have .cs files but my built solution does.

thanks in advance.

9/1/2011 12:57:32 PM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Deploy site from a Visual Studio Soultion

Joe explains the process that he uses to make the deployment packages here.

9/1/2011 2:13:31 PM
Gravatar
Total Posts 199

Re: Deploy site from a Visual Studio Soultion

Thanks Aaron - I tried the steps listed and only have one issue hopefully you can help.  I select the mojoPortal.Web project and publish to a an empty folder.  Publishing FAILS due to a dll file not being found called "log4net.dll"

Error 1 Copying file bin\log4net.dll to obj\Release\Package\PackageTmp\bin\log4net.dll failed. Could not find file 'bin\log4net.dll'.  0 0 mojoPortal.Web

Do I need that file??

any ides??

9/1/2011 2:21:07 PM
Gravatar
Total Posts 199

Re: Deploy site from a Visual Studio Soultion

when I pull the changes from tortoise HG and then update I see the log4net.dll in my visual studio with a warning icon and that dll is not in the bin directory when I look.

I am thinking that tortoise HG is not pulling down that dll or I am doing something incorrectly.

9/1/2011 3:07:50 PM
Gravatar
Total Posts 199

Re: Deploy site from a Visual Studio Soultion

OK, I fixed it and I do not know why I had to do this, but I will let everyone know.  I took log4net.dll from another site bin directory and just placed it into the bin directory of the web project solution so it could be found and the publishing worked GREAT!

9/2/2011 7:49:48 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Deploy site from a Visual Studio Soultion

Glad you got it working. Sometimes VS just acts very odd when it comes to assemblies and locations. I have ran into that issue before and the best way was to do exactly what you did.

9/2/2011 8:50:16 AM
Gravatar
Total Posts 199

Re: Deploy site from a Visual Studio Soultion

I am glad I am not the only one that had that issue.  I also saw that after publishing, "App_Data" did not publish so I had to re-create that folder.  Strange, but the site does work fine - all part of learning.  Thanks!

You must sign in to post in the forums. This thread is closed to new posts.