Missing xml Files in Bin using VS2010 Publish

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
8/13/2010 5:14:46 AM
Gravatar
Total Posts 2

Missing xml Files in Bin using VS2010 Publish

Hi there,

I'm just getting started with my first installation of mojoportal.  I'm using Visual Studio 2010 Pro and have the source code stable release as of Weds 11th Aug from Codeplex.

I have run the site in Debug which created the database and am still able to run it in debug.  I am also able to build the entire solution error free.  The problem I have is that when I try to publish the Web project (to file system) I get missing file errors, specifically bin\mojoportal.business.webhelpers.xml

I added this file to the bin in web (just an empty xml file), then it errored on bin\mojoportal.business.xml and so on...  Seems to do it with each dll in the bin that doesnt have a corresponding xml file.

Any advice on how to overcome this would be appriciated!

Thanks

Rick

8/13/2010 5:40:59 AM
Gravatar
Total Posts 18439

Re: Missing xml Files in Bin using VS2010 Publish

That error does not make me think you have the latest code, doesn't even sound like recent code. I cannot produce the problem you describe, it publishes fine for me in both Debug and Release mode.

Please tell the exact steps you used to get the code?

Note that if you had cloned the repository a while back and then if you pull changes, that does not give you the latest code, you have to then run the update command on your local copy of the repository to apply the changes to your working copy. After your working copy is updated you should rebuild the solution again and then visit the /Setup/Default.aspx page. You should always use Release builds when publishing.

If you have the latest code, your build configuration dropdown should appear as in this blog post.

http://www.mojoportal.com/improvements-to-the-mojoportal-visual-studio-projects-and-solutions.aspx

Though the appearance of the dropdown does not indicate it is the very latest code, since the dropdown has been the same since July, but if it does not look the same then it clearly indicates older source code.

Hope it helps,

Joe

8/13/2010 6:42:26 AM
Gravatar
Total Posts 2

Re: Missing xml Files in Bin using VS2010 Publish

Hi Joe,

Thanks for the quick reply.  I got the code from the link entitled "you can get the source code corresponding to this release here." on the download page for 2.3.5.1 (http://mojoportal.codeplex.com/releases/view/50435).  This gave me a compressed version of all of the solution source.  I tried running both the main solution and the mssqlonly version.

I'm away from my work PC so I'm not sure about the build dropdown, but I dont recall having all of those options, I will take a look later today and come back to you.

Thanks again

Rick

9/20/2010 6:49:59 AM
Gravatar
Total Posts 2

Re: Missing xml Files in Bin using VS2010 Publish

Hi,

I had this problem while publishing, using change set source download "a50ddd8e871a " 12/8/2010.  MSSQLOnly solution using VS2010 Ultimate, publish to a folder.

Resolved it by taking your advice, changed the build option to "release", republished, worked first time.  Was getting the same missing XML file (mojoPortal.Business.WebHelpers.xml), using the "debug" build option.

Error    1    Copying file bin\mojoPortal.Business.WebHelpers.xml to obj\Debug\Package\PackageTmp\bin\mojoPortal.Business.WebHelpers.xml failed. Could not find file 'bin\mojoPortal.Business.WebHelpers.xml'.        0    0    mojoPortal.Web
 

I thought it could have been a project dependency issue, but I checked the order, seemed logical and correct.

Out of interest, you're updating the source often, what do you recommend for merging newer sources with custom builds?  I have quite specific menu requirements that have mainly meant writing my own adapters, etc.  But I have added to the core menu source files also, not as to break existing functionality, but to simply customise to meet my requirements.

Thanks

David

9/20/2010 6:51:31 PM
Gravatar
Total Posts 2

Re: Missing xml Files in Bin using VS2010 Publish

Actually, disregard my query regarding merging updates. RTFM as they say! Dave
You must sign in to post in the forums. This thread is closed to new posts.