• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

roxannez
#1 Posted : Sunday, November 22, 2009 3:30:39 PM(UTC)
roxannez

Rank: Member

Joined: 8/28/2009(UTC)
Posts: 29

I have Visual Studio 2005 and have followed the instructions to pull the projects into a Visual Studio solution. I can't get it to compile, tons of errors. I had a consultant create a solution with Visual Studio 2008 and was able to compile, but not without making a ton of modifications. I can't imagine installing a hot fix or upgrading....


At this point, I'm ready to shop around for a different shopping cart solution. Especially since I still have modifications to make to the files, and haven't even been able to get to that point where I can edit the files.


Struggling with an upgrade from bvc 2004.0...



Thanks.
Andy Miller
#2 Posted : Monday, November 23, 2009 12:17:53 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Wierd...I can open a new BVC5 site in VS2008 and start making changes in just a few seconds.

Here's what I do:

1. Use the BV installer to create the site.
2. Load the site in a browser to make sure it is running.
3. Launch Visual Studio.
4. Select File > Open > Web Site.
5. Select File System and open the "www" subdirectory of the site I created in step 1.
6. Select Debug > Run to verify that Visual Studio can run the new web site.

Note that because I use File System, Visual Studio will run the site using the built in web server. If you would prefer to use IIS, then replace steps 3 -5 with:

3. Run Visual Studio as Administrator.
4. Select File > Open > Web Site.
5. Select Local IIS and open the virtual directory created in step 1.

After I verify that the site will run, I save the solution with a meaningful name like "roxy-file system" or "roxy-iis". The next time I want to work on the site, I open the solution file instead of using File > Open Web Site.

What are you and your consultant doing?
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Kman
#3 Posted : Monday, November 23, 2009 12:30:36 PM(UTC)
Kman

Rank: Member

Joined: 11/25/2003(UTC)
Posts: 370

5.6 seems to be the best yet. Did a new one this weekend and not one build error the first go. Was impressed.
After initial build just redid my references to point the the individual projects for full source edit, rebuilt again and good to go.
Regards,
Kim(Kman) Rossey
www.toocoolwebs.com
BVSoftware - MerchantTribe Programming/Design, Database Programming and Business Applications
[email protected]
roxannez
#4 Posted : Monday, November 23, 2009 3:18:28 PM(UTC)
roxannez

Rank: Member

Joined: 8/28/2009(UTC)
Posts: 29

I am able to create a new solution and add the www directory as a new website w/o any issues.

I had issues once I added the projects as the User Manual instructed:

http://www.bvsoftware.com/BVCommerce5Manual/How%20To's/VisualStudioSetup.aspx

I added the 5 existing projects and tried to compile, but received many errors (in Visual Studio 2005).

I am working on getting Visual Studio 2008, but my consultant had Visual Studio 2008 and had the same errors when compiling. Mostly where BVCSoftware.BVC5.Core imports Avalara and Google Checkout. Any help/tips would be appreciated.



Thanks.
Andy Miller
#5 Posted : Monday, November 23, 2009 3:41:07 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
If you don't need to modify Core (or any of the other library code), then don't add them to the solution. I rarely modify any of the library code--mostly so upgrading is painless. If you modify the library code, upgrading is more complicated and you may need to recertify your application for PCI compliance.

If you do need to modify the library code, then you will need to add the projects and fix the corresponding references in the web project. The instructions in the online manual are quite dated (they refer to a build of BV that was replaced 2 years ago). I would not follow them.

Like Kim, I can add the library code to the solution and get a clean build without making any changes to the code. My guess is that you and your consultant are not updating your references. When you add a web project, VS will discover all the DLL's in the bin directory and add each one as a reference to the project. When you add a library project like Core, you have to update the references in both the web project and the Core project so that all references in both projects point to exactly the same source. For example, you have to update the Core reference in the web project to point to the Core project, and update the Avalara, Cryptography, GoogleCheckout, PaypalWebServices, and Web in the Core project to reference the assemblies in the web bin directory.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
roxannez
#6 Posted : Monday, November 30, 2009 12:32:06 PM(UTC)
roxannez

Rank: Member

Joined: 8/28/2009(UTC)
Posts: 29

Thanks for the replies.

Should all the projects in the "source" folder be added to the Visual Studio solution?

I only added the 5 projects mentioned in the user manual. I received a link to updated instructions, those also list only to include these projects:

BVSoftware.Bvc5.Core

BVSoftware.Bvc5.Payment.AuthorizeNet

BVSoftware.Bvc5.Shipping.FedEx

BVSoftware.Bvc5.Shipping.USPostal

BVSoftware.GoogleCheckout

BVSoftware.PaypalWebServices

I did not add these projects in Visual Studio: Avalara, Payment.ACHDirect, Cryptography, Cryptography.Tests, UnitTests, Web, and Web.Test.

I had modified the references for the 5 projects to point to the project, rather than the .dll but am still receiving over 140 errors when compiling.

I am doing this in Visual Studio 2005, not sure if that makes a difference or not?

I'm attaching the errors received after compiled. So lost and need some help. Thanks.
File Attachment(s):
Compile Errors (Sunday Nov 29).txt (29kb) downloaded 206 time(s).

You cannot view/download attachments. Try to login or register.
Andy Miller
#7 Posted : Monday, November 30, 2009 9:34:10 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
VS2005 should work as long as you set the .NET version to 2.0.

I think your references are still messed up. Warnings 35-37 mean that the BVSoftware.Bvc5.Core project is still referencing the Avalara, Cryptography, and Web projects. If those projects are not part of your solution, then it should be referencing the DLL's...and every other project in the solution must reference the same DLL's.

You asked, "Should all the projects in the "source" folder be added to the Visual Studio solution?"

The answer is no. You should only add the projects that you need to modify. If you don't need to modify any, then don't add any.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Marcus
#8 Posted : Tuesday, December 1, 2009 4:34:11 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

Actually, service pack 5.6 uses .net 3.5 sp1 or later so it may not recompile in VS2005. The web site will still open and you can modify but I don't think you can recompile the core in VS2005 anymore.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012