PDA

View Full Version : سوال: خطا هنگام وصل شدن به بانک اطلاعاتی



mazaher5723
پنج شنبه 23 خرداد 1392, 06:38 صبح
سلام دوستان و اساتید
وقتی می خوام از طریق دیتالیست به بانک اطلاعاتیم(از طریق linq) وصل شم این خطاو میده ولی اگه بخوام از طریق ادرس فایل بانک اطلاعاتیم که درون درایوم هست برم مشکلی نداره. اینم خطاش
لطفا راهنماییم کیند
متن خطا

Server Error in '/' Application.
--------------------------------------------------------------------------------


No parameterless constructor defined for this 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.MissingMethodException: No parameterless constructor defined for this 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:



[MissingMethodException: No parameterless constructor defined for this object.]
System.RuntimeTypeHandle.CreateInstance(RuntimeTyp e type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113
System.RuntimeType.CreateInstanceDefaultCtor(Boole an publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
System.Activator.CreateInstance(Type type) +6
System.Web.HttpRuntime.FastCreatePublicInstance(Ty pe type) +78
System.Web.UI.WebControls.LinqDataSourceView.Creat eContext(Type contextType) +6
System.Web.UI.WebControls.LinqDataSourceView.Creat eContextAndTable(DataSourceOperation operation) +799
System.Web.UI.WebControls.LinqDataSourceView.Creat eContextAndTableForSelect() +137
System.Web.UI.WebControls.LinqDataSourceView.Creat eContext(DataSourceOperation operation) +12
System.Web.UI.WebControls.ContextDataSourceView.Ge tSource(QueryContext context) +20
System.Web.UI.WebControls.LinqDataSourceView.GetSo urce(QueryContext context) +325
System.Web.UI.WebControls.LinqDataSourceView.Execu teSelect(DataSourceSelectArguments arguments) +63
System.Web.UI.WebControls.BaseDataList.GetData() +56
System.Web.UI.WebControls.DataList.CreateControlHi erarchy(Boolean useDataSource) +173
System.Web.UI.WebControls.BaseDataList.OnDataBindi ng(EventArgs e) +63
System.Web.UI.WebControls.BaseDataList.DataBind() +54
System.Web.UI.WebControls.BaseDataList.EnsureDataB ound() +74
System.Web.UI.WebControls.BaseDataList.CreateChild Controls() +72
System.Web.UI.Control.EnsureChildControls() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

fakhravari
پنج شنبه 23 خرداد 1392, 11:30 صبح
دیتالیست select شرط داره؟

mazaher5723
پنج شنبه 23 خرداد 1392, 12:20 عصر
نه شرط نداه همشونو select کردم