473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

IIS Can't Find Classes in App_Code

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
Sep 3 '08 #1
2 2718
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.
Sep 4 '08 #2
On Sep 4, 12:00*pm, "jehugalea...@gmail.com" <jehugalea...@gmail.com>
wrote:
>
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

Sep 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jay Douglas | last post by:
I have a set of pages that inherit from a base class in the App_Code folder. The class looks something like: public class MyBaseClass : System.Web.UI.Page In various stages of the life cycle I...
9
by: Fat Elvis | last post by:
I'd like to extend some of my Asp.net pages by using Partial Classes. Example ASP.Net Page: public partial class Admin_Customer : System.Web.UI.Page { protected void Page_Load(object sender,...
8
by: Herb | last post by:
In my design environment this works fine, but when I deploy it I get an error. I have a class "MessageBox" defined in my "App_Code" folder. My aspx file contains the line "Imports MessageBox" at...
2
by: tbh | last post by:
hi, hope this cross-post is OK. it's unclear to me whether this question belongs more under vstudio or dotnet... i'm using VS2005 pro and am one co-developer of a web solution that is getting to...
9
by: rn5a | last post by:
Is putting a VB class file in the special directory named App_Code the same as relocating the VB class file from the App_Code directory to another directory & then using the VBC tool, compiling the...
5
by: Alias | last post by:
Hi - I'm trying to implement a custom RoleProvider based on the SqlRoleProvider. I keep receiving a an error that it can't load type 'MyRoleTest.MyRoleProvider' when trying to load my...
11
by: Sylvia A. | last post by:
How can I define global classes in web application ? Classes can be set to session variables ? Thanks
5
by: Randy | last post by:
I've converted a VS 2003 project to VS 2005. I have one utility class that it put in the APP_CODE directory. When I try and compile I'm getting this error... Error 1 The type or namespace name...
1
by: realfantasy | last post by:
hi guys i have a problem regarding asp.net/vb.net, normally we make utility classes or any custom classes and put them in app_code folder but i need to put those class files outside of app_code...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.