DanBartels.CS.CalendarControl

This post has 266 Replies | 35 Followers

Top 150 Contributor
Posts 142
Points 2,165
ryan replied on Fri, Jan 12 2007 5:03 PM

Thanks Dan! Yes I shouldn't have got so anxious and read your comments in the merge file.

- Ryan
  • | Post Points: 5
Not Ranked
Posts 8
Points 160
Chare1 replied on Sat, Jan 13 2007 5:10 PM

I'm also having a problem with the calendar module.  Whenever I add a forum post with a date associated with it (e.g., [cal]01/10/2007[/cal]) it shows up in the database as 1753 date.  It appears the dates are not translating properly.  However, the birthdays were added to the calendar successfully during the install.  I'm running CS 2.1 sp1. 

Also, how do you get the new freetextbox wrapper to work properly?

 Thanks.

  • Filed under:
  • | Post Points: 20
Not Ranked
Posts 3
Points 45
ChillaHH replied on Mon, Jan 22 2007 11:58 AM
The Control is working correctly in Firefox, but not in IE 7. It throws an error "The Data could not be loaded" when switching the month.
  • | Post Points: 20
Not Ranked
Posts 8
Points 175
Athel replied on Mon, Jan 22 2007 2:35 PM
I posted this to another site of mine and cannot get the Calendar to work at all.  I've followed everything exactly (I know I did it right cause it works fine on the other site).  However, I cannot figure this one out...the only difference between the two is where I have it hosted.  (www.orangelinkshell.com is hosted on godaddy and works perfect www.lostagesls.com is hosted at aspnix.net and cannot get it to work).  Any ideas?
  • | Post Points: 20
Top 100 Contributor
Posts 207
Points 3,110
tmiller replied on Mon, Jan 22 2007 3:12 PM

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Geck
Path: /cs/calendar/default.aspx as HTTP GET
Referrer: /cs/
Message: Invalid object name 'dbo.db_CalendarItems'.
System.Data.SqlClient.SqlException: Invalid object name 'dbo.db_CalendarItems'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at DanBartels.CS.Calendar.CalendarSqlDataProvider.GetCalendarItemsForDates(DateTime fromDate, DateTime toDate, Int32 eventsToReturn, Int32 settingsID)
at DanBartels.CS.Calendar.CalendarSqlDataProvider.GetCalendarItems(DateTime fromDate, DateTime toDate, Int32 settingsID)
at DanBartels.CS.Calendar.CalendarItems.GetMonthItems(DateTime monthBegins, Int32 settingsID)
at DanBartels.CS.Calendar.Controls.AggregateCalendar.InitializeChildControls()
at DanBartels.CS.Calendar.Controls.AggregateCalendar.AttachChildContro

 

Any help is greatly appreciated!!!!!! (Yes I read the post about ensuring the .Net 2 files are uploaded)

Todd 

  • | Post Points: 5
Not Ranked
Posts 8
Points 175
Athel replied on Mon, Jan 22 2007 7:28 PM

Athel:
I posted this to another site of mine and cannot get the Calendar to work at all.  I've followed everything exactly (I know I did it right cause it works fine on the other site).  However, I cannot figure this one out...the only difference between the two is where I have it hosted.  (www.orangelinkshell.com is hosted on godaddy and works perfect www.lostagesls.com is hosted at aspnix.net and cannot get it to work).  Any ideas?

Actually I finally got something to show in Mozilla (Firefox) this is what my error is:

Server Error in '/' Application.

Could not load file or assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileLoadException: Could not load file or assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
DanBartels.CS.Calendar.Controls.AggregateCalendar.AttachChildControls() +0
CommunityServer.Controls.TemplatedWebControl.CreateChildControls() +90
DanBartels.CS.Calendar.Controls.AggregateCalendar.CreateChildControls() +4
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
  • | Post Points: 35
Top 100 Contributor
Posts 207
Points 3,110
tmiller replied on Tue, Jan 23 2007 9:29 AM

Duh, I screwed up the edit on the communityserver.config file

It's working great now!! 

  • | Post Points: 5
Top 10 Contributor
Posts 4,137
Points 77,110
CS Developers
Athel:

Athel:
I posted this to another site of mine and cannot get the Calendar to work at all.  I've followed everything exactly (I know I did it right cause it works fine on the other site).  However, I cannot figure this one out...the only difference between the two is where I have it hosted.  (www.orangelinkshell.com is hosted on godaddy and works perfect www.lostagesls.com is hosted at aspnix.net and cannot get it to work).  Any ideas?

Actually I finally got something to show in Mozilla (Firefox) this is what my error is:

Server Error in '/' Application.

Could not load file or assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileLoadException: Could not load file or assembly 'ComponentArt.Web.UI, Version=2006.1.1109.1, Culture=neutral, PublicKeyToken=9bc9f846553156bb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
DanBartels.CS.Calendar.Controls.AggregateCalendar.AttachChildControls() +0
CommunityServer.Controls.TemplatedWebControl.CreateChildControls() +90
DanBartels.CS.Calendar.Controls.AggregateCalendar.CreateChildControls() +4
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

You can try having support at ASPnix re apply the network service user permissions or recycle your application pool?

Are both site using the same version of asp.net? 

 

Rick Reszler


  • | Post Points: 20
Not Ranked
Posts 8
Points 175
Athel replied on Tue, Jan 23 2007 4:30 PM
The Wizard:

You can try having support at ASPnix re apply the network service user permissions or recycle your application pool?

Are both site using the same version of asp.net? 

 

Yes, both are 2.0 

  • | Post Points: 20
Top 10 Contributor
Posts 4,137
Points 77,110
CS Developers
Athel:
The Wizard:

You can try having support at ASPnix re apply the network service user permissions or recycle your application pool?

Are both site using the same version of asp.net? 

 

Yes, both are 2.0 

By chance did you forget to take the files from the bin\framework2 folder and place them directly in the bin folder?


Rick Reszler


  • | Post Points: 5
Not Ranked
Posts 5
Points 55
txice replied on Wed, Feb 14 2007 11:24 AM
Dust:

I'm still having issues using the custom FTB for the calendar with my CS install.

Using build CS_2.1.60809.935 (.net 2.0)

Get error:
Could not load file or assembly 'FreeTextBox, Version=3.1.6.34851, Culture=neutral, PublicKeyToken=5962a4e684a48b87'

Obviously, the 3.1.6 that community server is now using is far newer than 3.1.2 that the Calendar appears to be built against. Damn these hard dependancies... I feel myself falling into .net's own verison of DLL Hell :(

 Dust....did you ever get a resolution for this issue?  I'm in the exact same boat.

The (what seems to be as best I can tell) latest version of the FTB wrapper for CS2.1 comes with the following DLLs:

  • FreeTextBox.dll v3.1.6.34851
  • CommunityServer.FreeTextBoxWrapper.dll v2.1.61025.2

I noted that the file versions that ship with the (what seems to be as best I can tell) latest version of Dan's calendar control are older.  When I replace the FreeTextBox.dll noted above with the v3.1.2.18187 version from the framework2 directory in Dan's control I get the following error when ever the post editor attempts to load:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'FreeTextBox, Version=3.1.6.34851, Culture=neutral, PublicKeyToken=5962a4e684a48b87' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 1:  <%@ Control Language="c#" %>
Line 2:  <%@ Register TagPrefix="FTBW" Namespace="CommunityServer.FreeTextBoxWrapper" Assembly="CommunityServer.FreeTextBoxWrapper" %>
Line 3:  <FTBW:FreeTextBoxEditor runat="server" id="Editor" />
Line 4:  


Source File: /Themes/default/Skins/Skin-Editor-FTB.ascx    Line: 3

Assembly Load Trace: The following information can be helpful to determine why the assembly 'FreeTextBox, Version=3.1.6.34851, Culture=neutral, PublicKeyToken=5962a4e684a48b87' could not be loaded.

Also not sure what to do with the Telligent.FreeTextBoxWraper.dll that ships with Dan's calendar as the latest version of the FTB wraper changed the name of this file to CommunityServer.FreeTextBoxWraper.  I copied Dan's file into the bin directory anyways....not sure if it matters.

If I replace the original 3.1.6 version of the FreeTextBox.dll my editor works fine again and I can still make calendar entries by manually adding the cal and /cal tags to a post....but I'd like to be able to see what the editor control looks like and see how it works.

Anyone know how to fix this?

  • | Post Points: 20
Not Ranked
Posts 5
Points 55
txice replied on Thu, Feb 15 2007 2:07 PM

I know there have been previous posts regarding problems with the calendar displaying that arise as a result of deleting a post that contains the calendar tags in it.  I've been toying around with ways to possibly remedy this and came up with something that I do not believe has been mentioned here to this point and it seems to work well enough....though it's some extra steps.

I initially tried to play around with building cascading delete relationships within the database between the cs_posts and db_calendaritems tables.  This worked in the sense that when a post was deleted the corresponding entry was also deleted out of the calendar table....but CS would display an error after the post was deleted and I have yet been able to figure out a way around the error.

I then stumbled upon something in testing and playing around with this further.  As I said earlier, I don't recall this being mentioned as a work around, but it's something that could be a tad easier than trying to manually edit the database tables (especially if you are in a spot where you can't access the database directly for some reason).  Anyways, I found that if you edit a post that has the cal tags in it, and delete the cal tags and then save the post, the entry will be removed from the database table and you can then safely delete the post without causing the calendar to not display properly.

  • | Post Points: 5
Not Ranked
Posts 6
Points 75
trioptek replied on Mon, Mar 12 2007 7:28 AM

Dan,

 Will you be modifying (if it needs it) your Calendar module to work with CS2007?  I was kind of dissapointed that a Calendar wasn't part of the new version, so I hope you can shed some light on whether your module will work or if you guys are secretly working on an official Calendar module.

 Thanks,

Jimmy

  • | Post Points: 5
Not Ranked
Posts 4
Points 35
owsteve replied on Tue, Mar 27 2007 1:06 AM

Nice control Dan.  It was very easy to integrate into the CS.  I wanted to pass along a 'simple' yet required tip.  I was formatting the [cal] MM-DD-YY[/cal].   Small thing, but it requires a 4 year date formatting.  I looked around and didn't find something so I wanted to pass my info along, hopefully this helps someone. 

Steve Schofield
steve@orcsweb.com

Microsoft MVP - IIS

  • | Post Points: 5
Top 50 Contributor
Posts 325
Points 4,860
Partners
jeffesp replied on Fri, Mar 30 2007 3:44 PM

txice:

Also not sure what to do with the Telligent.FreeTextBoxWraper.dll that ships with Dan's calendar as the latest version of the FTB wraper changed the name of this file to CommunityServer.FreeTextBoxWraper.  I copied Dan's file into the bin directory anyways....not sure if it matters.

If I replace the original 3.1.6 version of the FreeTextBox.dll my editor works fine again and I can still make calendar entries by manually adding the cal and /cal tags to a post....but I'd like to be able to see what the editor control looks like and see how it works.

Anyone know how to fix this?

 

Although you wouldn't call it a fix, I developed a plugin for TinyMCE that does basically the same thing as Dan's FTB changes.

You can download it here: http://www.atgi.com/jeffesp/download.html  There are instructions for install in the Readme.txt, but it is really just copying over a few files.  There wasn't much to it.

If you want info about how it works, I wrote this post: http://jeffesp.blogspot.com/2007/03/cs-date-chooser-tinymce-plugin.html

Please reply here (or email) with any questions.

--
--Jeff (ATGi)
  • Filed under:
  • | Post Points: 5
Page 13 of 18 (267 items) « First ... < Previous 11 12 13 14 15 Next > ... Last » | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com