[Mono-list] WebServices in Mod_mono Apache

Marco Aurelio V. da Silva marcoprodata at yahoo.com.br
Fri May 4 08:59:03 EDT 2007


Dears

I have one server with:

FreeBsd 6.2
Apache 2.0
Mono 1.2.4_1   (Installed via Forge Novell)
Mod_mono 1.2.4 (Installed via Forge Novell)
Xsp-1.2.4      (Installed via Forge Novell)

i create an webservice in visual studio 2005 (c# webservice Hello World 
Basic) , when trying to execute this webservice in the server, i have this 
error:

"Server Error in '/' Application
Description: An application error occurred on the server. The current custom 
error settings for this application prevent the details of the application 
error from being viewed remotely (for security reasons). It could, however, 
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable 
on remote machines, please create a <customErrors> tag within a "web.config" 
configuration file located in the root directory of the current web 
application. This <customErrors> tag should then have its "mode" attribute 
set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>

        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom 
error page by modifying the "defaultRedirect" attribute of the application's 
<customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

    </system.web>
</configuration>"

in other webservice i have this error:
Server Error in '/webasp/website2' Application

The section <roleManager> can´t be defined in this configuration file (the 
allowed definition context is
'MachineToApplication').()(line193)
Description: Error processing request.

Error Message: HTTP 500. System.Configuration.ConfigurationErrorsException: 
The section <roleManager> can't be defined in this configuration file (the 
allowed definition context is 'MachineToApplication'). () ( line 193)

Stack Trace:

System.Configuration.ConfigurationErrorsException: The section <roleManager> 
can't be defined in this configuration file (the allowed definition context 
is 'MachineToApplication'). () ( line 193)
  at System.Configuration.SectionInfo.ReadData 
(System.Configuration.Configuration config, System.Xml.XmlTextReader reader, 
Boolean overrideAllowed) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadContent 
(System.Xml.XmlTextReader reader, System.Configuration.Configuration config, 
Boolean overrideAllowed, Boolean root) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadData 
(System.Configuration.Configuration config, System.Xml.XmlTextReader reader, 
Boolean overrideAllowed) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadContent 
(System.Xml.XmlTextReader reader, System.Configuration.Configuration config, 
Boolean overrideAllowed, Boolean root) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadRootData 
(System.Xml.XmlTextReader reader, System.Configuration.Configuration config, 
Boolean overrideAllowed) [0x00000]
  at System.Configuration.Configuration.ReadConfigFile 
(System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
  at System.Configuration.Configuration.Load () [0x00000]
  at System.Configuration.Configuration.Init (IConfigSystem system, 
System.String configPath, System.Configuration.Configuration parent) 
[0x00000]
  at System.Configuration.Configuration..ctor 
(System.Configuration.InternalConfigurationSystem system, System.String 
locationSubPath) [0x00000]
  at System.Configuration.InternalConfigurationFactory.Create (System.Type 
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000]
  at System.Configuration.ConfigurationManager.OpenMachineConfiguration () 
[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__CompilerGenerated2.MoveNext () 
[0x00000]

What to Make ?

I'am using visual studio 2005
C#

Thanks to Advance,

Marco Aurélio V. da Silva
Prodata Inf. e Cad. Ltda.
marco at prodatanet.com.br
MSN: marco at prodatanet.com.br 



More information about the Mono-list mailing list