[Mono-bugs] [Bug 80653][Nor] New - Sharing violation error from FileStream in web service

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 29 06:27:17 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sandy.dunlop at gmail.com.


--- shadow/80653	2007-01-29 06:27:17.000000000 -0500
+++ shadow/80653.tmp.30728	2007-01-29 06:27:17.000000000 -0500
@@ -0,0 +1,104 @@
+Bug#: 80653
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: Ubuntu 6.10
+Status: NEW   
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: sandy.dunlop at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Sharing violation error from FileStream in web service
+Description of Problem:
+I have a web service. If I run it in xsp2 or mod_mono, I get an exception
+from System.IO.FileStream while it's reading the WSDL file for a SOAP
+extension. It claims there's a sharing violation, yet xsp2 should be the
+only thing trying to read it, and the permissions are correct on the file
+and the directory it's in.
+The stack trace looks like this on Ubuntu
+System.Reflection.TargetInvocationException: Exception has been thrown by
+the target of an invocation. --->
+Thinktecture.Tools.Web.Services.MetadataLoadingException: An error occured
+while trying to load validation schemas. --->
+System.UnauthorizedAccessException: Access to the path '/home/mxadmin/xsp/'
+is denied.
+  at System.IO.FileStream..ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
+FileOptions options) [0x00000] 
+  at System.IO.FileStream..ctor (System.String name, FileMode mode) [0x00000] 
+  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
+  at System.Web.Services.Description.ServiceDescription.Read (System.String
+fileName) [0x00000] 
+  at
+(System.Type serviceType) [0x00000] --- End of inner exception stack trace ---
+  at
+(System.Type serviceType) [0x00000] 
+  at System.Web.Services.Protocols.SoapExtension.GetTypeExtensions
+(System.Type serviceType) [0x00000] 
+  at System.Web.Services.Protocols.SoapTypeStubInfo..ctor
+(System.Web.Services.Protocols.ServerType logicalTypeInfo) [0x00000] 
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native)
+System.Reflection.MonoCMethod:InternalInvoke (object,object[])
+  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00000] --- End of inner
+exception stack trace ---
+  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00000] 
+  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
+System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00000] 
+  at System.Activator.CreateInstance (System.Type type, BindingFlags
+bindingAttr, System.Reflection.Binder binder, System.Object[] args,
+System.Globalization.CultureInfo culture, System.Object[]
+activationAttributes) [0x00000] 
+  at System.Activator.CreateInstance (System.Type type, System.Object[]
+args, System.Object[] activationAttributes) [0x00000] 
+  at System.Activator.CreateInstance (System.Type type, System.Object[]
+args) [0x00000] 
+  at System.Web.Services.Protocols.ServerType.CreateTypeStubInfo
+(System.Type type) [0x00000] 
+  at System.Web.Services.Protocols.ServerType.GetTypeStub (System.String
+protocolName) [0x00000] 
+  at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type
+t, System.String protocolName) [0x00000] 
+  at System.Web.Services.Protocols.SoapDocumentationHandler..ctor
+(System.Type type, System.Web.HttpContext context) [0x00000] 
+  at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler
+(System.Web.HttpContext context, System.String verb, System.String url,
+System.String filePath) [0x00000] 
+  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context)
+  at System.Web.HttpApplication+<>c__CompilerGenerated3.MoveNext () [0x00000] 
+Steps to reproduce the problem:
+1. Extract this TAR file:
+2. cd to the xsp directory that is extracted
+3. run xsp2
+4. point a browser at http://localhost:8080
+5. view stack trace
+Actual Results:
+Exception is thrown
+Expected Results:
+Web page displayed
+How often does this happen? 

More information about the mono-bugs mailing list