Control Panel
Forum
Hosting Help
ASP.NET 3.5 & SQL 2008 Web Hosting
Resources
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Silverlight Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
88776
Average new registrations per day (in last 7 days):
89
New Registration:
Open
Register Now
Home
»
Questions & Answers
»
Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
9/24/2008
Author:
savoir_faire
http://aspspider.info/projecty3
Online Ordering Undergraduate Thesis
hi guys.
i successfully uploaded my SalesOrder database here in Aspspider. i followed what is all about connection string, etc.
but in this situation, i cant find help about this error, take a look:
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:
Line 17609: Private Sub InitConnection()
Line 17610: Me._connection = New Global.System.Data.SqlClient.SqlConnection
Line 17611: Me._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("SalesOrderConnectionString").ConnectionString
Line 17612: End Sub
Line 17613:
Source File: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\projecty3\d15ccf5e\7c8362cd\App_Code.5bgtof9j.10.vb Line: 17611
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
YaletrakDataSetTableAdapters.OrdersTableAdapter.InitConnection() in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\projecty3\d15ccf5e\7c8362cd\App_Code.5bgtof9j.10.vb:17611
YaletrakDataSetTableAdapters.OrdersTableAdapter.get_Connection() in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\projecty3\d15ccf5e\7c8362cd\App_Code.5bgtof9j.10.vb:17520
YaletrakDataSetTableAdapters.OrdersTableAdapter.InitCommandCollection() in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\projecty3\d15ccf5e\7c8362cd\App_Code.5bgtof9j.10.vb:17618
YaletrakDataSetTableAdapters.OrdersTableAdapter.get_CommandCollection() in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\projecty3\d15ccf5e\7c8362cd\App_Code.5bgtof9j.10.vb:17549
YaletrakDataSetTableAdapters.OrdersTableAdapter.GetOrderNoWithNoRows() in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\projecty3\d15ccf5e\7c8362cd\App_Code.5bgtof9j.10.vb:17778
OrdersBLL.GetOrderNoWithNoRows() in C:\MemberSites\MemberSites_AspSpider_Info\projecty3\webroot\App_Code\BLL\OrdersBLL.vb:43
secure_customer_CustomerOrders.Page_Load(Object sender, EventArgs e) in C:\MemberSites\MemberSites_AspSpider_Info\projecty3\webroot\secure_customer\CustomerOrders.aspx.vb:12
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
i don't know where will i change the connection string described here,coz i haven't done any connection string declarations on any the code-behind pages of my site.
i just need things to make work. this site is to be presented on school. and im scheduled this september 30. i hope we will make this work guys, coz im super new in web host site uploading.
i badly need your help.
Answers .............
Author:
Jean-Francois Blouin
Posted Date: 9/25/2008
http://aspspider.net/JFBlouin
House for rent
Did you upload your web.config? The ConnectionString is stored there.
You should have at least this in it:
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="SalesOrderConnectionString" connectionString="......" providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
Good luck,
Jeff
Author:
savoir_faire
Posted Date: 9/26/2008
http://aspspider.info/projecty3
Online Ordering Undergraduate Thesis
SOLVED! i simply changed the connection string name for my SalesOrder.
You must
login
to post answer for this question.
Partners
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies.
All Rights Reserved.