473,770 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TypeName property of ObjectDataSourc e Not Found

I've got a simple (I think) asp.net application.

I've created a DataSet in App_Code/ItemDataSet.xsd . Tested connection,
seemed to work fine.

In my ASPX file, I first dropped an ObjectDataSourc e onto the form, and
pointed it to the dataset created above.

I then dropped a GridView on the form, and selected the ObjectDataSourc e
I created above. In the Design view it seems to be at least loading the
columns (if not the data) correctly.

When I try to access on the server, I am getting the following error
(full stack trace at bottom of message):

[InvalidOperatio nException: The type specified in the TypeName property
of ObjectDataSourc e 'ObjectDataSour ce1' could not be found.]

Thanks for any insight.

here is my aspx code:

<%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Defau lt.aspx.cs"
Inherits="admin _Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Molone y Store</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ObjectData Source ID="ObjectDataS ource1" runat="server"
DeleteMethod="D elete"
InsertMethod="I nsert"
OldValuesParame terFormatString ="original_{ 0}" SelectMethod="G etData"
TypeName="ItemD ataSetTableAdap ters.STORE2_ITE MTableAdapter"
UpdateMethod="U pdate">
<DeleteParamete rs>
<asp:Paramete r Name="Original_ id" Type="Int32" />
</DeleteParameter s>
<UpdateParamete rs>
<asp:Paramete r Name="host_id" Type="Int32" />
<asp:Paramete r Name="sku" Type="String" />
<asp:Paramete r Name="name" Type="String" />
<asp:Paramete r Name="price" Type="Decimal" />
<asp:Paramete r Name="descripti on" Type="String" />
<asp:Paramete r Name="featured" Type="Boolean" />
<asp:Paramete r Name="popularit y" Type="Int32" />
<asp:Paramete r Name="taxRate" Type="Decimal" />
<asp:Paramete r Name="Original_ id" Type="Int32" />
<asp:Paramete r Name="id" Type="Int32" />
</UpdateParameter s>
<InsertParamete rs>
<asp:Paramete r Name="host_id" Type="Int32" />
<asp:Paramete r Name="sku" Type="String" />
<asp:Paramete r Name="name" Type="String" />
<asp:Paramete r Name="price" Type="Decimal" />
<asp:Paramete r Name="descripti on" Type="String" />
<asp:Paramete r Name="featured" Type="Boolean" />
<asp:Paramete r Name="popularit y" Type="Int32" />
<asp:Paramete r Name="taxRate" Type="Decimal" />
</InsertParameter s>
</asp:ObjectDataS ource>
&nbsp;&nbsp;<as p:GridView ID="GridView1" runat="server"
AutoGenerateCol umns="False"
DataKeyNames="i d" DataSourceID="O bjectDataSource 1">
<Columns>
<asp:BoundFie ld DataField="id" HeaderText="id"
InsertVisible=" False" ReadOnly="True"
SortExpression= "id" />
<asp:BoundFie ld DataField="host _id"
HeaderText="hos t_id" SortExpression= "host_id" />
<asp:BoundFie ld DataField="sku" HeaderText="sku "
SortExpression= "sku" />
<asp:BoundFie ld DataField="name " HeaderText="nam e"
SortExpression= "name" />
<asp:BoundFie ld DataField="pric e" HeaderText="pri ce"
SortExpression= "price" />
<asp:BoundFie ld DataField="desc ription"
HeaderText="des cription" SortExpression= "descriptio n" />
<asp:CheckBoxFi eld DataField="feat ured"
HeaderText="fea tured" SortExpression= "featured" />
<asp:BoundFie ld DataField="popu larity"
HeaderText="pop ularity" SortExpression= "popularity " />
<asp:BoundFie ld DataField="taxR ate"
HeaderText="tax Rate" SortExpression= "taxRate" />
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>
and the full text of the stack trace:
[InvalidOperatio nException: The type specified in the TypeName property
of ObjectDataSourc e 'ObjectDataSour ce1' could not be found.]
System.Web.UI.W ebControls.Obje ctDataSourceVie w.GetType(Strin g
typeName) +1261639

System.Web.UI.W ebControls.Obje ctDataSourceVie w.ExecuteSelect (DataSourceSele ctArguments
arguments) +1936
System.Web.UI.D ataSourceView.S elect(DataSourc eSelectArgument s
arguments, DataSourceViewS electCallback callback) +17
System.Web.UI.W ebControls.Data BoundControl.Pe rformSelect() +149
System.Web.UI.W ebControls.Base DataBoundContro l.DataBind() +70
System.Web.UI.W ebControls.Grid View.DataBind() +4
System.Web.UI.W ebControls.Base DataBoundContro l.EnsureDataBou nd() +82

System.Web.UI.W ebControls.Comp ositeDataBoundC ontrol.CreateCh ildControls()
+69
System.Web.UI.C ontrol.EnsureCh ildControls() +87
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +41
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +161
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +161
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +1360

Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.210
Jan 3 '07 #1
0 6991

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
338
by: Joey Chömpff | last post by:
LS, I've an object who has an readonly property named Id, this property is filled from the database with an Identity-value. When I execute "DetailsView1.UpdateItem(true);" then I get the following exception: The 'Id' property on the type specified by the DataObjectTypeName property in ObjectDataSource 'ObjectDataSource1' is readonly and its
0
1175
by: Ashish | last post by:
Hi All, I want to be able to specify typename property of the object datasource to the classname of the code behind of the user control that its declared on.. for example <asp:ObjectDataSource ID="odsImageSets" runat="server" TypeName="Controls_ImageSets
0
1822
by: mofsoft | last post by:
Visual Studio 2005/ ASP.Net 2.0 DAL in C# exclusively using XSD (strongly typed datasets) WEB in C# references the DAL as needed via ObjectDataSources My app has about 5 or 6 "reference" tables that I am creating a "maintenance" web page for. The page has a dropdown control that lists all of the reference table names. You pick the "Status Ref" item and the GridView is refreshed to show the status data. Pick the "Stage ref" item and...
0
3640
by: Anabela Silva | last post by:
To anyone who has experienced this problem! Could not find a property named '... ' on the type specified by the DataObjectTypeName property in ObjectDataSource '...' I've been looking at forums about the problem that devellopers have in using ObjectDataSource when trying to update or delete a record. There has been a lot of talk like... you have to implement a list if you wanna use direct methods in such operations, etc etc
1
3380
by: vncntj | last post by:
I have this class file within the App_Code folder CorrectionsDB.cs namespace CorrectionsDB.cs { using System; using System.Data; using System.Configuration; using System.Web;
1
3538
by: Allan Ebdrup | last post by:
I have a asp.net v2 website that runs fine on our development server. I have published the website to a stage server and it runs fine, but when I publish it to production I get the following error: The type specified in the TypeName property of ObjectDataSource 'PositionPostingsDataSource' could not be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
0
1516
by: jobs | last post by:
re: ObjectDataSource SelectMethod TypeName returning a Dataset? is this really a DAL? Pardon my misguided email on the subject... I'm working in asp.net 2.0 and vb.net 2005. Say I don't want any SQL code in my presentation layer, and I want all my SQL operations accessable through methods I've developed in vb.net of a class I will conviently call MyDAL.
0
2293
by: Andrew Cooper | last post by:
I posted this in the aspnet newsgroup but thought I might have more luck with an answer here. I'd really appreciate any help I can get. Thanks. I've got a report that is using an ObjectDataSource to populate its data. The problem is that the report takes longer than 30 seconds to generate so it times out. If I were using an SQLDataSource object I know how to set the Command.Timeout to account for this but I can't find the Timeout...
1
2126
by: yanni | last post by:
Hello, I'm creating asp.net 2.0 web site app, I tried to use ¡°ObjectIssue.Page1¡± as TypeName of ObjectDataSource, received error message ¡°The type specified in the TypeName property of ObjectDataSource 'object1' could not be found.¡±, If I instead use a class in App_Code folder as TypeName, it works find. But I can¡¯t figure out why it didn¡¯t work for aspx page class?
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.