• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

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
0
ziwez0
Asked:
ziwez0
1 Solution
 
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
 
ziwez0Author Commented:
done still same prob
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
mjmarlowCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now