.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Web Service error "401 Unauthorised " when published at Sharepoint site

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint

Hi All,

I am working on infopath where i created dataconnection for web service published at Sharepoint - 80 site(the webservice has webreference to a webservice which access sharepoint form library)

Now when i click on the button i get dataconnection error.

So i checked sharepoint log i got error as mentioned below

Forms Services Runtime - Data C 82fy Warning  
The following query failed: GetItemsBySerialNoOrName (User: EICHERGROUP\ssharma2, Form Name: LeaveAR_RecordDeletion, IP: ,
 Request: http://sharepoint_test/_layouts/Postback.FormServer.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:LeaveAR-RecordDeletion:-myXSD-2005-10-21T21-12-27,
Type: DataAdapterException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server
 returned an error: (401) Unauthorized.) 09dfb4c4-26b2-425c-a8e0-8d29a4afbc6e 

Pls advise how to resolve this..



-- Regards Sandeep

View Complete Post

More Related Resource Links

Sharepoint site shows Service Unavailable


Hello everyon,

I am working sith WSS 3.0.

I have one webapplication with one sitecollection.Later i wanted to provide it HTTPS URL, so i extended the WebApplication with option-Yes in SSl field.

And in the virtlay directory properties -> Directory Security -> Secure communications -> Edit

selected Required Secure Chanel.

Thats it. I didn't do anything in that.


Then because of some problems , i deleted the iis website of extended webapplication from central admin.

After that when ever i try to open the site, it shows service unavailable.  And the application pool is getting disabled.

Please help me to get the site working.


Thanks in advance.


RDL Rendering (500 Internal Server) Error at Sharepoint Integrated Reporting Service


I have a serious problem that cannot be solved by googling around the keywords below:
sharepoint, moss 2007, reporting service, ssrs 2008, rendering, internal server error, ....

The error is;

"An error occurred during client rendering. The remote server returned an error: (500) Internal Server Error. "

Everything is O.K.;

* When I render the report from the REPORTSERVER (http://localhost/ReportServer)
* When the reports are scheduled to be sent by the reporting service (planned via MOSS 2007) 

But if I open (render) the RDL file from the sharepoint REPORTS LIBRARY interface, all of the reports fail with that internal error message above. 

It is weird also that parametrized reports are displayed without errors although the parameters are queried from a sql dataset. But I got the error when rendering the report after I've chosen a parameter  and order "apply/report"...

Possible causes how I met that error may be;

After I have installed (then uninstalled) AJAX extensions
After I have re-configured IIS Web Service Extensions list items

Possible solution alternatives I've found;

I've found a solution on MSDN replying a similar issue with an ideal cause of the error but an evreka answer but no sol

SharePoint ASPX Web Service Call Error

I have developed an ASPX page using VS2005. This page simply queries a SharePoint list through a WSS web service using CAML and takes the results and populates a DataTable and binds it to a DataView. The code works perfect using VS2005 but when I port it over to SharePoint I get the following error.Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.The call stack is as follows:[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]   System.Security.CodeAccessSecurityEngine.CheckNReturnSO(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 unrestrictedOverride, Int32 create) +0   System.Security.CodeAccessSecurityEngine.Assert(CodeAccessPermission cap, StackCrawlMark& stackMark) +79   System.Security.CodeAccessPermission.Assert() +37   Book2Physical.Requests.get_DataSource() +

SharePoint Web Services - IIS 7 - Error 503, Service not Available

System: Server 2008 R2 Ent all patched up, SharePoint 2010 Ent with 2 web applications installed and no other sites. The SharePoint Web Services Site in IIS 7.0 has a question mark on its icon. Whe I browse the site either from IIS or my PC I get a generic white Service Unavailable - HTTP Error 503. The service is unavailable. All other sites including Central Administration are good. 

SharePoint 2010 Site Actions Site Settings Error

I can not seem to go to Site Settings for a sub site in SharePoint 2010.  I installed SharePoint 2010 developer version on my laptop (Win 7 64bit) with Visual Studio 2010.  Try to create a sub site and go to Site Settings and bam!!! Error File Not Found.  This is frustrating.  Very frustrating.  I found so many problem with SharePoint 2010 and get no where with this version upgrade.  My life is completely ____ now.  Thanks Microsoft!  Why! Why! and Why do you not test your software and make people life much more convenience.  Why roll out this crapy software now on MSDN instead of making it clear that it is not ready??????????  WHY!!!!!! Yes, and I try to go to Site Settings from within SharePoint 2010 Designer.  It took me to the same error!!!!!  So what is going on?

Sharepoint 2010: Get error: You do not have permissions to have lists and pages within My Site.

I am using the administrator login for the sharepoint 2010 farm.  I'm able to access My Site.  However, when I click on My content, I'm getting You do not have permissions to have lists and pages within My Site.   Any ideas?   Thanks.

Unable To Connect Database Error:Sharepoint 2007 Internet Site.

Hi Techies,  we are running 4farm Sharepoint internet site. now a days we are getting the below error very regularly. Event Viewer :The description for Event ID ( 27745 ) in Source ( Windows SharePoint Services 3 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: #50071: Unable to connect to the database SharePoint_Config on SPPREPROD02VMDK\SPPREDPROD.  Check the database connection information and make sure that the database server is running.. Sharepoint Logs:#50071 :#50071: Unable to connect to the database SharePoint_Config on pfc-penndb-tst. Check the database connection information and make sure that the database server is running.. Please Advice . Regards, raju.  Nag: http://nagaraju-sharepoint.blogspot.com. Posting is provided with no warranties.

After Installing SharePoint Foundation 2010, trying to open site gives 404 error in browser


I had this as reply on a thread about migrating from WSS 3.0 to SFS 2010. But I have completed all the steps with the modified documentation, but the browser delivers an error 404 when I try to open the site I created.  Same thing happens if I go at it via https, but first I get a certificate warning error (using the IP instead of the FQDN) and then being prompted for credentials.

I am completely stumped at what else to look at.  Any help in gathering information to get help is also appreciated.

Environment:  SBS 2008, SFS 2010, SQL Express 2008.  Rest of the IIS sites continue to function normally and I can get to the management site ok.  Although after the install, I had to go into application pool and change the service account from the domain admin (it defaulted to that) to networkservice account, otherwise I got a 503.  Same thing happened on the site I created until I changed the service account.  Now just a 404.

Session State throws error in ASP.NET Site Pages for SharePoint 2010 portal using Visual Studio 2010


I'm developing Visual Studio 2010 solution for site pages. I’ve created Site Pages in SharePoint 2010 and I’m trying to access Session variables in code behind in ASP.NET but it throws the following error.

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

I set the page directive as enableSessionState=&quo

workbooks inside of sharePoint site has data refresh error


We have workbooks inside of our SharePoint site, using NTLM authentication and Excel Services connectors. They correctly display graphs when the page is first opened, but all of them throw an error when users try to trigger an update. The error message sayss "Excel. An error occurred during an attempt to establish a connection to the external data source. The following connections failed to refresh: [name of any data cube in use]. Learn more about data refresh." We are not using Power Pivot (which may make it easier, but is not authorised for use by our server administrators yet).

Trying to recreate Help Desk site in SharePoint 2010 fails with an error


The site template requires that the Feature {af6d9aec-7c38-4dda-997f-cc1ddbb87c92} be activated in the site collection.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 1c60c31d-cf82-47f0-a065-3673b4e16ca6

Date and Time: 8/27/2010 7:54:24 AM

I looked up the GUID using http://blogs.msdn.com/b/mcsnoiwb/archive/2010/01/07/features-and-their-guid-s-in-sp2010.aspx as my reference.  However, I cannot for the life of me figure out how to add this feature to the site collection.  When I go to the top-level site and go to add site collection features Web Analytics Customize Reports functionality is not there.

Clearly there is something I'm missing but since Microsoft is not redoing the Fabulous 40 site templates, any help in getting the old sites to work in a sharepoint database attach migration will be greatly appreciated.


Michael Caplan

Downloading a document from a sharepoint site to local file system, copy web service returns null

Hi Guys,
               I am trying to get this done for the last 2 days and I am still banging my head to the wall.
All I need to do is to download files from my sharepoint site library that uses integrated windows authentication. I was using copy webservice : getItem method to accomplish this.

CopyService.GetItem(copySource, out myFieldInfoArray, out myByteArray);

Problem : myByteArray is always returned as NULL

Note: I have tried the same with another site that uses forms authentication but the result was the same (NULL !!)

This is my code:


Copy copy = new CopyService.Copy();


Error while installing a feature on sharepoint site


Hi everyone,

  I am trying to install a feature that creates an custom menu item.

  When I run the stsadm command the following error comes :

Required tag 'http://schemas.microsoft.com/sharepoint/:Feature' is missing from XML file ...\12\Templates\Features\GoogleMenuItem\feature.xml'. found 'Feature' instead.

Kindly help me resolve this error...


Thank you

Getting error when creating SharePoint site



When i login as site collection administrator then i can able to create Share Point site. But when i login as contributor user then i am unable to create Share Point site.

I have also tried 'FormDigestSettings' but still issue is there.

When i turnoff security from CA site then i can able to create site as contributor user.Might be it is security issue. please suggest.


public SPWeb CreateSiteWithElevatedPrivileges(ProjectSiteEntity objProjectSiteEntity, SPUser objSiteOwner)
            SPWeb newSite = null;
                using (SPSite elevatedSite = SpSecurityHelper.GetCurrentSiteAsElevated())
                    using (newSite = elevatedSite.AllWebs.Add(objProjectSiteEntity.SiteName, objProjectSiteEntity.SiteName, objProjectSiteEntity.Description, 1033, objProjectSiteEntity.SiteTemplate, true,

SharePoint Server 2010 Site Suddenly Dissapeared - 404 Error


I created a site in a brand new SharePoint Server 2010 environment.  Now when I browse to the site, I get a 404 error.  The site has suddenly vanished. The link to the site still remains in SharePoint, but it's not there!  I tried running the SP Prod and Tech Config Wizard, rebooting, etc...

No one is even using this environment.

Any ideas?

Did anyone at Microsoft test SharePoint Server or Project Server before launch?  This 2010 release is so full of bugs.  Sorry to rant.

SharePoint 2010 CMIS Repository Web Service returns site collection repositories

Hi. Recently configured the 2010 CMIS Producer for a SharePoint Site Collection. I have enabled the Producer at each site under the collection e.g.
 CaseManager (Master Site)
   Europe (Sub Site)
   Asia (Sub Site)
If I configure the CMIS repository service URL as http://CaseManager/_vit_bin/cmis/SOAP/

SharePoint Form Authentication site showing Error for few actions in Picture library.


I have extended my web application (with zone Extranet) and enabled Form Authentication, Enabled Client Integration and SSL.

My problem is: In my picture Library 

     1. Actions - Download/Send to actions are not working, getting error message: "Picture Manager is unable to open   pictures over the internet that are not from a windows SharePoint Services picture Library. Please specify a valid picture library and try again".

    2. Actions - Open with Windows explorer getting the error message:"Documents in this folder are not available. The folder may have been moved or deleted, or network problems may be preventing a connection to the server".

   3. In the Explorer view i am getting : "Please wait while Explorer View is loaded. If Explorer View does not appear, your browser may not support it".

But when I open the same library and do the above actions in default zone (port 80), it is working perfectly.

I have SharePoint service pack 1 and infr

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend