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

Notification

Icon
Error

caqvinh
#1 Posted : Saturday, June 7, 2008 6:42:18 PM(UTC)
caqvinh

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 &lt;!--
[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)
--&gt;
Andy Miller
#2 Posted : Sunday, June 8, 2008 11:01:40 AM(UTC)
Andy Miller

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.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Marcus
#3 Posted : Sunday, June 8, 2008 11:50:24 AM(UTC)
Marcus

Rank: Member

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

caqvinh
#4 Posted : Monday, June 9, 2008 12:22:21 PM(UTC)
caqvinh

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
Andy Miller
#5 Posted : Monday, June 9, 2008 4:22:49 PM(UTC)
Andy Miller

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.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
caqvinh
#6 Posted : Monday, June 9, 2008 9:16:15 PM(UTC)
caqvinh

Rank: Member

Joined: 6/7/2008(UTC)
Posts: 11

sorry, i'm still learning...

&lt;/
log4net&gt;

&lt;
connectionStrings&gt;

&lt;
add name=Bvc5Database connectionString=Data Source=TRS\SQLEXPRESS\Bvc5.mdf;Initial Catalog=Bvc5;Integrated Security=True/&gt;

&lt;/
connectionStrings&gt;

&lt;
system.web&gt;

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.


caqvinh
#7 Posted : Monday, June 9, 2008 9:16:45 PM(UTC)
caqvinh

Rank: Member

Joined: 6/7/2008(UTC)
Posts: 11

i mean i "did"
Andy Miller
#8 Posted : Tuesday, June 10, 2008 1:36:35 AM(UTC)
Andy Miller

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.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
caqvinh
#9 Posted : Wednesday, June 18, 2008 9:44:10 PM(UTC)
caqvinh

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.

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