CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
   Explore    Item Entry    Profile    Invite   History    Resources   SiteMap  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML




Zone: > newsgroup > asp.net forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 4/17/2006 12:45:04 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
RedPine
Asp.Net User
Can not find TypeName of ObjectDataSource???4/17/2006 12:45:04 PM

0/0

After coverting 2005 Web Site Project to 2005 Web Application Project, I got the following errors on all ObjectDataSource:

The type specified in the TypeName property of ObjectDataSource 'odsName' could not be found.


Any help is appreciated.
ScottGu
Asp.Net User
Re: Can not find TypeName of ObjectDataSource???4/17/2006 11:50:01 PM

0/0

Hi Red,

Because your class is now in the code-behind project assembly, you'll want/need to add an assembly prefix for the ObjectDataSource rather than just referencing the class name directly. 

Hope this helps,

Scott

RogerWilco
Asp.Net User
Re: Can not find TypeName of ObjectDataSource???10/20/2006 4:35:36 PM

0/0

ScottGu:

Because your class is now in the code-behind project assembly, you'll want/need to add an assembly prefix for the ObjectDataSource rather than just referencing the class name directly. 

I'm having this exact same issue. What is the "assembly prefix" for my code-behind? How do I determine this? I've done a couple dozen searches on the net and through online help and I can't figure this out.
 

ScottGu
Asp.Net User
Re: Can not find TypeName of ObjectDataSource???10/21/2006 2:13:40 AM

0/0

Hi Roger,

Your assembly name will actually be determined by the project settings (you can look this up or change it in the project properties page in VS).  You can also determine in by looking in the \bin directory of the application (for example: Foo.dll would mean the assembly name was "Foo").

I think in the above example I was actually meant namespace instead of assembly name though.  This can also be looked up in the project properties page if you are using VB.  So if the namespace for the project is "Foo" and your class name is "Bar", you'd change the typename in the ObjectDataSource to "Foo.Bar".

Hope this helps,

Scott

CptCoathanger
Asp.Net User
Re: Can not find TypeName of ObjectDataSource???11/16/2007 2:35:25 PM

0/0

Fixed the problem for me.  Nice one Scott, cheers!

5 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Other Resources:

i can't logout as Admin...why? - newsgroup.asp-net-forum.general_asp ... i can't logout as Admin...why?, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.security, Date: 7/1/2007 11:22: ... can not find typename of objectdatasource? ...
Flash nav inserting html links into div -example- - macromedia.flash ... about SSI, but I cannot find how to open content into a Div. You can see what ... the typename property of objectdatasource 'objectdatasource1' could not be found. ...
Can not find TypeName of ObjectDataSource??? - ASP.NET Forums ... VS 2005 Web Application Projects " Can not find TypeName of ObjectDataSource? ... is appreciated. Re: Can not find TypeName of ObjectDataSource??? 04-17-2006, ...
GridView - AJAX('Atlas') - ObjectDataSource - can anybody can help ... I can not find any examples where a GridView is wired up to something like a DAL so ... SelectMethod="ThingsForSale_SelectAll" TypeName="YourCompany.Modules. ...
Feedback: ObjectDataSource cannot call methods of base interface When the TypeName of an ObjectDataSource is set to the name of an interface, and ... System.InvalidOperationException : ObjectDataSource '' could not find a non ...
Feedback: ObjectDataSource cannot bind to GUIDs for a Webservice Select ... ... type can not be converted ... new ObjectDataSource(); oDS.TypeName = "Class1" ... can link webservice with a prameter of Guid type. File Attachments. 0 ...
The Boca Raton DotNetNuke Meetup Group ConnectionString property, ObjectDataSource exposes a TypeName property that ... We do not need to write any code like the ObjectDataSource to use this object. We can ...
p2p.wrox.com Forums - Can't find control in GridView RowCommand ... TypeName="Searing.Sprint.CusotmerAdvocacy.Dal.MemberDB"></asp:ObjectDataSou rce> ... is always nothing - so you cannot tie to the specific row that ...
p2p.wrox.com Forums - Can't find control in GridView RowCommand ... of ways to get a reference to the selected row--but e.commandargument ... TypeName="Searing.Sprint.CusotmerAdvocacy.Dal.MemberDB"></asp:ObjectDataSou rce> ...
ASP.NET Tutorials: Data Source Controls in ASP.NET 2.0 You can use Typename property of ObjectDataSource control identifies the class ... for navigation data and does not support common database operations like sorting, ...



 
All Times Are GMT