473,765 Members | 1,965 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 6990

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
9399
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
10161
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
9833
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7378
isladogs
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...
0
5275
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...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
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.