Download Tracker - Event Log Errors

Aug 20, 2010 at 2:48 PM

Hello All,

Re-installing PKS on a live Sharepoint farm and upto page 16 where up I have posted and can watch a video the via the PKS web page. I seem to be getting a lot of errors from the

download tracker in the event log.

Anyone come across the following two errors:

System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
   at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId)
   at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes)
   at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetFileForRequest(HttpContext context, SPWeb web, Boolean exclusion, String virtualPath)
   at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.InitContextWeb(HttpContext context, SPWeb web)
   at Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPControl(HttpContext context)
   at Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(HttpContext context)
   at Microsoft.SharePoint.SPContext.get_Current()
   at Microsoft.MSIT.DownloadTracker.DownloadTrackerHttpModule.httpApplication_EndRequest(Object sender, EventArgs e)

and


System.ArgumentException: Keyword not supported: 'intial catalog'.
   at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
   at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
   at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
   at System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value)
   at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
   at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Initialize(IDataServices dataServices, Object connection)
   at System.Data.Linq.DataContext.Init(Object connection, MappingSource mapping)
   at System.Data.Linq.DataContext..ctor(String fileOrServerOrConnection, MappingSource mapping)
   at Microsoft.MSIT.DownloadTracker.DataAccess.DownloadItems.RegisterItem(String userId, Guid listId, Int32 itemId, String itemUrl, String siteUrl, String transferMode)
   at Microsoft.MSIT.DownloadTracker.Logger.LogComponent.<>c__DisplayClass1.<LogDownload>b__0()
   at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   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 Microsoft.MSIT.DownloadTracker.Logger.LogComponent.LogDownload(SPSite site, SPListItem listItem, String userId, String transferMode)
   at Microsoft.MSIT.DownloadTracker.DownloadTrackerHttpModule.httpApplication_EndRequest(Object sender, EventArgs e)

 

I have checked that the app pool is a db owner of the rating store - Anything else anyone?

 

Thanks in advance

Steve

 

Aug 25, 2010 at 8:01 AM

Hello again,

 

I think I have got to the the bottom of it. IT seems that when you install PKS onto a Sharepoint farm with web applications already in existence it will put the following line in

every web.config of all active web applications as well as the shared service provider web.config.

 

<add name="DownloadTrackerHttpModule" type="Microsoft.MSIT.DownloadTracker.DownloadTrackerHttpModule,

Microsoft.MSIT.DownloadTracker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=039e36666027bfc6" />

 

Anyone know why PKS is so aggressive with web apps and web.configs that don't concern it?