URGENT HELP - The type specified in the TypeName property of ObjectDataSource

Works fine on my local machine but when deployed:

Exception Details: System.InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ODS_DS' could not be found.

help
LVL 2
ziwez0Asked:
Who is Participating?
 
mjmarlowConnect With a Mentor Commented:
Try this:
1.  Compile your project.
2.  Publish web, but to a local folder
3.  Go into your working development version of the website and copy bin folder to the bin folder in the publish web folder.
4.  Remove the web.config file from your publish web folder.
5.  Remove all files except web config and and non asp.net content that is not part of the "publish web" fodler from your production server version of the web.  
6.  Copy the contents of your publish web folder to your production server.
0
 
DreamMasterCommented:
Hi ziwez0,

The error you are getting would indicate something missing or maybe a connectionstring that is not correct. Are you by any chance using a SQL Express version on your local machine and not on the deployed site? Did you change your connectionstring?

Did you copy all the files, it could be that there is a class file missing for example, in this case that would be the ODS_DS class, either it isn't being compiled, or for some reason not being moved. It all depends on the way you deploy your site.

Regards,
Max.
0
 
jeebukarthikeyanCommented:
hi,

copy the App_Code

and then run

b u d d  h a
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
ziwez0Author Commented:
done still same prob
0
 
ethothsCommented:
Sounds like a referrenced dll is missing. Copy the bin folder also.
0
 
DreamMasterCommented:
I'd simply check for any differences in available sites. There has GOT to be something missing.

Regards,
Max.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.