BV Commerce Forum
»
BV Commerce Support
»
Development
»
Null Object reference Error When Viewing Default Page After Successful Solution Compilation
Rank: Member
Joined: 6/26/2007(UTC) Posts: 14
|
Hi there,
I tried to set up the BV Commerce 5 developer pack with VS 2005. I followed the instruction and created the solution and loaded all the 7 projects.
On initial rebuilding of the solution, it prompted App.Config file was missing from the BVSoftware.Bvc5.Core project. The build failed. Since I could not locate the file, I removed it from the project. The subsequent rebuild of the whole solutions (7 projects) went through successfully. However when I tried to browse the default.aspx page, the error below occurred.
I suspect it has something to do with the missing App.Config file. Any help?
Error Message Dump
Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object.
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:
[NullReferenceException: Object reference not set to an instance of an object.] BVSoftware.Bvc5.Core.Utilities.UrlRewriter.RewritePath(HttpApplication& app, Uri sourceUrl) +311 BVSoftware.Bvc5.Core.Utilities.UrlRewriter.app_BeginRequest(Object sender, EventArgs e) +69 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Regards,
Jay
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Removing App.Config from project file is the right thing to do. It is only used during unit testing.
The null reference exception is because the database connection is not working, so the list of rewritten URL's is null.
Check the database connection string and make sure the database was fully created and populated with the default values. |
|
|
|
|
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.