Set up on Local Machine

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Set up on Local Machine

Post by kwikstand » Sun Dec 21, 2008 10:20 pm

Can anyone help me set up AC7 an my local machine for developement? I am using Vista Ultmate and have "turned on" IIS. I am also using Visual Web Developer 2005. I have set up a web site and copied the AC7 files to it. When I try to run Install/Default with VWD, I get a SQL Server error:

Server Error in '/AbleCommerceStore' Application.
--------------------------------------------------------------------------------

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException (0x80131904): An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
CommerceBuilder.Common.Token.get_Instance() +463
CommerceBuilder.Stores.AuditEventDataSource.CountForStore() +9
CommerceBuilder.Services.AbleCommerceHttpModule.Init(HttpApplication context) +230
System.Web.HttpApplication.InitModulesCommon() +66
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1006
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +259
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +114
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434


Do I need to change database settings within VWD, or the SQL Server Configuration Manager?

I have been trying this for hours & hours for several days. I find myself doing the same things over & over to no avail. (I think this is the definition of stupid)

Any help would be appreciated, I am tired of beating my head on the wall.

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

Re: Set up on Local Machine

Post by mazhar » Mon Dec 22, 2008 4:43 am

Try by changing the Remote Connections option to use both the TCP/IP and named pipes. You will find this setting under SQL Server surface area configurations.

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

Re: Set up on Local Machine

Post by jmestep » Mon Dec 22, 2008 8:08 am

kwickstand,
Don't feel bad. I was bit by the SQL remote connection thing. And there are plenty of times I'll work on a piece of code for hours, then come back the next day and go Duh, I forgot C# uses == instead of = in comparisons.
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

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Set up on Local Machine

Post by kwikstand » Mon Dec 22, 2008 11:35 am

Thanks for the quick supply and the support :)

I didn't even know about the SQL Server 2005 Surface Area Configuration. I have been fiddeling with the settings in the SQL Server Configuration manager. At any rate, I found out that you have to set administrative privileges for SQL Server seperrately from Vista.

Any way I made the changes to remote connection to "Using both TCP/IP and named pipes" and I still get the same error.

I notice that after I try to view in Browser, the database connection is lost in VWD. I right click the AbleCommerce.mdf and modify connections. I click "Test Connection" and it works. I then try to view in browser and get the same Server Error as before.

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Set up on Local Machine

Post by kwikstand » Mon Dec 22, 2008 9:12 pm

Not only do I still get the SQL Server error, but I notice that in VWD desin view, at the bottom of the license agreement It says:

Image


I have permissions set to Modify for all the users listed. Are there any other Users that I need to add?

Thanks,
Scott

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

Re: Set up on Local Machine

Post by jmestep » Tue Dec 23, 2008 7:39 am

The installation instructions for Able tell what permissions you need.
Also, here is a link with my woes about installing on Vista:
viewtopic.php?f=42&t=8995&hilit=vista
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

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Set up on Local Machine

Post by kwikstand » Tue Dec 23, 2008 8:10 pm

Thanks. I already read the instructions and have made sure of the permission settings. Here is what my setings look like:

Image

I tried running the permission test script, but this is the reult:

Image

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

Re: Set up on Local Machine

Post by jmestep » Wed Dec 24, 2008 8:30 am

Make sure you have done the other things in that post. Sometimes an error message doesn't apply to the specific error.
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

BBHartley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Tue Nov 18, 2008 11:49 am

Re: Set up on Local Machine

Post by BBHartley » Tue Dec 30, 2008 8:42 am

Your problem is the command line you are using for the installation.

The URL/Command Line must include the domain or IP address + Virtual Server name.

Your installation should look something like:

http://192.168.1.100/Web/default.aspx

Where 192.168.1.100 is your IP address and /Web is the virtual web server you have created. If you simply try to use the command: C:\AbleDirectory\default.aspx you will et the error you are currently getting regardless of your permissions.

Post Reply