VS2005 Debugging Error on Local Machine

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

VS2005 Debugging Error on Local Machine

Post by keats76 » Fri Mar 07, 2008 6:20 am

Anyone encounter this exception before?

[NullReferenceException: Object reference not set to an instance of an object.]
CommerceBuilder.Services.AbleCommerceHttpModule.Init(HttpApplication context) +108
System.Web.HttpApplication.InitModulesCommon() +95
System.Web.HttpApplication.InitModules() +72
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +706
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +301
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +131
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +353

I copied the instance from my development/staging server to my local PC for development. The first time I tried to fire up the debugger, I ran into the encryption issue with the database string (so I replaced the encrypted connection string with the plain text version). I passed that hurdle, but now I'm receiving the above. Any thoughts?

Thanks!
Mike

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Post by keats76 » Fri Mar 07, 2008 6:36 am

Hmmm ... OK, I guess I might not be able to run two instances against the same DB. I thought I could just do a quick code migration to my VS2K5 environment, point it to the same DB that my Dev server is running against and start debugging.

Honestly, I don't need to use the same DB. Would it be possible to point to the bundled DB with AC7 and kick start the debugger, or do I somehow have to run the install wizard on my local development machine?

Thanks!
Mike

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

Post by AbleMods » Fri Mar 07, 2008 7:25 am

You're not going to be able to use a live DB instance in a local development environment unless you're hosting SSL locally.

The admin side forces SSL connectivity and that switch is stored in the DB. Turning it off for local would turn it off for live as well. Only way around it would be to have an SSL cert installed in your local IIS server instance.

You can run a local copy and a live copy each with their own separate DB instances, that's how I do it. But you have to have separate license keys from Able. The CommerceBuilder engine forces the hostname in the license key upon connection by the browser.
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

User avatar
bobr2k
Commander (CMDR)
Commander (CMDR)
Posts: 183
Joined: Fri Oct 26, 2007 2:31 pm
Location: Illinois

Post by bobr2k » Fri Mar 07, 2008 7:26 am

Do you have a license for your local machine? I believe that's a requirement.
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Post by keats76 » Fri Mar 07, 2008 7:42 am

Thanks for the replies. I sent a note to AC about requesting a license for my local machine. I thought I saw an earlier post where AC said that they would always allow an instance to run on the localhost without the need for a key, but I could be wrong.

Thnx, Mike

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Post by keats76 » Fri Mar 07, 2008 2:37 pm

OK, I decided that the easiest thing for me to do was to port my VS installation to my dev/staging server and do my development there. I'm able to point VS to the AC7 instance (Open Website -> IIS -> AC7) and I'm able to start the debugger.

However, when I try to access the homepage I get an "Internet Explorer cannot display the webpage" error. Does this have something to do with the debugging domain/port?

Thanks,
Mike

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

Post by AbleMods » Fri Mar 07, 2008 2:57 pm

No idea, thought the debugging port was the same just in a different instance of IE - perhaps I'm mistaken though.

You really want to program/debug on the live copy of your install?
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

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Post by keats76 » Fri Mar 07, 2008 7:12 pm

Not really, but it takes weeks for my product requisition orders to go through ... in other words, if I want a new license, I have to wait a while. As luck would have it, my deadline won't wait :).

This is more of a stopgap, until I can get another license. Oh well, I'll play with it some more on Monday.

Thanks!

User avatar
bobr2k
Commander (CMDR)
Commander (CMDR)
Posts: 183
Joined: Fri Oct 26, 2007 2:31 pm
Location: Illinois

Post by bobr2k » Sat Mar 08, 2008 7:15 am

keats76 wrote:if I want a new license
Maybe I'm misunderstanding ... Ablecommerce provides a license for local and server - one purchase covers both licenses. We had a problem on one site and they provided a replacement license in a few hours. Have you seen this: http://www.ablecommerce.com/crmTree.aspx?&TopicId=430
Bob R.
"Bills travel through the mail at twice the speed of checks." -- Steven Wright

Post Reply