HELP! Parser Error Message: Could not load type 'NewPublicSite.headTags'.

D

darrel

Ugh. I've been dealing with this error for about a week now. I have a
usercontrol file that spits out that error whenever I try to build. A
coworker can build the same usercontrol into his copy of the project just
fine.

If I take my coworkers copy of all the files, it will run, but building
won't update the DLL on my computer.

So I finally gave in, deleted everything, made a new project, and now, when
building, I get the same old error with this particular control. Any ideas
on what it could be? Here's some of the code just for comparison:

ascx:
 
D

darrel

Oops...code in question:

=============================================
ASCX:

<%@ Control Language="vb" CodeBehind="headTags.ascx.vb"
AutoEventWireup="false" Inherits="NewPublicSite.headTags"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>

<!-- CSS -->
<% writeOutCSS() %>

=============================================
ASCX.VB:

Imports System.IO
Imports System.web
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.UI.WebControls
Imports Microsoft.VisualBasic

Public MustInherit Class headTags
Inherits System.Web.UI.UserControl

rest of page code...

==============================================

are there any obvious typos/syntax errors there?
 
D

darrel

Aha!

Progress...I've discovered that it's not this particular control...it's ALL
of the controls. If I delete each control one-by-one, it just gives me the
same error on the very next control.

So...it seems as if my problem is that maybe my DLL isn't being properly
updated? Any ideas as to what to try next?

-Darrel
 
D

darrel

OK...I just realized that the controls in question were were showing up as
white icons in my solution explorer. So...I reimported them all again.

Success!

Sort of.

Now, when I build, no errors, but aspnet_wp.exe hangs. I have to force quit
it. After I force quite, I can reload the page, and it works fine.

So, I'm close. Something is still messed up somewhere, though...

-Darrel
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top