Error Publishing Latest Source vs2010

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.
11/24/2010 9:32:45 PM
Gravatar
Total Posts 4

Error Publishing Latest Source vs2010

Just pulled down latest source zip file, building in vs2010.  Seems to build ok and I can run/debug in vs2010.  But when I try to publish I get errors.

Error is:

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
 

First time I noticed the error it was on rss.net.dll which looked to be an invalid reference in mojoPortal.Web so I removed it.  Now I get the same error on the above.

What am I missing?

Thx

 

11/25/2010 7:08:16 AM
Gravatar
Total Posts 18439

Re: Error Publishing Latest Source vs2010

Hi Kevin,

People occasionally report issues when they get the code by clicking the download link on codeplex, I'm not sure what their process is for producing the .zip file, but I recommend getting the code using TortoiseHG. Doing it this way makes it easy to get updates of the code.

Hope it helps,

Joe

11/25/2010 10:22:22 AM
Gravatar
Total Posts 4

Re: Error Publishing Latest Source vs2010

Thanks Joe.  I currently use TortoiseSVN  Do both explorer extensions work ok together I wonder?

Will give it a try.

Thx.

 

11/25/2010 12:57:04 PM
Gravatar
Total Posts 4

Re: Error Publishing Latest Source vs2010

Well shoot.  Installed TortoiseHG and pulled the code down that way.  Right after pulling it down, I reviewed the references in all the projects. 

The Business.WebHelpers project has a reference to RSS.NET in _libs but the file is not there.  So before doing any builds or publishes I removed that reference.  Created a user.config, set the db connection, then did a build with no errors.

F5 and had a little issue with having to copy over some items in the Web/Data/Sites/1/systemfiles folder.  This is just because I had already pulled the code down via the zip file and had it running against the db.  So copied those files over and it runs fine.

But then when I try to publish (just to c:\inetpub\wwwroot to test) I get the same error message:

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

Why does it think it needs to include this non-existent file in the publish process?

Gotta go finish cooking the ham and turkey.  HAPPY TURKEY DAY EVERYONE.  Will check back later.

Thx,

Kevin

vs2010, 64-bit, running the mssqlonly solution

 

11/25/2010 4:08:49 PM
Gravatar
Total Posts 18439

Re: Error Publishing Latest Source vs2010

Hi,

I recently eliminated all dependencies on RSS.NET.dll but I guess I forgot to remove the reference form the 3.5 .NET version of mojoPortal.Business.WebHelpers.

I've corrected that and committed my changes to the repository, so you should be able to pull changesets and then do update to get the latest and that reference should be gone, you may need to revert changes first since you removed the reference yourself.

Before you publish make sure you change to release mode by choosing the Release build profile and rebuild the entire solution, f5 is not going to compile everything and for publishing you want to make sure everything is compiled and use a release build.

Thanks for letting me know about the lingering RSS.NET reference and hope this gets you back on track.

Best,

Joe

 

11/26/2010 4:01:02 PM
Gravatar
Total Posts 4

Re: Error Publishing Latest Source vs2010

Thx Joe.  I will try things again this weekend.  Note I am doing a NET 4 build using the mssql only solution.

I removed the references to RSS.NET in the projects and it builds fine.  There's just something still in the publish settings that is trying to grab it.  I've always used Publish as a black box and just let it do its things, so not sure where it's pulling info to decide it needs to do something with RSS.NET.dll.

When  jumping into new code, I always like to make sure I have all source code, and make sure I can do a clean build, before jumping in.

Once I get this publishing, it's a beer for you (or coffee, depends on what time of day) :)

Kevin

 

11/26/2010 4:07:42 PM
Gravatar
Total Posts 18439

Re: Error Publishing Latest Source vs2010

Hi Kevin,

I'll look into it this weekend as well, might be something about that solution. In the meantime, could you try using the mojoportal.sln file and then choose "Release" from the build profile menu then do Rebuild solution, then try publish. That is the .sln I use to make official releases and it works for me so it would be good to know if it works or not for you.

Best,

Joe

11/27/2010 6:21:36 AM
Gravatar
Total Posts 18439

Re: Error Publishing Latest Source vs2010

Hi Kevin,

If you get the latest code by pulling change sets then do update, it should be fixed now. I had previously removed the reference to RSS.NET.dll but I missed where VS had automatically included it in the project from the bin folder and that is what was making it complain. I just had to exclude it there.

Best,

Joe

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