SERVER CONTROL DOESN"T RUN

L

Lloyd S

I wrote a server control. It does not run because it is looking for the
assembly. I get an error messgage in the page saying:

Parser Error Message: File or assembly name CustomCalendar, or one of its
dependencies, was not found.
Here is the Assembly Load Trace:


=== Pre-bind state information ===
LOG: DisplayName = CustomCalendar
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/WroxUnitedWebApp
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: CustomCalendar
LOG: Attempting download of new URL
file:///C:/WIN2003/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/wroxunitedwebapp/70462924/5a513a47/CustomCalendar.DLL.
LOG: Attempting download of new URL
file:///C:/WIN2003/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/wroxunitedwebapp/70462924/5a513a47/CustomCalendar/CustomCalendar.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WroxUnitedWebApp/bin/CustomCalendar.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WroxUnitedWebApp/bin/CustomCalendar/CustomCalendar.DLL.
LOG: Attempting download of new URL
file:///C:/WIN2003/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/wroxunitedwebapp/70462924/5a513a47/CustomCalendar.EXE.
LOG: Attempting download of new URL
file:///C:/WIN2003/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/wroxunitedwebapp/70462924/5a513a47/CustomCalendar/CustomCalendar.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WroxUnitedWebApp/bin/CustomCalendar.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/WroxUnitedWebApp/bin/CustomCalendar/CustomCalendar.EXE.

The basic format of the tag I put on the web page is:
<%@ Register TagPrefix="WroxUnitedCalendar" Namespace="WroxUnited" Assembly
="CustomCalendar" %>

And the tag I put in the HTML code is:

<WroxUnitedCalendar:CustomCalendar id="EventCalendar" runat="server"
OnSelectionChanged="EventCalendar_SelectionChanged" />
If someone can help me it would be greatly appreciated.

thanks,
 
M

Matt

Have you tried adding the assembly in web.config?

<compilation defaultLanguage="c#" debug="true">
<assemblies>
<add assembly="MyAssembly, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=7ffa53a435ec122d"/>
</assemblies>
</complication>
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top