• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

rwillhite
#1 Posted : Tuesday, December 19, 2006 10:19:54 PM(UTC)
rwillhite

Rank: Member

Joined: 9/1/2006(UTC)
Posts: 43

I get the following error after setting up a new store as a demo...we have been having problems with our existing store after the last patch and I wanted to set up a fresh one for comparison.


I checked the Web.config file and this entry only exists in this one place.

Rob

<H1>Server Error in '/DemoStore' Application.
<HR width="100%" color=silver SIZE=1>
</H1>
<H2>Configuration Error </H2>
[color=#ffffcc>

[tr ][td ]<CODE>
Line]Line 35: &lt;connectionStrings&gt;
Line 36: &lt;add name="Bvc5Database" connectionString="Data Source=WEBDEV1;Initial Catalog=DemoStore;Integrated Security=True;Application Name=BVC5SiteManager"/&gt;
[/color]Line 37: &lt;/connectionStrings&gt;
Line 38: &lt;system.web&gt;</PRE>[/code][/td][/tr]</TABLE>


<B>

<FONT face=Verdana>Version Information:
Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 &lt;!--
[ConfigurationErrorsException]: The entry 'Bvc5Database' has already been added. (c:\inetpub\wwwroot\DemoStore\web.config line 36)
at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.get_ConnectionStrings()
at System.Web.Configuration.WebConfigurationManager.get_ConnectionStrings()
at BVSoftware.Bvc5.Core.WebAppSettings.get_ConnectionString()
at BVSoftware.Bvc5.Core.Datalayer.DataRequest..ctor()
at BVSoftware.Bvc5.Core.WebAppSettings.Mapper.Find(String settingName)
at BVSoftware.Bvc5.Core.WebAppSettings.GetSettingFromDB(String settingName)
at BVSoftware.Bvc5.Core.WebAppSettings.GetStringSetting(String settingName)
at BVSoftware.Bvc5.Core.WebAppSettings.GetEncryptedStringSetting(String settingName)
at BVSoftware.Bvc5.Core.WebAppSettings.get_PaypalUserName()
at ASP.global_asax..cctor()
[TypeInitializationException]: The type initializer for 'ASP.global_asax' threw an exception.
[TargetInvocationException]: Exception has been thrown by the target of an invocation.
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance()
at System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context)
at System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context)
at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
--&gt;
Marcus
#2 Posted : Tuesday, December 19, 2006 10:20:54 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

We do not recommend using integrated SQL security. Web sites run under the ASPNET or IIS_WPG account and will most likely not have the correct SQL permissions. Try creating a SQL username and password.
Marcus
#3 Posted : Tuesday, December 19, 2006 10:21:30 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

Also,

Check your web.config file because it probably already has a connection strings section.
rwillhite
#4 Posted : Wednesday, December 20, 2006 11:45:45 AM(UTC)
rwillhite

Rank: Member

Joined: 9/1/2006(UTC)
Posts: 43

I have tried all of the suggestions. I change the server to mixed mode security, added a new user with access to the database, modified the web.config file to not use integrated security, instead to use the userid and password I created, and still cannot login.

I deleted the test store I set up, I think that it was just confusing matters, so now I am working on connecting to my live store.

The only other strange thing that I see is that when I view the information about my live store through the BV5 Site Manager the License Version field says "Invalid Data".



I am getting no errors in the event log and the Invalid login count in the user table is not changing.
jetheredge
#5 Posted : Wednesday, December 20, 2006 11:48:34 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Is the error staying the same as above? If it is still saying that the entry already exists, then you need to check your machine.config file, and also check any folders above this web.config to make sure that you don't have any other web.config files that are being loaded up first. Asp.net allows a different web.config in each folder of a website.
Justin Etheredge
Senior Software Engineer
BVSoftware
rwillhite
#6 Posted : Wednesday, December 20, 2006 11:55:36 AM(UTC)
rwillhite

Rank: Member

Joined: 9/1/2006(UTC)
Posts: 43

I no longer get the error originally poseted, that was on a new Demo store I was using for comparison.

There are no other web.config files above this one.

Now I just get the BV error "<SPAN id=MessageBox1_MessageText>Login incorrect, please try again" on the Admin Login Screen.
Nick Alberti
#7 Posted : Wednesday, December 20, 2006 2:18:52 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Rob, what happens when you try to view the store side.

Remove the "/bvadmin/" and anything after from the URL and try again.

Do you see any error messages?
rwillhite
#8 Posted : Wednesday, December 20, 2006 2:41:34 PM(UTC)
rwillhite

Rank: Member

Joined: 9/1/2006(UTC)
Posts: 43

Marcus....I get the following error:





<H1>Server Error in '/bvc5' Application.
<HR width="100%" color=silver SIZE=1>
</H1>
<H2>Cannot find table 0. </H2>
[color=#ffffcc>

[tr ][td ]<CODE>
Line]Line 8: If Not Page.IsPostBack Then
<FONT color=red>Line 9: lnkHome.Text = Content.SiteTerms.GetTerm("Home")
[/color]Line 10: lnkHome.ToolTip = Content.SiteTerms.GetTerm("Home")
Line 11: </PRE>[/code][/td][/tr]</TABLE>
<B>[color=#ffffcc>

[tr ][td ]<CODE>
[IndexOutOfRangeException:] System.Data.DataTableCollection.get_Item(Int32 index) +60
BVSoftware.Bvc5.Core.Content.SiteTerms.get_AllTerms() +61
BVSoftware.Bvc5.Core.Content.SiteTerms.LoadSettings() +12
BVSoftware.Bvc5.Core.Content.SiteTerms.GetTerm(String termName) +23
BVModules_Themes_Bvc5_Header.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\BV Commerce 5\BVModules\Themes\Bvc5\Header.ascx.vb:9
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
</PRE>[/code][/td][/tr]</TABLE>[/color]
Noah
#9 Posted : Wednesday, December 20, 2006 3:22:14 PM(UTC)
Noah

Rank: Member

Joined: 11/6/2003(UTC)
Posts: 1,903

The "can't find table" error comes from a permissions (DB permissions) problem.
Noah
Nick Alberti
#10 Posted : Wednesday, December 20, 2006 3:24:31 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

It can also mean that your store is not connecting to your database at all.

Did you recently install SQL Server 2005? Are you familiar enough with it to go over some settings? If not, please let us know so we can provide more detailed instructions.
rwillhite
#11 Posted : Wednesday, December 20, 2006 3:30:51 PM(UTC)
rwillhite

Rank: Member

Joined: 9/1/2006(UTC)
Posts: 43

Nick,


We had the store working just fine until I tried to install a new demo store. The only problem there was that it Overwrote the existing SQL database.



I am familiar enough with SQL2005 to go over the settings.



Rob
Nick Alberti
#12 Posted : Wednesday, December 20, 2006 4:38:58 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Hi Rob.

When you installed SQL Server, did you select Windows Authentication or Mixed Mode Authentication?
rwillhite
#13 Posted : Wednesday, December 20, 2006 4:48:32 PM(UTC)
rwillhite

Rank: Member

Joined: 9/1/2006(UTC)
Posts: 43

Nick

SQL Server is installed with mixed mode authentication
Nick Alberti
#14 Posted : Wednesday, December 20, 2006 4:49:59 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Hey Rob.

Have you tried using the "sa" user account in your connection string to rule out any permission related issues?
rwillhite
#15 Posted : Wednesday, December 20, 2006 4:58:38 PM(UTC)
rwillhite

Rank: Member

Joined: 9/1/2006(UTC)
Posts: 43

Nick,


That did it. Thanks a lot. I don't know why this suddenly changed, we never had to go through this with the initial setup, but it is working agin.



Rob
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012