04-18-2007, 10:08 AM
It works on my local machine, but on the server it's giving me this error:
"The type specified in the TypeName property of OjbectDataSrouce 'odsUnProperty' could not be found."
I've read a ton of info & searched for a while and everything I'm finding says that I need to put a namespace in front of the TypeName property...<asp:ObjectDataSource ID="odsUnProperty"
UpdateMethod="Update">This might be a stupid, but I can't find my application's "namespace". MS said it should be in the pages tag in the web.config, but I don't have a namespace there. I tried adding one and referencing it in typename, but it still didn't work. I'm getting frustrated and would love to have some input on this. Thanks!
04-19-2007, 11:47 AM
Where is this located:
I am assuming this object lives in some class library or code file. While I tend to do most of my development now in C# or other languages, I do know you can't create seperate namespaces within classes in VB.net, since it all relative or it basically appends to the default namespace of the project file.
Is this object in your App_Code base?
Also is the Server running in ASP.net 2.0 mode? These object sources are not 1.1 compliant - - verify the server configuration in IIS is set up to use v2.0 of the framework and verify 2.0 is installed on the Web Server
04-19-2007, 12:09 PM
It's located in my App_Code folder. The IIS virtual dir is in v2.0 and I've installed v2.0 personally on the server, so I know it's there. When you say "the Server running in ASP.net 2.0 mode" do you mean the IIS dir is set to that, or is there another setting somewhere I need to verify. Thanks!
ps - I have it running on it's own app pool because I've got v1.1 apps running on this server also.
04-19-2007, 12:28 PM
Open up IIS - select the Web Site Instance - go to the ASP.net tab - verify the ASP.net version is 2.0.50727. It will not default to this, it will default to the first known version association which is typically 1.1x, etc.
You can run 1.1 apps and 2.0 apps on the same web server with the 2.0.50727 version enabled.
But this is typically a RUNTIME or DEPLOYMENT problem. If I understand you correctly, this is a design time issue, the code won't even compile...is that correct? If the code compiles and runs this might solve your issue.
TypeName probably expects namespace, assembly. App_Code is a local reference instance and should be a resolvable assembly. So try this:
04-19-2007, 02:58 PM
I've already checked the version in IIS and it's 2.0, so it's not that.
This is in fact a deployment issue. It runs fine on my local box, but gives me the error on the server.
I've gone so far beyond this now because I couldn't figure it out. I'm trying to do everything manually now. It's no fun either. I appreciate the help.
04-20-2007, 06:44 AM
I triedTypeName="dsUnPropertyTableAdapters.UNPROPTableAdapter, App_Code" and it still gives me the same error.
04-21-2007, 10:19 AM
Off hand, not sure unfortunately. So this exact project compiles and runs on your local development machine, but it won't compile and run at the server?
Just out of curiousity, you are developing and compiling ON THE WEB SERVER? Typically when you publish a web site to a web server it there for the purpose of browsing/you aren't working in the IDE at the server.
Typically you leave your production server as 'clean' it simply has the framework requirements and runtimes needed to run your website - - all development and compiling is done at a local development machine or build server.
But that is a side issue. Can you show me the code that currently lives in App_Code? What is the actual code or wizard definition of UNPROPTTableApapter? And do you reference this object in your code behind anywhere? What is the full markup of the web form that holds this code?