compilation, building and deploying

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

compilation, building and deploying

Post by Harley » Mon Jul 21, 2008 9:50 am

What are the preferred ways to do this? When i normally do asp.net sites, I do a build, then do a publish. With ablecommerce here, I am getting errors on these things on the publish.

Error 1 'System.Web.UI.UserControl' does not contain a definition for 'CategoryId'

I get this error on the following 2 files.
Search.aspx
Browse.aspx

This is the line that bombs.

CategoryBreadCrumbs.CategoryId = CurrentCategoryId;
in Search.aspx of the admin section. I can't browse to the definition, so I am not quite sure how to deal with this.

The site builds and runs locally, so how would i get this to a webserver to take it live?
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: compilation, building and deploying

Post by jmestep » Mon Jul 21, 2008 11:52 am

Are you trying to build it because of custom code? I just copy the pages up to the real site.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Re: compilation, building and deploying

Post by Harley » Mon Jul 21, 2008 12:50 pm

I have to do a build, but not necessarily a publish, I do have custom code in there. So you just do a build, then copy all the files to your server? I never do this regularly, so sorry if the question seems dumb.
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: compilation, building and deploying

Post by jmestep » Mon Jul 21, 2008 2:09 pm

I don't do a build since I haven't really created any new dlls, etc. , so I just copy the pages up. I didn't do a build when I created a new Googlebase feed class .cs and it all still runs. I think the site compiles when the new code is added.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Re: compilation, building and deploying

Post by Harley » Mon Jul 21, 2008 2:24 pm

I actually will be, I have a custom library of code that will be added to sites, I am developing so as to not disturb the able code. I have to set this up so all new builds can be accomodated.
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: compilation, building and deploying

Post by AbleMods » Mon Jul 21, 2008 3:22 pm

If you are developing with Visual Studio, open the AC7 site as a "Website" and not a "Project".

The only time a true build is necessary is when you are compiling class library DLLs as part of a VS solution file or if you want to find compiler-level errors before running the site. Standard .cs/.vb code files in ~/App_Code do not require being built since the IIS compiler will automatically compile them the first time the site URL is hit.

Modifying code-behind pages, .ASPX pages or user controls does not require a build.

Also note that if you are working with separate solution files within the same website app, you will have to add references to the appropriate CommerceBuilder DLL files. For instance, you cannot access the Orders CommerceBuilder class in a separate solution without first creating a reference to the CommerceBuilder.Dll file and importing the class library.

By opening an AC7 site as a website, you circumvent this requirement completely and all data classes are available as they are automatically pulled from /Bin by VS at start-up. This is how I do all my development.

Publishing files is strictly up to you. I simply FTP them up once the changes are tested locally. I come from the old school when the "Publish..." menu option was certain death for any website :wink:
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Re: compilation, building and deploying

Post by Harley » Mon Jul 21, 2008 4:00 pm

Joe,

Thanks, I pretty much all of that I figured out.

My real issue is licensing, able is helping me out with that.
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

Post Reply