Rank: Member
Joined: 6/7/2008(UTC) Posts: 11
|
<H2>Object reference not set to an instance of an object. </H2> [color=#ffffcc>
[tr ][td ]<CODE>An]</b>location of the exception can be identified using the exception stack trace below.[/code] [/td][/tr]</TABLE>
<B>[1]
Version Information:[/1] Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 <!-- [NullReferenceException]: Object reference not set to an instance of an object. at BVSoftware.Bvc5.Core.Utilities.UrlRewriter.RewritePath(HttpApplication& app, Uri sourceUrl) at BVSoftware.Bvc5.Core.Utilities.UrlRewriter.app_BeginRequest(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
That error is displayed when BVC5 cannot connect to the database. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
|
|
|
|
Rank: Member
Joined: 6/7/2008(UTC) Posts: 11
|
but i'm using localhost, " with localhost there is not password" exam: kv/.sqexpress i guess...how can i do it.. please help. Thanks
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
If you do not include a password, then the SQL client will attempt to use Integrated Security (even with SQL Express). That means the SQL client in BVC5 will pass the current Windows identity to SQL server. But...here's what trips up many people...the current Windows identify of BVC5 is *not* you. It is the Windows identity that is assigned to BVC5 by IIS. In XP the identity is usually ASPNET.
So, if you don't want to include a username and password in the connection string, then you need to add the Windows identity of your BVC5 website (i.e. ASPNET) to SQL Server (even SQL Express) and grant that identity permission to access the database you created during BVC5 setup. Tthe specific access permissions are listed in the kb document that Marcus linked to. You can do this (add identities and grant permissions using SQL Server Management Studio.
I think it is easier to go the other way: create an admin username/password when you install SQL Express and then use that in the connection string in BVC5. |
|
|
|
|
Rank: Member
Joined: 6/7/2008(UTC) Posts: 11
|
sorry, i'm still learning...
</log4net>
<connectionStrings>
<add name=Bvc5Database connectionString=Data Source=TRS\SQLEXPRESS\Bvc5.mdf;Initial Catalog=Bvc5;Integrated Security=True/>
</connectionStrings>
<system.web>
still didn't connect. But in the Microsoft SQL Server Management Studio Express.. did successfully login. I don't know the connectionStrings right or not, please help. Thanks
I didn't recieve these errors too:
Warning 23 Unable to update auto-refresh reference 'anrcontrols.markdown.net.dll'. Cannot find assembly 'C:\Inetpub\wwwroot\Components\anrControls.Markdown.NET.dll'. C:\Inetpub\wwwroot\BV Commerce 5\Bin\anrcontrols.markdown.net.dll.refresh C:\...\BV Commerce 5\ Warning 24 Unable to update auto-refresh reference 'anrcontrols.smartypants.net.dll'. Cannot find assembly 'C:\Inetpub\wwwroot\Components\anrControls.SmartyPants.NET.dll'. C:\Inetpub\wwwroot\BV Commerce 5\Bin\anrcontrols.smartypants.net.dll.refresh C:\...\BV Commerce 5\ Warning 25 Unable to update auto-refresh reference 'freetextbox.dll'. Cannot find assembly 'C:\Inetpub\wwwroot\Components\FreetextBox.dll'. C:\Inetpub\wwwroot\BV Commerce 5\Bin\freetextbox.dll.refresh C:\...\BV Commerce 5\ Warning 26 Unable to update auto-refresh reference 'log4net.dll'. Cannot find assembly 'C:\Inetpub\wwwroot\Components\log4net.dll'. C:\Inetpub\wwwroot\BV Commerce 5\Bin\log4net.dll.refresh C:\...\BV Commerce 5\ Error 27 Could not load file or assembly 'file:///C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\bv commerce 5\50d0a8b5\1f451b1f\App_Web_he2hmcel.dll' or one of its dependencies. The system cannot find the file specified.
|
|
|
|
Rank: Member
Joined: 6/7/2008(UTC) Posts: 11
|
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Let's try a different approach.
Uninstall SQL Express.
Then re-install SQL Express and create an admin username and password.
Finally, re-create the BVC5 website and this time use the SQL Express admin username and password. |
|
|
|
|
Rank: Member
Joined: 6/7/2008(UTC) Posts: 11
|
I uninstalled everything "sql and bvsoftware" yet i still get the same error. Is there a video tutorial how to install bvsoftware for people like me on localhost and on server? Face it... i do like what people say about bvsoftware but i can't test it out.. therefore, I will not buy bvsoftware untill i get my hand on it..Thank you.
|
|
|
|
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.