Advertisement

03.22.2008 at 05:59AM PDT, ID: 23261352
[x]
Attachment Details

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

Asked by ccanipe in .Net Editors & IDEs, MS SQL Server, Microsoft Visual C#.Net

Tags: c#, The type specified in the TypeName property of ObjectDataSource 'LeaguesODS' could not be found.

I have created a website using Visual Web Deveoper 2008 Express and SQL 2005 Express.  It is coded in C#.  The site is working fine on my local PC, but when I upload it, I get the following error message:
"The type specified in the TypeName property of ObjectDataSource 'LeaguesODS' could not be found. "  I have verified that all my files are uploaded.  Oh, and when I upload the database files, I upload them to SQL 2005 instead of SQL 2005 Express.

Here is my code for that part:
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        DataKeyNames="LeagueID" DataSourceID="LeaguesODS" Width="150px">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="LeagueID"
                DataNavigateUrlFormatString="Main.aspx?LeagueID={0}"
                DataTextField="LeagueName" HeaderText="Leagues" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="LeaguesODS" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetLeagues"
        TypeName="LeaguesBLL"></asp:ObjectDataSource>

I have been reading around, and a lot of sites mention to put a namespace for the objectdatasource.  Where would I find what my project's namespace is?  Also, could I be getting this error because of something else??Start Free Trial
[+][-]03.22.2008 at 09:31AM PDT, ID: 21186862

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.23.2008 at 09:14AM PDT, ID: 21189946

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.24.2008 at 08:03AM PDT, ID: 21193961

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.24.2008 at 07:40PM PDT, ID: 21199154

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, MS SQL Server, Microsoft Visual C#.Net
Tags: c#, The type specified in the TypeName property of ObjectDataSource 'LeaguesODS' could not be found.
Sign Up Now!
Solution Provided By: ccanipe
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628