It appears that the error is clearly due to some race condition caused by
the dual processors. When the system is loaded with other tasks the process
completes successfully (albiet that the namespace is created in the FlexWiki
directory). When there is no load on the system the error created is:
Server Error in '/FlexWiki' Application.
------------------------------------------------------------------------
/The process cannot access the file
'C:\VirtualDirs\FlexWiki\flexwiki.config' because it is being used
by another process./
* Description: *An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
* Exception Details: *System.IO.IOException: The process cannot access
the file 'C:\VirtualDirs\FlexWiki\flexwiki.config' because it is being
used by another process.
*Source Error:*
||
Line 7: </HEAD>
Line 8: <body>
Line 9: <% ShowPage(); %>
Line 10: </body>
Line 11: </HTML>
* Source File: * c:\VirtualDirs\FlexWiki\admin\EditProvider.aspx*
Line: * 9
*Stack Trace:*
||
[IOException: The process cannot access the file
'C:\VirtualDirs\FlexWiki\flexwiki.config' because it is being used by
another process.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
+2014317
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) +998
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share) +114
System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings
settings) +119
FlexWiki.Web.FlexWikiWebApplication.WriteFederationConfiguration() in
c:\Builds\ccnet\server\flexwikicore-20\Working\build\FlexWiki.Web\FlexWikiWebApplication.cs:173
FlexWiki.Web.Admin.EditProvider.ShowTypeDetailsForm(String providerID) in
c:\Builds\ccnet\server\flexwikicore-20\Working\build\FlexWiki.Web\admin\EditProvider.aspx.cs:174
FlexWiki.Web.Admin.EditProvider.Body() in
c:\Builds\ccnet\server\flexwikicore-20\Working\build\FlexWiki.Web\admin\EditProvider.aspx.cs:81
FlexWiki.Web.UIResponse.ShowPage(String title, MenuWriter menu,
BodyWriter body) in
c:\Builds\ccnet\server\flexwikicore-20\Working\build\FlexWiki.Web\UIResponse.cs:42
FlexWiki.Web.Admin.EditProvider.ShowPage() in
c:\Builds\ccnet\server\flexwikicore-20\Working\build\FlexWiki.Web\admin\EditProvider.aspx.cs:68
ASP.admin_editprovider_aspx.__Render__control1(HtmlTextWriter __w,
Control parameterContainer) in
c:\VirtualDirs\FlexWiki\admin\EditProvider.aspx:9
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children) +2068235
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter
adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
------------------------------------------------------------------------
*Version Information:* Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.210
This looks like it is a known problem with FileWatcher type code, but was
unable to determine quickly if there is any real fix.
John Davidson
On 4/18/07, Craig Andera <[EMAIL PROTECTED]> wrote:
And to tell you the truth, I think I saw something similar when I was
testing, but I couldn't repro it. I.e. the creation process proceeded
without error but the namespace wasn't created. I figured I just did
something wrong because I couldn't reproduce it.
As to why a second processor would be active, I'm guessing that it has to
do
with the fact that the FileSystemWatcher calls come in on a second thread.
So you're seeing the configuration reload simultaneously with the
namespace
creation. That's a guess.
Let's tackle the error first.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flexwiki-users mailing list
Flexwiki-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexwiki-users