[Mono-aspnet-list] ASPX Web Service.

Abhinav Aggarwal abhiquiet at gmail.com
Sat Oct 18 11:22:00 UTC 2014


Dear all,

I have been able to port my applications in ubuntu now using the
monodevelop. It feels great to work in linux environment, and have
literally said bye bye to all virus problems.

Now we were planning to port our webservices in linux environment, and for
the same we added following code in web.config

      <system.webserver>
        <modules runallmanagedmodulesforallrequests="true" />
      </system.webserver>
      <system.servicemodel>
        <servicehostingenvironment aspnetcompatibilityenabled="true">
          <standardendpoints>
        <webscriptendpoint>
          <standardendpoint crossdomainscriptaccessenabled="true" />
        </webscriptendpoint>
          </standardendpoints>
        </servicehostingenvironment>
      </system.servicemodel>


The code compiles successfully, but when we debug we get following errors.


Unrecognized configuration section <system.webserver>

Unrecognized configuration section <system.servicemodel>

This code was required to enable the webservices to be accessible through
Javascripts and jquery.

Can you please guide me with implementing webservices and make them
accessible through javascripts.. i am able to access the services
otherwise, but not through javascripts. It might be because of CORS.

Thanks a ton in advance for helping me in the issue.

Regards.

Abhinav Aggarwal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20141018/6a5acfee/attachment.html>


More information about the Mono-aspnet-list mailing list