Access is denied

May 24, 2012 at 5:08 PM

Il installed the solution on a SharePoint Foundatoin 2010 with "install.cmd" and everyting worked fine. (I customize the install.cmd before).

I scheduled a reminder in the solution admin sectoin. After execution of the timer job,  I have the following error in my SharePoint log file :

ex, strRecurringType=Daily, strSiteName=EFSimpleReminder site.rnwsagermain.com_8000, objSPSite.Url=http://site.rnwsagermain.com:8000 c0c0457c-daf2-4dec-a73b-4cafdab7197a
ex.Message=Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) c0c0457c-daf2-4dec-a73b-4cafdab7197a
ex.StackTrace=   at Microsoft.SharePoint.Library.SPRequest.OpenWeb(String bstrUrl, String& pbstrServerRelativeUrl, String& pbstrTitle, String& pbstrDescription, String& pbstrTitleResourceId, String& pbstrDescriptionResourceId, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, Guid& pguidScopeId, UInt32& pnAuthorID, UInt32& pnLanguage, UInt32& pnLocale, UInt16& pnTimeZone, Boolean& bTime24, Int16& pnCollation, UInt32& pnCollationLCID, Int16& pnCalendarType, Int16& pnAdjustHijriDays, Int16& pnAltCalendarType, Boolean& pbShowWeeks, Int16& pnFirstWeekOfYear, UInt32& pnFirstDayOfWeek, Int16& pnWorkDays, Int16& pnWorkDayStartHour, Int16& pnWorkDayEndHour, Int16& pnMeetingCount, Int32& plFlags, Boolean& bConnectedToPortal, String& pbstrPortalUrl, String& pbstrPortalName, Int32&... c0c0457c-daf2-4dec-a73b-4cafdab7197a
... plWebTemplateId, Int16& pnProvisionConfig, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, UInt64& ppermMask, Boolean& bUserIsSiteAdmin, Boolean& bHasUniquePerm, Guid& pguidUserInfoListID, Guid& pguidUniqueNavParent, Int32& plSiteFlags, DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange, String& pbstrWelcomePage, Boolean& pbOverwriteMUICultures, Boolean& pbMUIEnabled, String& pbstrAlternateMUICultures, Int32& puiVersion, Int16& pnClientTag)     at Microsof... c0c0457c-daf2-4dec-a73b-4cafdab7197a
...t.SharePoint.SPWeb.InitWeb()     at Microsoft.SharePoint.SPWeb.get_Title()     at Microsoft.SharePoint.SPSite.OpenWeb(Guid gWebId, Int32 mondoHint)     at Microsoft.SharePoint.SPSite.OpenWeb(Guid gWebId)     at EF.EFSimpleReminder.<>c__DisplayClass1.<processOneSiteCollection>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)     at EF.EFSimpleReminder.processOneSiteCollection(SPSite objSPSite, String strRecurringType)     at EF.EFSimpleReminder.Execute... c0c0457c-daf2-4dec-a73b-4cafdab7197a
...(Guid contentDbId) c0c0457c-daf2-4dec-a73b-4cafdab7197a

Can you help me ?

Coordinator
May 24, 2012 at 11:24 PM

germa00,

Could you show me the settings of this reminder?   I think there's something wrong with it.

It's not normal to see a site URL as "http://site.rnwsagermain.com:8000 c0c0457c-daf2-4dec-a73b-4cafdab7197a".

May 25, 2012 at 12:19 PM

Thanks fangdahai for your answer !

Here is my reminder settings :

 

Title

<!-- FieldName="Title" FieldInternalName="Title" FieldType="SPFieldText" -->test 1

RecurringType

<!-- FieldName="RecurringType" FieldInternalName="RecurringType" FieldType="SPFieldChoice" -->Daily

WebUrl

<!-- FieldName="WebUrl" FieldInternalName="WebUrl" FieldType="SPFieldText" -->

ViewUrl

<!-- FieldName="ViewUrl" FieldInternalName="ViewUrl" FieldType="SPFieldText" -->Lists/Contact/Alerte.aspx

ReminderSendTo

<!-- FieldName="ReminderSendTo" FieldInternalName="ReminderSendTo" FieldType="SPFieldText" -->[Created By]

ReminderCC

<!-- FieldName="ReminderCC" FieldInternalName="ReminderCC" FieldType="SPFieldText" -->[Modified By]

ReminderSubject

<!-- FieldName="ReminderSubject" FieldInternalName="ReminderSubject" FieldType="SPFieldText" -->Hello from 'test 1' - Title=[Title]

ReminderBody

<!-- FieldName="ReminderBody" FieldInternalName="ReminderBody" FieldType="SPFieldNote" -->
This is a test reminder from EF

ID=[ID],
Title=[Title],
Created=[Created],
Created By=[Created By],
Modified=[Modified],
ModifiedBy=[Modified By]

AppendHtmlTag

<!-- FieldName="AppendHtmlTag" FieldInternalName="AppendHtmlTag" FieldType="SPFieldBoolean" -->Yes

HtmlEncode

<!-- FieldName="HtmlEncode" FieldInternalName="HtmlEncode" FieldType="SPFieldBoolean" -->Yes

NotificationType

<!-- FieldName="NotificationType" FieldInternalName="NotificationType" FieldType="SPFieldMultiChoice" -->Email

TaskListTitle

<!-- FieldName="TaskListTitle" FieldInternalName="TaskListTitle" FieldType="SPFieldText" -->Tasks

LastScanTime

<!-- FieldName="LastScanTime" FieldInternalName="LastScanTime" FieldType="SPFieldDateTime" -->

ReminderFrequency

<!-- FieldName="ReminderFrequency" FieldInternalName="ReminderFrequency" FieldType="SPFieldChoice" -->Everytime

LastScanCount

<!-- FieldName="LastScanCount" FieldInternalName="LastScanCount" FieldType="SPFieldNumber" -->

IsActive

<!-- FieldName="IsActive" FieldInternalName="IsActive" FieldType="SPFieldBoolean" -->Yes

Thanks,

germa00

May 25, 2012 at 1:45 PM

I am sorry for the FieldName tag .... I hope this will be better : 

 

Title

test 1

RecurringType

Daily

WebUrl

 

ViewUrl

Lists/Contact/Alerte.aspx

ReminderSendTo

[Created By]

ReminderCC

[Modified By]

ReminderSubject

Hello from 'test 1' - Title=[Title]

ReminderBody

This is a test reminder from EF

ID=[ID],
Title=[Title],
Created=[Created],
Created By=[Created By],
Modified=[Modified],
ModifiedBy=[Modified By]

AppendHtmlTag

Yes

HtmlEncode

Yes

NotificationType

Email

TaskListTitle

Tasks

LastScanTime

 

ReminderFrequency

Everytime

LastScanCount

 

IsActive

Yes

Thanks,

germa00