Ok, tried with 2.10.2. The old error is gone but server returns a fault.<div><br></div><div>I tried adding &quot;<span class="Apple-style-span" style="border-collapse: collapse; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">MonoSetEnv MONO_STRICT_MS_COMPLIANT=yes&quot; as per the below link to the end of httpd.config but it didn&#39;t seem to work. Any clues?</span></div>
<div><font class="Apple-style-span" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><a href="http://go-mono.com/forums/#nabble-td3618774" target="_top" rel="nofollow" link="external">http://go-mono.com/forums/#nabble-td3618774</a><br>
</span></font><div><br></div><div><b><i>here is the fault message:</i></b></div><div><pre style="font-family:Consolas;font-size:13px;color:black;background-color:white;background-repeat:initial initial"><i>XmlSchema error: Named item <a href="http://tempuri.org/:DoWork" target="_blank" rel="nofollow" link="external">http://tempuri.org/:DoWork</a> was already contained in the schema object table. Consider setting MONO_STRICT_MS_COMPLIANT to &#39;yes&#39; to mimic MS implementation. Related schema item SourceUri: , Line 0, Position 0.</i><br>

<b><i>And the stack trace:</i></b></pre><pre style="font-family:Consolas;font-size:13px;color:black;background-color:white;background-repeat:initial initial">at System.Xml.Schema.ValidationHandler.RaiseValidationEvent (System.Xml.Schema.ValidationEventHandler handle, System.Exception innerException, System.String message, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender, System.String sourceUri, XmlSeverityType severity) [0x0003d] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/ValidationHandler.cs:56 <br>


  at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler handle, System.String message, System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj, System.Object sender) [0x00000] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/XmlSchemaObject.cs:140 <br>


  at System.Xml.Schema.XmlSchemaObject.error (System.Xml.Schema.ValidationEventHandler handle, System.String message) [0x0000e] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/XmlSchemaObject.cs:120 <br>


  at System.Xml.Schema.XmlSchemaUtil.AddToTable (System.Xml.Schema.XmlSchemaObjectTable table, System.Xml.Schema.XmlSchemaObject obj, System.Xml.XmlQualifiedName qname, System.Xml.Schema.ValidationEventHandler h) [0x000b1] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/XmlSchemaUtil.cs:79 <br>


  at System.Xml.Schema.XmlSchema.DoCompile (System.Xml.Schema.ValidationEventHandler handler, System.Collections.Hashtable handledUris, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver) [0x00397] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs:428 <br>


  at System.Xml.Schema.XmlSchema.CompileSubset (System.Xml.Schema.ValidationEventHandler handler, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver, System.Collections.Hashtable handledUris) [0x00042] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs:306 <br>


  at System.Xml.Schema.XmlSchema.CompileSubset (System.Xml.Schema.ValidationEventHandler handler, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver) [0x00006] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/XmlSchema.cs:295 <br>


  at System.Xml.Schema.XmlSchemaSet.Reprocess (System.Xml.Schema.XmlSchema schema) [0x0005f] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSet.cs:334 <br>  at System.ServiceModel.Description.WsdlExporter.ExportParameters (System.ServiceModel.Description.MessageBodyDescription msgbody, System.String name, System.String ns) [0x00175] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:484 <br>


  at System.ServiceModel.Description.WsdlExporter.ExportMessageBodyDescription (System.ServiceModel.Description.MessageBodyDescription msgbody, System.String name, System.String ns) [0x00037] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:415 <br>


  at System.ServiceModel.Description.WsdlExporter.ExportContractInternal (System.ServiceModel.Description.ContractDescription contract, Boolean rejectDuplicate) [0x001ea] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:134 <br>


  at System.ServiceModel.Description.WsdlExporter.ExportEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint, Boolean rejectDuplicate) [0x00000] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:188 <br>


  at System.ServiceModel.Description.WsdlExporter.ExportEndpoints (IEnumerable`1 endpoints, System.Xml.XmlQualifiedName name) [0x0005a] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:364 <br>


  at System.ServiceModel.Description.ServiceMetadataExtension.get_Metadata () [0x00011] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:74 <br>


  at System.ServiceModel.Description.HttpGetWsdl.GetMetadata () [0x00012] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:305 <br>  at System.ServiceModel.Description.HttpGetWsdl.EnsureMetadata () [0x0000b] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:181 <br>


  at System.ServiceModel.Description.HttpGetWsdl.Get (System.ServiceModel.Channels.Message req) [0x00000] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:188 <br>


  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&amp;)<br>  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /usr/src/packages/BUILD/mono-2.10.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 <br>

</pre><pre style="font-family:Consolas;font-size:13px;color:black;background-color:white;background-repeat:initial initial">-Vinod</pre><div class="gmail_quote">On Thu, Jul 21, 2011 at 6:37 PM, Atsushi Eno-2 [via Mono] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=3683950&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>

        It is more important than you think. You might have written very few 
<br>code, but that does tell us that &quot;it is driven by default configuration&quot; 
<br>which tells a lot.
<br><br>Anyways give it a try with 2.10, which likely give different results :)
<br><br>Atsushi Eno
<br></div><div><div><div class='shrinkable-quote'><br>&gt; Well, It&#39;s like a helloworld service. There is barely any code involved.
<br>&gt;
<br>&gt; As for the versions, I will try the 2.10.x and let you know if it 
<br>&gt; fixes my problem
<br>&gt;
<br>&gt; Thanks.
<br>&gt;
<br>&gt; -Vinod
<br>&gt;
<br>&gt; On Thu, Jul 21, 2011 at 4:58 PM, Atsushi Eno 
</div></div>&gt; &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3683635&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a> 
<br><div><div></div><div>&gt; &lt;mailto:<a href="http://user/SendEmail.jtp?type=node&amp;node=3683635&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;&gt; wrote:
<div class='shrinkable-quote'><br>&gt;
<br>&gt;     Hello,
<br>&gt;
<br>&gt;     Without the actual sources I can only guess, but .NET 4 has
<br>&gt;     couple of configuration changes which 2.8.x does not likely
<br>&gt;     to support. Also it has much less configuration elements
<br>&gt;     support as compared to 2.10.x.
<br>&gt;
<br>&gt;     Atsushi Eno
<br>&gt;
<br>&gt;         Hi, I am trying to host a simple application with one aspx,
<br>&gt;         asmx and svc file each. I followed the below guide to achieve
<br>&gt;         the hosting (since I am very new to the linux world, it took a
<br>&gt;         while to understand it!): <a href="http://www.mono-project.com/" rel="nofollow" link="external" target="_blank">http://www.mono-project.com/</a><br>&gt;         Mod_mono#Manual_Mod_Mono_ Configuration
<br>&gt;         &lt;<a href="http://www.mono-project.com/Mod_mono#Manual_Mod_Mono_Configuration" rel="nofollow" link="external" target="_blank">http://www.mono-project.com/Mod_mono#Manual_Mod_Mono_Configuration</a>&gt;
<br>&gt;         After all the hosting, I am able to access the aspx and asmx
<br>&gt;         file. But when I try to access the svc file, I get the below
<br>&gt;         error: */The ServiceHost must have at least one application
<br>&gt;         endpoint (that does not include metadata exchange endpoint)
<br>&gt;         defined by either configuration, behaviors or call to
<br>&gt;         AddServiceEndpoint methods./* or */HttpListenerContext does
<br>&gt;         not match any of the registered channels/* Below is how my
<br>&gt;         ServiceModel part of web.config looks: Can you please tell me
<br>&gt;         what I am doing wrong? Note: I used MS VS 2010 to create this
<br>&gt;         project and then published it. The published directory is
<br>&gt;         copied to the Apache/Linux Environment. The WCF doesn&#39;t make
<br>&gt;         use of any complex type. I am using Mono Version 2.8.2
<br>&gt;         View this message in context: WCF Hosting Problem
<br>&gt;         &lt;<a href="http://mono.1490590.n4" rel="nofollow" link="external" target="_blank">http://mono.1490590.n4</a>. <a href="http://nabble.com/WCF-Hosting-" target="_blank" rel="nofollow" link="external">nabble.com/WCF-Hosting-</a>
<br>&gt;         Problem-tp3682894p3682894.html
<br>&gt;         &lt;<a href="http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3682894.html" rel="nofollow" link="external" target="_blank">http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3682894.html</a>&gt;
<br>&gt;         &gt;
<br>&gt;         Sent from the Mono - General mailing list archive
<br>&gt;         &lt;<a href="http://mono.1490590.n4" rel="nofollow" link="external" target="_blank">http://mono.1490590.n4</a>. <a href="http://nabble.com/Mono-General-" target="_blank" rel="nofollow" link="external">nabble.com/Mono-General-</a>
<br>&gt;         f1490591.html
<br>&gt;         &lt;<a href="http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html" rel="nofollow" link="external" target="_blank">http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html</a>&gt;&gt; at
<br>&gt;         Nabble.com.
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;         ______________________________ _________________
</div></div></div>&gt;         Mono-list maillist  - <a href="http://user/SendEmail.jtp?type=node&amp;node=3683635&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt;         &lt;mailto:<a href="http://user/SendEmail.jtp?type=node&amp;node=3683635&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;
<br><div>&gt;         <a href="http://lists.ximian.com/" rel="nofollow" link="external" target="_blank">http://lists.ximian.com/</a> mailman/listinfo/mono-list
<br>&gt;         &lt;<a href="http://lists.ximian.com/mailman/listinfo/mono-list" rel="nofollow" link="external" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-list</a>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
</div></div><br><div>_______________________________________________
<br>Mono-list maillist  -  <a href="http://user/SendEmail.jtp?type=node&amp;node=3683635&amp;i=4" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br></div><div><a href="http://lists.ximian.com/mailman/listinfo/mono-list" rel="nofollow" link="external" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-list</a><br>
        
        <br>
        <br>
        </div><hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3683635.html" target="_blank" rel="nofollow" link="external">http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3683635.html</a>
        </div><div><div></div><div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from WCF Hosting Problem, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></div></div></blockquote></div><br></div>
</div>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mono.1490590.n4.nabble.com/WCF-Hosting-Problem-tp3682894p3683950.html">Re: WCF Hosting Problem</a><br/>
Sent from the <a href="http://mono.1490590.n4.nabble.com/Mono-General-f1490591.html">Mono - General mailing list archive</a> at Nabble.com.<br/>