CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 9/3/2003 10:15:05 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
MHeitlager
Asp.Net User
Custom Control Parser Error9/3/2003 10:15:05 AM

0/0

Hi,

I'm getting the following error after having created a custom control and trying to run it off a web page.

Parser Error Message: Could not load type AESWebAccess.Login.SimpleText from assembly AESWEBACCESS, Version=1.0.1341.7455, Culture=neutral, PublicKeyToken=null.

Source Error:


Line 21: <br>
Line 22: Enter your name:
Line 23: <Custom:SimpleText Text=" " OnChanged="Text_Changed" id="Box" runat="server" />
Line 24: <br>
Line 25: <br>


Source File: C:\inetpub\wwwroot\AES NET PROJECTS\AESWEBACCESS\TestStuffHere.aspx Line: 23


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573



Any ideas what causes this error? I haven't been able to run even very simple custom controls. I'm using visual Studio .net 2002. I did upgrade to .net 1.1 framework. Is there some compatibility issue?

Thanks for the help.

Marcel
Blynk
Asp.Net User
Re: Custom Control Parser Error9/3/2003 2:13:12 PM

0/0

This could be caused by a couple of things. First make sure you have a namespace declared for that assembly via a page declaration at the top of your web form. You will then use whatever TagPrefix you specify to access the controls of that assembly. Here is an example:

<@ register tagprefix="myPrefix" namespace="AssemblyNamespace" Assembly="MyAssembly.MyControls">

The other issue maybe that if you already have this declared in your web form, the assembly it's referencing is either not in the GAC of the machine attempting to load the assembly or the assembly isn't in the bin direcotry of your web app.

- James
MHeitlager
Asp.Net User
Re: Custom Control Parser Error9/3/2003 3:45:04 PM

0/0

Thanks for the reply. I think I have done all that you suggested. I still have the error. The same error appears on my laptop which runs version 1.0 of .net framework.

Here are some more details of what I have:


The .aspx file contains the following @ Register directive:

<%@ Register TagPrefix="Custom" Namespace="AESWebAccess.Login" Assembly = "AESWEBACCESS" %>


SimpleText.vb contains the following declaration:

Namespace AESWebAccess.Login

Public Class SimpleText
Inherits Control
Implements IPostBackDataHandler


The name of the assembly in the bin directory is AESWEBACCESS.dll. Visual Studio .net created it for the whole application when I built the solution.

Any ideas?
MHeitlager
Asp.Net User
Re: Custom Control Parser Error9/4/2003 7:26:18 AM

0/0

Here is some more info, still haven't figured it out.

When I use the command line compiler and then move the .dll to the bin directory, the custom control works fine-Any of them.

But whenever I compile it in the Visual Studio .Net assembly it gives me the above error. Am I missing something somewhere? Do I need to add anything to the Code Behind file? I can't find anything anywhere in documentation or online to help me figure out what causes this problem.

Thanks for the help.
Blynk
Asp.Net User
Re: Custom Control Parser Error9/4/2003 2:18:18 PM

0/0

What does the directory structure of your app look like. A common issue is attempting to use assemblies that are in different logical applications. This would come into play if you have say an application at:

http://somewhere.com/myApplication

and then a second application under that:

http://somewhere.com/myApplication/mySecondApp

The issue comes into play if both are virtual directories or represented in the CLR as seperate AppDomains. A reference to an assembly cannot be made for an assembly in another application.

- James
MHeitlager
Asp.Net User
Re: Custom Control Parser Error9/4/2003 6:26:35 PM

0/0

Thanks for the suggestion.

I've looked at that as well. It's the only application running in that virtual directory. I've created new applications with VS.net and it won't work then either. The only time I can get it to work is if I manually compile the custom control. I've even deleted the .dll that VS.net creates in the bin directory and recompiled the app. It never works.

I've even deleted the temporary files from the shadow copy directories. Still no luck.
This is EXTREEEEMLY frustrating.


6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET in a Nutshell: In a Nutshell Authors: G. Andrew Duthie, Matthew MacDonald, Pages: 979, Published: 2003
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Inside ASP.NET Authors: Scott Worley, Pages: 704, Published: 2001
Web Database Applications with PHP and MySQL: Building Effective Database-Driven Web Sites Authors: Hugh E. Williams, David Lane, David John Lane, Pages: 796, Published: 2004
Pro .NET 2.0 Windows Forms and Custom Controls in C#: From Professional to Expert Authors: Matthew MacDonald, Pages: 1037, Published: 2005
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
PHP Cookbook Authors: David Sklar, Adam Trachtenberg, Safari Tech Books Online, Pages: 608, Published: 2003
Pro .NET 2.0 Graphics Programming: From Professional to Expert Authors: Eric White, Pages: 445, Published: 2005
Visual Basic 2008 Programmer's Reference: Programmer's Reference Authors: Rod Stephens, Pages: 1248, Published: 2008

Web:
Nabble - Mono - ASP.NET - Custom Control parsing error Custom Control parsing error. Hello, I am pretty new to mono (and asp too...), but I'm fronting a problem that I don't unterstand. Using Mono (using asp.et, ...
asp.net 2.0 and a user control Parser Error - .NET ASP asp.net 2.0 and a user control Parser Error. ... The title and body properties for that custom control were PlaceHolders. So ...
CodeProject: Custom ComboBox server control for ASP.NET. Free ... When I tried using the same tag prefix as my custom combobox control, I got a parse error. I think I could use the regular html




Search This Site:










x86 64 bit licensing

problem with dropdownlist in usercontrol

how do i refer to a public class in my user control?

smartnavigation and javascript

webhost4life problems

list<string> collection persistance problem with server control

custom controls

getting data for hierarchicaldataboundcontrol

eventargs with text/value properties

can you build multiple server controls in one project file? or do they all need seperate projects?

using a user control in a custom server control.

login error with microsoft crm 3.0 for service providers

control problem

composite control with validators and inamingcontainer

expose properties of user control to visual studio properties toolbox

listing forms in the project from a custom control

calling functions from main page aspx.vb stored in control's asxc.vb

windows virtual server 2005

problem with databinding custom server control

1&1 ms hosting

serialize a user control?

connection string as a control - urgent

help starting my hsp ( hosting service provider).

.net web application project error

how to write data to htmlinputhidden?

how to develop a control that uses attributecollection

proximity search

calendar control need some help

why is processpostdata called twice?

addparsedsubobjects vs other methods for persisting control properties

  Privacy | Contact Us
All Times Are GMT