Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 02, 2006 01:51 PM by jm06
Dec 02, 2006 08:00 AM|LINK
I am deploying a web page (iis 5.1 over Windows XP). For that I directly click on "Publish Web Site" in the "Build" menu of Visual Studio 2005. Normally once published the page works fine, but sometimes it started to give me an error in a page with 12 calendars
on it. The funny thing is that without doing nothing and after a while the page start to work fine. I do not know if I am missing something?.
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30456: 'Calendar1_DayRender' is not a member of 'ASP.calendario_aspx'.
Line 91: <tr>
Line 92: <td style="width: 100px; height: 182px;">
Line 93: <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999" Visible="False"
Line 94: CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
Line 95: ForeColor="Black" Height="180px" ShowNextPrevMonth="False" Width="180px" OnDayRender="Calendar1_DayRender" OnSelectionChanged="Calendar1_SelectionChanged">
Line 91: <tr>
Dec 02, 2006 10:43 AM|LINK
this error basically says that you have defined in the asp code
function Calendar1_DayRender, to handle the DayRender event of the Calendar control.
But this function is to found in the code behind class.
So probably you have renamed it in the code behind class, and forgot to rename it in the asp file ?
Or you could have changed the signature of the method to , to accept other arguments.
Dec 02, 2006 10:59 AM|LINK
Yani my problem is that after I published the page, sometimes it works and sometimes it give me the above error. I think it is nothing about the code (since it works perfectly in visual studio 2005 and most of the time it works perfectly once i published
it), I think is something relate with how I published the web (actually I used publish web option in Visual studio 2005) or with iis 5.
Dec 02, 2006 12:42 PM|LINK
Could you paste some code of the code behind class ?
Dec 02, 2006 01:51 PM|LINK
This is the code behind: