+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / The process cannot access the file 'sitefinity.log' because it is being used by another process.

The process cannot access the file 'sitefinity.log' because it is being used by another process.

2 posts, 0 answered
  1. Annie
    Annie avatar
    123 posts
    Registered:
    08 Apr 2009
    29 Apr 2009
    Link to this post
    Hi,

    The following error caused the sitefinity webpage from being loaded, Is there a way to prevent this from happening in the future?

    The following exception was thrown by the web event provider 'Simple Web Event Provider' in the application '/' (in an application lifetime a maximum of one exception will be logged per provider instance):

    System.IO.IOException: The process cannot access the file '\www\App_Data\sitefinity.log' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
       at System.IO.StreamWriter.CreateFile(String path, Boolean append)
       at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
       at System.IO.StreamWriter..ctor(String path, Boolean append)
       at Telerik.Utilities.LogHelper.LogEntry(String fileName, String entry)
       at Telerik.Utilities.TextFileWebEventProvider.ProcessEvent(WebBaseEvent raisedEvent)
       at System.Web.Management.WebBaseEvent.RaiseInternal(WebBaseEvent eventRaised, ArrayList firingRuleInfos, Int32 index0, Int32 index1)

    Thanks,
    Annie
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Apr 2009
    Link to this post
    Hello Annie,

    You can check which process is accessing the log file. It seems that Sitefinity is trying to write an error there but the file is used by another program and logging the error cannot be completed. Generally the file collects errors that are thrown by the application. It is possible that Healthmonitoring to use this file.
    Does the error persists after reboot? Also you can try using "unlocker" which shows the files that are being used.


    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered