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


Post New Web Links

SharePoint ASPX Web Service Call Error

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
 
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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.The call stack is as follows:[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, 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() +


View Complete Post


More Related Resource Links

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 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. 

How to customize or call the _Layouts/upload.aspx in Sharepoint Foundation on TopNavigationMenuV4

  
Hii All, Am having a req to upload the files or documents whatever the default Sharepoint upload.aspx is doing but which i need to call it from TopNavigationMenuV4 ,not from the default Upload menu, it will be there in TopNavigationMenuV4 which i did the customization according to the requirement . Kindly help me how to proceed !!!!!   Thanks in Advance Praveen      

SharePoint Designer 2007 - Customize List View - Error when saving view ASPX page

  

We have a custom list definition that includes custom site columns.  When we try to open one of the list view aspx pages in SharePoint to update the view query we get an error when trying to save the page in SharePoint Designer 2007.  We receive a warning that the operation will customize the page from the site definition, which is fine.  And then get a general "Server error: ServiceRequestorID" alert.  ServiceRequestorID is a custom site column used by the list definition.

ServiceRequestorID field definition:

<Field ID="{FA39D24D-AB40-4b1d-BD80-94ABE34A7578}" Name="ServiceRequestorID" DisplayName="Service Requestor ID" StaticName="

[Sharepoint 2007]Parse error when I add code behind the page to a normal aspx page ?

  

Hi all,

I dont need this form to be embedded into Sharepoint. I am adding this webpage into Sharepoint because i has issues due to cross-domain permission. I cannot call refresh sharepoint from my op up window  webpage. Therefore i want to add my webpage into the same domain as sharepoint.

I have added the webpage aspx form into Sharepoint from the sharepoint designer 2007. I would like to add code behind the page too.

What i have done at the moment was to create a project in visual studio for the code behind the page. I folloed this article :

http://www.andrewconnell.com/blog/articles/UsingCodeBehindFilesInSharePointSites.aspx

 

Then i have added the dll intothe bin of my sharepoint site. i have also added in webconfig the dll.

However i got the following error :

Parser Error Message: The codefile attribute on the page directive is not allowed in this page.

Source Error: 


Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="FormOragniseMeeting.aspx.cs" Inherits="FormOrganiseMeeting.FormOrganiseMeetingCodeBehind" %>
Line 2: 
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 

Why

 

 

&nbs

WCF web service hosted in Sharepoint 2010 is called TWICE for a single client call. WHY??

  

We have WCF SOAP web service hosted in Sharepoint 2010 using service factory method and observe behavior which we cannot explain.

When authenticated web client invokes our service method “Generate” (synchronously) it is first get called with Anonymous credentials (SPContext.Current.Web.CurrentUser == null). Anonymous users don’t have enough permissions, so the first attempt of the service method to access a folder (SPContext.Current.Web. GetFolder("Shared Documents")) throws ThreadAbortException. But control does not return to the client. Instead the service method gets called AGAIN, now with correctly set SPContext.Current.Web.CurrentUser. Nowit works successfully to the end and result returns to the client.

 

The question which puzzles us a lot is WHY the service is called first time with Anonymous creds? We’d rather avoid this first invocation if possible.

WCF web service hosted in Sharepoint 2010 is called TWICE for a single client call. WHY??

  

We have WCF SOAP web service hosted in Sharepoint 2010 using service factory method and observe behavior which we cannot explain.

When authenticated web client invokes our service method “Generate” (synchronously) it is first get called with Anonymous credentials (SPContext.Current.Web.CurrentUser == null). Anonymous users don’t have enough permissions, so the first attempt of the service method to access a folder (SPContext.Current.Web. GetFolder("Shared Documents")) throws ThreadAbortException. But control does not return to the client. Instead the service method gets called AGAIN, now with correctly set SPContext.Current.Web.CurrentUser. Nowit works successfully to the end and result returns to the client.

 

The question which puzzles us a lot is WHY the service is called first time with Anonymous creds? We’d rather avoid this first invocation if possible.

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

  

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

"Windows SharePoint Services Web Application" service is showing 'Error starting'.

  

I just installed MOSS SP2 and ran the config wizard on the server.
I am facing issue with our farm. Found that "Windows SharePoint Services Web Application" is in a problem.

I tried below commands:-
stsadm -o provisionservice -action stop -servicetype spwebservice -servicename ""
stsadm -o provisionservice -action start -servicetype spwebservice -servicename ""
But getting error:- Provision of service failed. Additional information: 1387.

Checked eventvwr and found below error log:-
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Topology
Event ID: 7034
Date:  10/21/2010
Time:  5:16:10 AM
User:  N/A
Computer: <Servername>
Description:
An attempt to start/stop instance  of service Windows SharePoint Services Web Application on server <servername> did not succeed. Re-run the action via UI or command line on the specified server.

None of the sites are working and I cannot see anything in the IIS folder nor in the IIS manager. All application folders are missing. But, I can see all the sites & Content databasesin the Central Admin.

Can someone please help?

 


Gives "Error in PortalCrawl Web Service." error while crawling People on MOSS 2007 from Sharepoint S

  

Hi All,

I am getting "Error in PortalCrawl Web Service. " error while crawling people [SSP] on MOSS 2007 box from Sharepoint 2010 box.

NOTE: I am able to crawl People i.e SSP application on other MOSS 2007 box successfully by following same steps which i am using to crawl above mentioned SSP which is giving error.

If anyone has faced similar error ,please suggest.

Regards,

Ketan


"Error in PortalCrawl Web Service." error while crawling People on MOSS 2007 from Sharepoint Server

  

Hi All,

I am getting "Error in PortalCrawl Web Service. " error while crawling people [SSP] on MOSS 2007 box from Sharepoint 2010 box.

NOTE: I am able to crawl People i.e SSP application on other MOSS 2007 box successfully by following same steps which i am using to crawl above mentioned SSP which is giving error.

If anyone has faced similar error ,please suggest.

Regards,

Ketan

"Error in PortalCrawl Web Service." error while crawling People on MOSS 2007 from Sharepoint Server

  

Hi All,

I am getting "Error in PortalCrawl Web Service. " error while crawling people [SSP] on MOSS 2007 box from Sharepoint 2010 box.

NOTE: I am able to crawl People i.e SSP application on other MOSS 2007 box successfully by following same steps which i am using to crawl above mentioned SSP which is giving error.

If anyone has faced similar error ,please suggest.

Regards,

Ketan

Silverlight application using RIA Service v1.0 give error in Sharepoint 2010

  

Hi All,

I am using RIA Service v1.0 in Silverlight 4.0 to retrieve database from sql-server and display on Silverlight application. For this I create RIA class library using Template available in VS2010.  In silverlight application I just fetch the employee from the Employee table and displaying in Silverlight Datagrid. Silverlight application is working fine with ASP.Net web. But when we going deploy same silverlight xap file to Sharepoint  Foundation Server 2010 using Module,deployed sucessfully,webpart display properly except following script error occurred in browser and data is not fetched.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.3; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Mon, 24 May 2010 13:46:40 UTC


Message: Unhandled Error in Silverlight Application Load operation failed for query 'GetEmployees'. The remote server returned an error: NotFound.   at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
  

When accessing SharePoint or Central Administration 3.0 a "503 Service Unavailable" error is returne

  
I am running a MOSS 2007 server in a test environment. I have been off building other aspects of the environment, but I come back today and notice that SharePoint is no longer working. Whenver I try to access it or the Central Administration area I recieve a "503: Service Unavailable" error.

I have also notice that after an IISRESET that the applications pools that are associated with the SharePoint sites (Extranet, Intranet, Sharepoint - 21075, and Central Administration fail to start on their own. I can start the manually. They are all running under the DOMAIN\Administrator account (as are ALL of the SharePoint related features. I know, I know, but that is what the requestor of this test environment requested).

Additionally the following error codes are logged (NOTE: These are translated from German):

-----------------------------------------
Event ID: 6641
Source: Office Sharepoint Server
-----------------------------------------
The SSP timer Mandate for import distribution lists did not execute.

Reason: Registration failed: The user does not have the required logon on this computer.

-----------------------------------------
Event ID: 2424
Source: Office Server Search
-----------------------------------------
The update cannot be started because there is no access to

Sharepoint 2010 error on username in ASPX code

  

Here is the error:

Web page error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Tue, 2 Nov 2010 20:12:57 UTC

Message: Expected '}'
Line: 1076
Char: 440
Code: 0
URI: http://my.local.sharepoint2010server/Lists/TreatmentRoomB/calendar.aspx

I have reset the users profiles and even had the user use a different computer. here is what I think the deal is. Her last name is "O'Tool", and when the list is generating the calendar view it is freaking out... could it be the "'" in her name?

I have tried to go to the back end database and remove her, or at lease change the name.. but can't find the information.

the page works great for anyone else, even on the same computer?  

Frustrated!


Jason

helpdesk service requests - how to add edit item button on dispform.aspx using sharepoint designer 2

  

I have made changes to a service requests list edit form using designer 2007. It gave me an message about this change will move it alway from site definition or something like that. Then the link to the Eidt form lost. Users cannot see the "Edit Item" button on the dispform.aspx. And when right click on the item ->edit item link will bring users to the default.aspx.

Is there a way to put the link back? Or is there a programming way to reslove this issue? any references I can read?

many thanks........


Search Service Application error in SharePoint 2010

  

Help with error

·          Small SharePoint farm (single server)

           ·          (not a stand alone/other servers can be added later)

·          SharePoint 2010 and SQL 2008 are on the same server

·          Administrative Domain User account: SharePoint Administrator

·          SharePoint Administrator is in the Administrator group on the local server

Error log

           Count Error                Message

1)        3              -               Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has &quo

Categories: 
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