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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=80653 --- 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 +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +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 +(string,System.IO.FileMode) + at System.Web.Services.Description.ServiceDescription.Read (System.String +fileName) [0x00000] + at +Thinktecture.Tools.Web.Services.Extensions.ValidationExtension.GetInitializer +(System.Type serviceType) [0x00000] --- End of inner exception stack trace --- + + at +Thinktecture.Tools.Web.Services.Extensions.ValidationExtension.GetInitializer +(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) +[0x00000] + at System.Web.HttpApplication+<>c__CompilerGenerated3.MoveNext () [0x00000] + +Steps to reproduce the problem: +1. Extract this TAR file: +http://bugzilla.ximian.com/showattachment.cgi?attach_id=18560 +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? +Always _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
