473,594 Members | 2,655 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>
<form id="form1" runat="server">
<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">
<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" />
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()
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 6981

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

Similar topics

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
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
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...
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
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;
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...
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.
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...
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?
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,...
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...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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();...
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...
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.