FarleySoftware
Programmer
I added a profile section to web.config, to hold a shopping cart item (as in Wrox Beginning ASP.NET 2.0). It's under <system.web>:
It works great locally!
But on the hosted server, I get this error when attempting to load shoppingcart.aspx:
Any attempt to add an item to the cart from other pages results in the same error message.
The odd part to me, is that there's nothing DB-related on shoppingcart.aspx ... not in that page, not in the cart control, not in the class module Shopping.vb. All the DB calls are handled on other pages, and those all work just fine.
Should I be working with the <profileService> section (currently commented out) instead perhaps?
Thanks in advance.
Farley Software Solutions
Code:
<anonymousIdentification enabled="true"/>
<profile enabled="true">
<properties>
<add name="Cart" serializeAs="Binary" type="CabaretStore.Commerce.ShoppingCart" allowAnonymous="true" />
</properties>
</profile>
It works great locally!
But on the hosted server, I get this error when attempting to load shoppingcart.aspx:
Code:
Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.
Any attempt to add an item to the cart from other pages results in the same error message.
The odd part to me, is that there's nothing DB-related on shoppingcart.aspx ... not in that page, not in the cart control, not in the class module Shopping.vb. All the DB calls are handled on other pages, and those all work just fine.
Should I be working with the <profileService> section (currently commented out) instead perhaps?
Thanks in advance.
Farley Software Solutions