Sharepoint 2010 Calendar Webpart Issue

Thomas Grassi
Thomas Grassi used Ask the Experts™
on
Windows 2012 R2 Server
SharePoint 2010 SP2 November CU
Microsoft SharePoint Designer

I added a new List Calendar to schedule all my maintenance jobs and I need them in 1 minute intervals not every 5 minutes

So I found this article
http://techtrainingnotes.blogspot.com/2011/06/sharepoint-edit-date-and-time-in-one.html

Which helped me setup the calendar webpart  EditForm.aspx and NewForm.aspx

I got past one error by unchecking Allow Attachments

I can enter a start time of 12:27 am and end time 12:27 am  no problem

But when I hit save I get this error
"An Unexpected error has occurred"
Correlation ID 0e025........"      see attached images

I ran ulsviewer and searched for the correlation ID but could not find it

Also read somewhere where to change the web.config file

1.  Remote into the Sharepoint Server and browse to:
 C:\Inetpub\wwwroot\wss\VirtualDirectories\<port number> (this is usually port 80)
 2.  Open up web.config file (using notepad).
 3.  Find the node (use Edit, Find) that begins with <trust level=
 4.  Change the trust level to WSS_Medium
 5.  Save the web.config file.
 6.  Go to command prompt (start -> run -> cmd -> iisreset /noforce)
 
 *Note* If the trust level is already set to WSS_Medium, just run iisreset /noforce from the command prompt.



My current setting is

    <trust level="WSS_Minimal" originUrl="" />



Will this help?????


Thanks in Advance

Tom
Calendar-error.png
Calendar.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Awarded 2012
Commented:
Hi Tom,
hm, not sure but the datetime issue is a bad design by MS.
And I doubt that there is an easy change, especially as the calendar / event item type is such a specialized built-in programmed entity ...

My advice: accept the limitation of not having each minute in the datetime fields
Alternative: Look at Codeplex, there has been a custom field type for DateTimes - but not sure if this will work for events and all the built-in hardcoded functionality (e.g. double bookings ...).

Anything in the Windows Event log?
Whats in the ULS log for that particular time Frame (+- 30 seconds)?
Single server?

Very extreme option:
Installing Visual Studio (Debugger) and try to get exceptions from within a SharePoint DLL ...

KR
Rainer
Thomas GrassiSystems Administrator

Author

Commented:
Rainer

Nothing in the event logs
I cant find anything in the ULS log
Yes single server for the Farm

When I create an event and just add the fields that are required it will save the event

It is when I try to set up a repeating schedule for the event is when it fails

i downloaded visual debugger will play with that soon


Any thing else to check?

Thanks
Mohit NairSenior Associate
Commented:
Hi Tom,
Not sure if its feasible to schedule all maintenance jobs in every 1 min since it hits your timer job big time impacting performance.
Secondly, If you enter start time as 12:27 am and end time 12:28 am does that execute ??
Please trace the correlation error you get while saving it.
Use this command to find the actual cause
Merge-Splogfile -correlation <correlation id> -path "Path Location"
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Thomas GrassiSystems Administrator

Author

Commented:
Mohit,

Did you see this article?
http://techtrainingnotes.blogspot.com/2011/06/sharepoint-edit-date-and-time-in-one.html
It shows modifying the calendar to except 1 minute entries that is what I changed using Microsoft SharePoint Designer

Secondly, If you enter start time as 12:27 am and end time 12:28 am does that execute ??  No same results

Only way it works if I do not "Make this a repeating event"  then it adds the event to the calendar

I was able to run this
Merge-Splogfile -correlation f54e577e-4052-4084-b763-11412304d525  -path "C:\LOGS\calendar.log"

See attached log


Does the log tell you anything?

Thanks
calendar.log
Thomas GrassiSystems Administrator

Author

Commented:
Rainer

Very extreme option:
 Installing Visual Studio (Debugger) and try to get exceptions from within a SharePoint DLL ...


Just installed this tool not familiar with this tool any suggestions on what I need to do here?
Thomas GrassiSystems Administrator
Commented:
To All,

Update

I have it working now.

1. Deleted the Calendar List
2. Created New Calendar List
3. Used Microsoft SharePoint Designer to modify newform.aspx using the instructions from this link
http://techtrainingnotes.blogspot.com/2011/06/sharepoint-edit-date-and-time-in-one.html
the SharePoint 2010 Steps
4. Only modified the newform.aspx then I tested and it was able to save the calendar event with 12:27
am
5. after that I then edited the calendar event and this time the times 12:27 was still there
6. So I then changed the event to a repeating vent and that updated no problem
No correlation errors
7 It is a two step process to enter the event but that is ok for now

The second set of instructions I did not do since the calendar events are now working
Thomas GrassiSystems Administrator

Author

Commented:
Have it working see last post.

Thanks for all your help

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial