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="Lea
gueID"
DataNavigateUrlFormatStrin
g="Main.as
px?LeagueI
D={0}"
DataTextField="LeagueName"
HeaderText="Leagues" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="LeaguesODS" runat="server"
OldValuesParameterFormatSt
ring="orig
inal_{0}" SelectMethod="GetLeagues"
TypeName="LeaguesBLL"></as
p:ObjectDa
taSource>
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