473,387 Members | 1,798 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.

Banging my head: Could not load type ERROR

What does that MEAN?

I'm working on a VS project with another person. We keep our DLLs and files
in sync with each other. Last week I hit a snag where i kept getting the
'could not load type' error with one of my usercontrols. The other person
can take my exact same files, compile it into his copy, and it works fine.

So, I deleted everything I had, reimported all of his files, and things were
working again on my localhost.

However, I can not change any of the VB code of the one particular
usercontrol and have VS.net compile it. It seems to ignore my changes and
goes on using the DLL I got from the other person. If I delete said DLL in
hopes of forcing a rebuild, I'm back to getting the 'Could not load type'
error again.

AAAAAARRRRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGHHHHHH HHHHHHHHHHHHHHHH!

Any idea? I've looked online and found that this seems to be a really genric
error and to just keep trying rebuilding/resetting things until it works.
I'm getting nowhere with this.

-Darrel
Nov 18 '05 #1
7 3407
Just checking whether you are both using the same project name?

It is possible that your Inherits attribute is different.

<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.vb" Inherits="p4320work.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
"darrel" <no*****@hotmail.com> wrote in message
news:uv**************@TK2MSFTNGP11.phx.gbl...
What does that MEAN?

I'm working on a VS project with another person. We keep our DLLs and
files
in sync with each other. Last week I hit a snag where i kept getting the
'could not load type' error with one of my usercontrols. The other person
can take my exact same files, compile it into his copy, and it works fine.

So, I deleted everything I had, reimported all of his files, and things
were
working again on my localhost.

However, I can not change any of the VB code of the one particular
usercontrol and have VS.net compile it. It seems to ignore my changes and
goes on using the DLL I got from the other person. If I delete said DLL in
hopes of forcing a rebuild, I'm back to getting the 'Could not load type'
error again.

AAAAAARRRRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGHHHHHH HHHHHHHHHHHHHHHH!

Any idea? I've looked online and found that this seems to be a really
genric
error and to just keep trying rebuilding/resetting things until it works.
I'm getting nowhere with this.

-Darrel


Nov 18 '05 #2
Your cached copy of your project is probably out of sync with the master
copy. Have you tried (from the Project) menu, "Web Project/Synchronize All
Folders"

If that doesn't work, you may want to delete the files in your cache
(C:\Documents and Settings\profileName\VSWebCache).
"darrel" <no*****@hotmail.com> wrote in message
news:uv**************@TK2MSFTNGP11.phx.gbl...
What does that MEAN?

I'm working on a VS project with another person. We keep our DLLs and files in sync with each other. Last week I hit a snag where i kept getting the
'could not load type' error with one of my usercontrols. The other person
can take my exact same files, compile it into his copy, and it works fine.

So, I deleted everything I had, reimported all of his files, and things were working again on my localhost.

However, I can not change any of the VB code of the one particular
usercontrol and have VS.net compile it. It seems to ignore my changes and
goes on using the DLL I got from the other person. If I delete said DLL in
hopes of forcing a rebuild, I'm back to getting the 'Could not load type'
error again.

AAAAAARRRRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGHHHHHH HHHHHHHHHHHHHHHH!

Any idea? I've looked online and found that this seems to be a really genric error and to just keep trying rebuilding/resetting things until it works.
I'm getting nowhere with this.

-Darrel

Nov 18 '05 #3
> Just checking whether you are both using the same project name?

Yep. Things have been chuggind along just fine for the most part.
It is possible that your Inherits attribute is different.


Yep...I've checked this and it's OK.

-Darrel
Nov 18 '05 #4
> If that doesn't work, you may want to delete the files in your cache
(C:\Documents and Settings\profileName\VSWebCache).


Neither of those worked, either.

I guess one question is a chicken/egg thing. Is the 'could not load type'
error causing the DLL not to be compiled, or am I getting that error because
the DLL isn't compiled to begin with?

-Darrel
Nov 18 '05 #5
If you can build the project from the build menu successfully, then the
problem is not compiling but loading.
"darrel" <no*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
If that doesn't work, you may want to delete the files in your cache
(C:\Documents and Settings\profileName\VSWebCache).
Neither of those worked, either.

I guess one question is a chicken/egg thing. Is the 'could not load type'
error causing the DLL not to be compiled, or am I getting that error

because the DLL isn't compiled to begin with?

-Darrel

Nov 18 '05 #6
> If you can build the project from the build menu successfully, then the
problem is not compiling but loading.


A succesful build = a DLL?

I'm not getting a DLL, so would that indicate a build problem? Any idea why
I can't build the project but another person can?

-Darrel
Nov 18 '05 #7

"darrel" <no*****@hotmail.com> wrote in message
news:eT****************@TK2MSFTNGP12.phx.gbl...
If you can build the project from the build menu successfully, then the
problem is not compiling but loading.
A succesful build = a DLL?


Yes, or in .NET terms, an assembly.

I'm not getting a DLL, so would that indicate a build problem? Any idea why I can't build the project but another person can?


Are you looking in the /bin folder of your project for the assembly?
Nov 18 '05 #8

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

Similar topics

5
by: Paul Smith | last post by:
I am hoping this is a simple problem for someone. We have two development servers, DEVNET (a web server) and DEVSQL (a DB / File Server). We have recently moved all of our .NET source code from...
1
by: sling blade | last post by:
Hi, For some reason asp.net will not let me publish a new Webpage. I am able to create a new page however when I set it as the start page and hit run, I recieve "Could not load type" error...
0
by: Curtiss | last post by:
I receive "could not load type" error message when trying to load aspx page. The DLL is built and is located in the correct bin directory. The type name in the "inherits" attribute matches the...
1
by: mrkurt | last post by:
I've built a few webservices locally that work just fine. Deployed them to a server and I get the following exception. This exception happens on even the most basic webmethod call. Hitting the...
1
by: Jim | last post by:
Good Morning, I'm hoping someone can assist me. I have a web application, the application code and web pages are sitting on an application server. I have created a virtual directory on the web...
10
by: werdna.sivad | last post by:
I built an ASP site using the new Visual Studio 2005. The site uses a simple master page. On my local machine everything runs just fine. When I publish the site and FTP it to the server, it...
0
by: LU | last post by:
Using vs.net 2003 I have a website CPE. I have a virtual directory under this Projects (works fine) I created a new solution CPE/CENA/Needs and changed the directory into a virtual directory. I...
1
by: Kirk | last post by:
I followed the procedure at this site (http://www.devx.com/asp/Article/ 29256/0/page/1) to create a custom membership provider on a ASP.NET Web Site. However, when I try this same method on a...
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...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.