IIS Can't Find Classes in App_Code

J

jehugaleahsa

Hello:

We recently moved from Visual Studio 2005 to 2008. Today I published
an older web application using 2008. I had to migrate this project.

When I run this project from my local machine, it works fine. However,
when I publish it using FrontPage Server Extensions to our development
server, the web page always fails with the following message:

Could not load type 'CorrespondenceLogDataTable' from assembly
'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

I copied the App_Code.dll from off the server and looked at it with
the Object Browser. I can see all the classes are inside of it. I am a
little confused. I can see it, but IIS can't.

I checked that all my libraries are hitting .NET 2.0 and that all the
assemblies are the same versions on both machines. I can't see the
difference.

My guess is this has something to do with upgrading to 2008.

Thanks,
Travis
 
J

jehugaleahsa

I ended up resolving this issue. It turns out that Oracle 11g was
sticking configuration information into my machine.config file.

We have both the 10g and the 11g clients installed on our development
machines. However, our web servers only work with 10g.

I figured it out when I deployed another application. It was pretty
straight forward about the DLL for Oracle missing. I think the web
server was trying to compile my APP_CODE and hit the missing
reference. I don't know why the App_Code DLL that was out there looked
all right. Perhaps it only stores it if it compiles or something.

Another thing that is interesting is that it only affects VS 2008. I
assume this is because of all the VS2008 intergration code that Oracle
shipped with 11g.

The temporary solution was to uninstall Oracle 11g client from my dev
machine. I will see what I can do to run them side-by-side.
 
R

raylopez99

Another thing that is interesting is that it only affects VS 2008. I
assume this is because of all the VS2008 intergration code that Oracle
shipped with 11g.

The temporary solution was to uninstall Oracle 11g client from my dev
machine. I will see what I can do to run them side-by-side.

yeah if one was conspiracy minded they would say it's a plot by one
company to make the other company look bad.

RL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top