Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help With Error using ASP.net Starter Classifieds

Status
Not open for further replies.

crstuart99

Technical User
Joined
Apr 22, 2006
Messages
9
Location
US
I've been trying to use ASP.net Classifieds starter kit with ASP.net hosting from Godaddy. I can't seem to get it to work and keep getting this error on my page...Also here's my connection string:
<connectionStrings>

<add name="ClassifiedsConnect" connectionString="Server=whsql-v09.prod.mesa1.secureserver.net;Database=DB_61708;uid=cdogstu66;pwd=roger123;"
providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Server=whsql-v09.prod.mesa1.secureserver.net;Database=DB_61708;uid=cdogstu66;pwd=roger123;"
providerName="System.Data.SqlClient" />
</connectionStrings>
---------------------------------------------
Here's my error...

Server Error in '/' Application.
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:

[No relevant source lines]


Source File: App_Code.iqmkyrds.16.vb Line: 1470

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
AdsDataComponentTableAdapters.AdsDataAdapter.InitConnection() in App_Code.iqmkyrds.16.vb:1470
AdsDataComponentTableAdapters.AdsDataAdapter.get_Connection() in App_Code.iqmkyrds.16.vb:1356
AdsDataComponentTableAdapters.AdsDataAdapter.InitAdapter() in App_Code.iqmkyrds.16.vb:1428
AdsDataComponentTableAdapters.AdsDataAdapter.get_Adapter() in App_Code.iqmkyrds.16.vb:1346
AdsDataComponentTableAdapters.AdsDataAdapter.GetAdsByRandomOrder(Int32 NumRecords, Int32 AdStatus, Int32 AdLevel) in App_Code.iqmkyrds.16.vb:1667
AspNet.StarterKits.Classifieds.BusinessLogicLayer.AdsDB.GetFeaturedAdsSelection(Int32 maxNumAds) in d:\hosting\cdogstu66\App_Code\BLL\Ads.vb:220
AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.FetchFeaturedAd() in d:\hosting\cdogstu66\App_Code\Web\FeatureCache.vb:100
AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd(HttpContext context) in d:\hosting\cdogstu66\App_Code\Web\FeatureCache.vb:87
AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd() in d:\hosting\cdogstu66\App_Code\Web\FeatureCache.vb:75

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +296
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +482
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2040
System.Web.UI.WebControls.Repeater.GetData() +50
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +232
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.WebControls.Repeater.EnsureDataBound() +55
System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +12
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top