Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Custom SharePoint WebServices project call from stored procedure HTTP 500 error

$
0
0

Hi,

I created new solution to SharePoint 2013, where I generate new webservice - update my document library item from erp system

If I call this webservice manually, then work fine, but If called from programatically, than  get HTTP 500 error

I'm new in webservices and I don't no where is the error

 public class SPWebService : WebService
    {
[WebMethod]
        public string setAttachment(int id, string path, int bid, int btid)
        {

            try
            {
                SPSecurity.RunWithElevatedPrivileges(delegate()
                {
                    using (SPSite site = new SPSite("http://mysp"))
                    {
                        using (SPWeb web = site.OpenWeb())
                        {
...
                        }
}

Please help!

Thanks,

Mykie


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>