[Mono-aspnet-list] cannot run web services
Andrus
kobruleht2 at hot.ee
Mon Dec 15 15:50:40 EST 2008
I tried to run NumberService sample from Mono sample service page using SVN
code in Apache + mod_mono.
to fix generator issue I added lines
<webServices>
<wsdlHelpGenerator
href="\Mono\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx"/>
</webServices>
to web.config file
Running
http://localhost/WebServicesApp_Web/NumberService.asmx
causes error below.
How to fix this ?
Andrus Moor
Server Error in '/' Application
--------------------------------------------------------------------------------
null key
Parameter name: key
Description: HTTP 500. Error processing request.
Stack Trace:
System.ArgumentNullException: null keyParameter name: key at
System.Collections.Hashtable.get_Item (System.Object key) [0x00000] at
System.Web.Services.Description.MessageCollection.get_Item (System.String
name) [0x00000] at
System.Web.Services.Description.BasicProfileChecker.CheckR2305
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.Operation value) [0x00000] at
System.Web.Services.Description.BasicProfileChecker.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.Operation value) [0x00000] at
System.Web.Services.Description.WebServicesInteroperability.Check
(System.Web.Services.Description.ConformanceCheckContext ctx,
System.Web.Services.Description.ConformanceChecker checker,
System.Web.Services.Description.ServiceDescription sd) [0x00000] at
System.Web.Services.Description.WebServicesInteroperability.Check
(WsiProfiles claims, System.Web.Services.Description.ConformanceCheckContext
ctx, IEnumerable documents) [0x00000] at
System.Web.Services.Description.WebServicesInteroperability.CheckConformance
(WsiProfiles claims,
System.Web.Services.Description.ServiceDescriptionCollection services,
System.Web.Services.Description.BasicProfileViolationCollection violations)
[0x00000] at ASP.DefaultWsdlHelpGenerator_aspx.Page_Load (System.Object
sender, System.EventArgs e) [0x00000] at System.Web.UI.Control.OnLoad
(System.EventArgs e) [0x00000] at System.Web.UI.Control.LoadRecursive ()
[0x00000] at System.Web.UI.Page.ProcessLoad () [0x00000] at
System.Web.UI.Page.ProcessPostData () [0x00000] at
System.Web.UI.Page.InternalProcessRequest () [0x00000] at
System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
I tried also simpleAsmx sample form Tim Heuer video and code from
http://silverlight.net samples
http://localhost/WebServicesApp_Web/simpleAsmx.asmx
causes another error:
Server Error in '/' Application
--------------------------------------------------------------------------------
Type SimpleAsmx not found.
Description: HTTP 500. Error processing request.
Stack Trace:
System.Web.HttpException: Type SimpleAsmx not found. at
System.Web.UI.SimpleWebHandlerParser.GetTypeFromBin (System.String tname)
[0x00000] at System.Web.Compilation.SimpleBuildProvider.LoadTypeFromBin
(System.Web.Compilation.BaseCompiler compiler,
System.Web.UI.SimpleWebHandlerParser parser) [0x00000] at
System.Web.Compilation.GenericBuildProvider`1[System.Object].GetGeneratedType
(System.CodeDom.Compiler.CompilerResults results) [0x00000] at
System.Web.Compilation.BuildManager+BuildCacheItem..ctor
(System.Reflection.Assembly assembly, System.Web.Compilation.BuildProvider
bp, System.CodeDom.Compiler.CompilerResults results) [0x00000] at
System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath
virtualPath, BuildKind buildKind) [0x00000] at
System.Web.Compilation.BuildManager.BuildAssembly (System.Web.VirtualPath
virtualPath) [0x00000]
from MS Web Developer Express this sample runs OK using its ASP .NET devel
server.
How to fix this ?
Andrus.
More information about the Mono-aspnet-list
mailing list