"StringHelper does not exist in current context"

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
dwgraphics
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Wed Feb 18, 2009 4:33 pm

"StringHelper does not exist in current context"

Post by dwgraphics » Wed Feb 18, 2009 4:48 pm

Hi.

I am trying to get the AbleCommerce demo store I downloaded up and running to play with and learn . I'm using VS2008, and I created a website in C:\inetpub\wwwroot\AbleCommerce using the ASP.NET 2.0 w/AJAX 1.0 template. I then copied the downloaded files into the root of my test site, so the default.aspx page is my startup page. When I hit the run button, I get a compile error in global.asax on the following line

//SAVE THE REFERRER FOR USE BY THE ORDER MODULE
if (Request.UrlReferrer != null) Session["SessionReferrerUrl"] = StringHelper.Truncate(Request.UrlReferrer.ToString(), 255);

Also, if I just double-click on the default.aspx file in Vista, I get a "file not found" error. Clearly I'm missing the boat here somewhere, but I haven't been able to figure it out in a couple hours of trying.

I am new to both ASP.NET development and AbleCommerce, so any suggestions would be greatly appreciated.

Dave

Dave

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

Re: "StringHelper does not exist in current context"

Post by jmestep » Wed Feb 18, 2009 6:28 pm

Bad combination- new to .net and Able and using Vista. Vista had a couple of issues for me, but if you will search the forum for Vista you should be able to find helps.
Don't create a site within VS 2008. Copy the Able files to a folder on the computer and if you don't want to set up IIS, you can open the site as a website in VS2008 (File-->Open website-->File System and navigate to the right folder. After the files are imported into your project, click to brows the default.aspx in the Install folder and use VS2208 built in server to install.
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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: "StringHelper does not exist in current context"

Post by mazhar » Thu Feb 19, 2009 4:08 am

I second the Judy's idea

Here is the installation guide
http://help.ablecommerce.com/installati ... sp.net.htm
Read it and install the application on localhost. Once you got it installed properly then you have to use the visual studio.

1)- Launch visual studio.
2)- Go to File -> Open -> Website
3)- Select the Local IIS option and it will list all virtual directoreis you have on your local IIS
4)- Select the One you used for AbleCommerce install and click the open button.
5)- It will open the website code in Visual Studio.

dwgraphics
Ensign (ENS)
Ensign (ENS)
Posts: 2
Joined: Wed Feb 18, 2009 4:33 pm

Re: "StringHelper does not exist in current context"

Post by dwgraphics » Thu Feb 19, 2009 9:14 am

Hi Judy & Mazhar

Using your advice, I was able to get my demo store up and running. I really appreciate that you both took the time to help get me going.

Dave

relish1227
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Mon Aug 30, 2010 9:51 am

Re: "StringHelper does not exist in current context"

Post by relish1227 » Mon Oct 04, 2010 12:47 pm

Hello,

I have the same issue -- but thing that's odd is that the site was actually up and running a while ago. The client purchased the product, I got it installed and customized, and then they didn't want to launch it for several months. Now they are ready to revisit -- and when we go to the store URL, we get this error. This is actually on a server somewhere, not set up locally. Any thoughts?

Thanks, Courtney

Post Reply