I'm getting errors in the system log...

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/11/2014 10:48:28 AM
Gravatar
Total Posts 36

I'm getting errors in the system log...

I'm getting the following error in the system log:

2014-02-11 16:18:50,897 ERROR 87.114.106.212 - en-GB - / - mojoPortal.Web.BannedIPBlockingHttpModule - System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at System.Data.SqlServerCe.UnmanagedLibraryHelper..ctor(String fileName)
   at System.Data.SqlServerCe.NativeMethodsHelper..ctor(String modulePath)
   at System.Data.SqlServerCe.NativeMethods.LoadValidLibrary(String modulePath)
   at System.Data.SqlServerCe.NativeMethods.LoadNativeBinariesFromPrivateFolder(String privateInstall)
   at System.Data.SqlServerCe.NativeMethods.LoadNativeBinaries()
   at System.Data.SqlServerCe.SqlCeConnection..ctor()
   at System.Data.SqlServerCe.SqlCeConnection..ctor(String connectionString)
   at mojoPortal.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlCeParameter[] commandParameters)
   at mojoPortal.Data.DBBannedIP.IsBanned(String ipAddress)
   at mojoPortal.Web.BannedIPBlockingHttpModule.BeginRequest(Object sender, EventArgs e)


Could you give me a pointer as to how I should go about fixing the problem? I really don't know where to start.

Thank you

Barbara

2/11/2014 12:13:39 PM
Gravatar
Total Posts 18439

Re: I'm getting errors in the system log...

SQL CE is a database that is file based with a single file that is the database and this error means that the permissions on the file are not correct. The user that is the identity on the IIS application pool needs full control over the database file. The file itself (a .sdf file) lives in the /App_Data folder so you need to find it and fix the permissions on it so that the user has full control to read and write to that file.

Note that if you download and upload the file again it will lose the file system permissions every time you do that so if you upload the file you must fix the permissions every time after uploading it.

This is the exact same problem I helped you with before on this thread and the solution is the same today as it was then.

2/11/2014 12:41:14 PM
Gravatar
Total Posts 36

Re: I'm getting errors in the system log...

Joe,

I thank you for your response. It has been some time since I have been able to check the website properly and I think the ISP must have been moving files about, as I have not changed anything recently. At least I can now go back and let them know.

Kind Regards

Barbara
 

You must sign in to post in the forums. This thread is closed to new posts.