Run 4.0 App Under SharePoint
Apr 4, 2011
I have an asp.net 2.0 user control library that runs within a SharePoint site. We upgraded one of the assemblies that this application depends on to .net 4.0 so we were forced to update the website to an asp.net 4.0 site so that it could use that assembly. That caused us to run into this error: Could not find permission set named 'ASP.Net'. Which is documented here: [URL] and states: "This error occurs because the ASP.NET 4 code access security (CAS) infrastructure looks for a permission set named ASP.Net. However, the partial trust configuration file that is referenced by WSS_Minimal does not contain any permission sets with that name."
Their proposed solution is don't attempt to use .net 4.0 which is not really an acceptable solution. So I'm trying to better understand what the actual problem. Our site is actually using a custom permission config based off of WSS_Minimal but it apparently includes the same reference. Can anyone tell me what file they are referring to when they say "the partial trust configuration file"? Where exactly does wss_Minimal reference this file? If the permission set named ASP.Net doesn't exist, I should be able to create my own permission set to take it's place. I'm not CAS expert but I haven't been able to find an ASP.Net permission set using the .net 2.0 configuration tool, and I'm not sure where it's being referenced in the wss_minimal config. Where is this ASP.Net permission set defined?
View 1 Replies
Similar Messages:
Jan 12, 2011
I have deployed a custom SharePoint Web service on Farm A. I am trying to access this Web service from a SharePoint timer job on Farm B. On Farm B, I am creating Class Library project, packaging it (wsp) and then deploying to GAC. The problem is I'm unable to access the Web Service using the following code. TodaysNewSVC is a service reference
TodaysNewSVC.GetTodaysnewsfromInsite objGetNews = new TodaysNewSVC.GetTodaysnewsfromInsite();
objGetNews.PreAuthenticate = true;
objGetNews.Credentials = CredentialCache.DefaultCredentials;
objGetNews.Url = "http://insite-dev.portal/_vti_bin/todaysnews.asmx";
DataTable dt2 = objGetNews.getNewsFromInsite(true, true);
//getNewsFromInsite is a WebMethod which returns the DataTable.
Note: Both farms use the same active directory authentication. I have also done the debugging for Timer Job and feature activation and they are working fine. The problem occurs during the call i.e. getNewsFromInsite
The asmx and wsdl files are accessible from Internet Explorer and also from Windows Console application. Here is the code which I use from console application:
GetTodaysnewsfromInsiteSoapClient objWSClient = new GetTodaysnewsfromInsiteSoapClient();
objWSClient.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;[code]...
Here is the error message:The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fPages%2fproblem-with-page.aspx%3fc%3d500">here</a>.</h2>
</body></html>
View 1 Replies
Jun 15, 2010
Following error comes when creating a WebPart In sharePoint 2010 Server.
Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeLoadException: Could not load type 'Microsoft.SharePoint.WebControls.SPGridView' from assembly 'Microsoft.SharePoint, Version=14.900.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. at ListMenuSample.ListMenuSample.ListMenuSample.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.ExecuteHttpRequest(SPUserCodeWebPartHttpRequestContext webPartExecutionContext, SPUserCodeWebPartHttpResponse httpRequestResponse) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.Execute(SPUserCodeExecutionContext executionContext) at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)
View 1 Replies
May 21, 2010
how to implement API over the SharePoint(MOSS) framework.
What i want to do is create a client application to communicate with the SharePoint.
wanting to implement something like following.
Client send post request to API implemented on SharePoint, API receive a request and do the authentication and create a login cookie. Client keep communicating with API(with the login cookie), request necessary information and API returns it.
I could not find anyway to hook a program... Is there anyway to hook a program or implement own authentication mechanism before SharePoint's own authentication is called?
View 1 Replies
Aug 19, 2010
I have a preexisting asp.net site that uses forms authentication. I am setting up a Sharepoint 2007 site on the same box. I would like to use my existing asp.net site authentication and once logged in provide a link to the sharepoint site that has the user auto-logged in.It doesn't matter to me if Windows or Forms auth is used. I tried a couple different things to pass credentials through the response, but was unable to obtain success. Has anyone done anything similar. The tutorials for configuring forms auth on sharepoint just seem over the top and quite unreasonable.
View 2 Replies
Jun 4, 2010
I have this requirement to display site sub menu items in horizontal direction instead of vertical.
Home | Site1 | Site2
Page1 | Page2 | Page3
Is there any attribute avaliable in Sharepoint:ASPMenu to achieve this. We dont intend to write code behind for this. how to achieve this thru Sharepoint desinger.
View 1 Replies
Apr 13, 2010
I noticed impersonation is turned on by default in MOSS web configs. I tried disabling it but the web app returns an error. So my question, is it possible to disable impersonation in MOSS? If it is possible are there any special considerations I should be aware of?
If you're interested in why I need to do this...I need to have a custom web part (developed with SmartPart) talk to a separate SQL server using the application pool rather than the current user (Kerberos is enabled). If I set the authentication mode to NTLM I get NTAuthority/ANonymous login errors from my SQL connection. If I turn Kerberos on, the currently logged in user's credentials are passed. If I hard code the user id and password in the connection string it seems to ignore it and default to whichever security model is in place (NTLM or Kerberos).
View 6 Replies
Mar 8, 2011
I'm not asking as to how go about doing this, but just curious if its possible to list items in a data grid/ grid view as you would in asp.net websites, but in SharePoint using say web parts? Then be able to select a item in the grid and press a button that would then carry on out some task?
View 1 Replies
Jul 22, 2010
I am trying to make a web part that will display what links got clicked/viewed the most across the whole site collection. These links come from a SharePoint list. Is there a mechanism in the object model that can be used to accomplish this?
View 1 Replies
Feb 25, 2011
currently investigating SharePoint for our company as a means to make Excel processing accessible through our web application without relying on the Office Interop DLL files. (our sysadmin doesnt want to install Office on the production server, for good reason)I'm aware that Sharepoint has an Excel Webservice that can be enabled and used by the application. The problem, if it is a problem, is that I need to make a class that wraps all the logic for transforming an Excel into HTML.So I need to add the references to this webservice to the application.
But what if we need to deploy the application with a customer that has no SharePoint server available, will this cause a problem in the application? We will use checks to make stuff visible and invisible depending on whether a parameter is set, but I'm looking for a means to ensure that I can for example add the required references at runtime when I need them for Sharepoint.
View 1 Replies
Mar 4, 2010
I have a file called webpart.cs which is called by one of my masterpages in Sharepoint, where are those files stored on the Server?
View 1 Replies
Jun 10, 2010
how to create a sharepoint application using asp.net
View 2 Replies
Jan 25, 2011
I've created an ascx control for use in Sharepoint that accesses Exchange 2010 via it's web services. When run in it's own ASP.NET test site (wrapped in a simple aspx page) all works fine. As soon as the control is used within Sharepoint a "The Autodiscover service couldn't be located" error is encountered.
The code behind dll for the ascx control has been dropped in to the GAC and also Microsoft.Exchange.WebServices.dll
Microsoft.Exchange.WebServices.dll has also been added to the safe control list in web.config for the sharepoint site:
<SafeControl Assembly="Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.Exchange.WebServices" TypeName="*" Safe="True" />
I can ping the autodiscovery service and access the Exchange web service url https://mydomain.com/EWS/Services.wsdl from the Sharepoint server.
A username and password is being sent to the service in the ascx's code behind:
Dim service As ExchangeService = New ExchangeService()
service.Credentials = New WebCredentials(usrExchange, pwdExchange)
service.ImpersonatedUserId = New ImpersonatedUserId(ConnectingIdType.SmtpAddress, email)
Interestingly, if I specify the url [URL] to the service I get a 405 Method not allowed error.
View 1 Replies
Feb 19, 2010
Within SharePoint...
I can create web parts which are ASP.NET web apps, which allows me to get information about the current user (groups they are in, username, etc.).
I can create web parts which allow me to manipulate fields on SharePoint forms.
But I have not found a way to be able to combine the two things.
I can't access the content of one web part from the other kind (WebApp Page Viewer & Jquery Content Editor Web Part being the two kinds).
What I would like to be able to do is create a web service and then consume it with a jquery ajax call, but I keep getting a js "Access Denied" message.
View 1 Replies
Sep 23, 2010
I developed a screen in which there are fields like first name,username,password and email. I validated these fields using javascript and came to know that javascript is not that safe. So i decided to validate on server side also. My question is whether i can use asp controls like requiredfieldvalidator, regularexpression validator to validate the form or i have to validate through server side coding??
View 2 Replies
Sep 27, 2010
I am trying to learn Microsoft sharepoint and I wanted your ask some opinion on some of the online resources available. I checked some of the training institutions (I am from India), but the courses are very expensive there. I am looking for the following details:
1 - What softwares are needed to learn sharepoint- on my laptop I have Visual Studio 2008. Is that sufficient? If not, can you please provide me some details.2 - Training material If there are some good online training materials for sharepoint,can you please let me know Typically, how long would it take to get some grasp on sharepoint? I have used visual studio and I am good in writing C# or VB.NET code.But I have no background on sharepoint.
View 2 Replies
Mar 16, 2011
We have a file in sharepoint with a £ sign as part of the url.When we try to retrieve this file we get a bad request.Interesting thing is that this is only a problem in production not in test.Anyone know what setting could be causing this difference?
View 1 Replies
Apr 26, 2010
Last year, we had installed Visual Studio 2008 and I had started to develop some web sites with ASP.NET 3.5.
Now I was told that our Intranet will be moved to SharePoint and built on MOSS. I've started to look
at our SharePoint server and learn how to create ASP.NET 3.5 Web Parts for SharePoint site.
What I learned about the Windows SharePoint Services (WSS) 3.0 is that it consists of SQL Server, ASP.NET 2.0,IIS, etc. I don't quite understand what does this really means, especially for ASP.NET 2.0? I know on our Windows Server 2003, the WSS 3.0 was installed. We have SQL Server 2005 installed at our Intranet Web server,where I developed my ASP.NET 3.5 web pages.
My question are:
1. To create ASP.NET Web parts with WSS 3.0, I have to create ASP.NET 2.0, not ASP.NET 3.5?
2. My co-workers told me they don't need Visual Studio when creating SharePoint aspx page.
Is it true that with SharePoint, we don't need Visual Studio any more? I think creating SharPoint WebParts they have to use Visual Studio. Am I right?
View 1 Replies
Apr 29, 2010
how to adding a file to the sharepoint document library? I found some articles in net. but i didn't get the complete concept of the same. Now i uploaded a file without metadata by using this code.
[Code]....
This code is working as fine. But i need to upload file with meta data. I created 3 columns in my Document library..
View 3 Replies
May 6, 2010
My customer has a sharepoint 2007 server installation where they show a simple GUI. They want me to develop a webpart for displaying the top 10 most critical service arrends and add this to their "start" sharepoint webpage. The data is available through a stored procedure, and the gui could be as simple as a repeater. BUT, how do I make this as a webpart in sharepoint. This means I want to drag and ppsition it anywhere I want on the sharepoint GUI. I have worked with asp.net for 5 years, but never touched sharepoint.
I did some googling on the topic but what i found was very cumbersome, they said I needed to have sharepoint installed locally. Thats just not possible in the current environment. Surely its not that difficult. Can't I just develop a standard webpart and import it somehow into sharepoint?
View 5 Replies
Jan 15, 2010
we have developed a ASP.NET application that required a username and password to login and use the application.Now on of our customers wants to use Single Sign on with their Microsoft Sharepoint Portal.
Basically they want their users to be able to login to the portal, and then be able to access our application, without having to provide their login details again.Does anyone have experience with implementing Single Sign on?
View 4 Replies
Nov 2, 2010
I'm not really a developer but I have experience in PHP, Java and want to have a go at developing some really simple SharePoint web parts (for WSS 3.0, MOSS 2007 and in future 2010).I assume it requires knowledge of ASP.NET. Should I start learning C# or get stuck straight into web parts.
View 3 Replies
Mar 22, 2010
How does one stream files, html or custom AJAX responses from web parts? Our current quick-and-very-dirty solution is to make the web part call the current page with certain query parameters, which the web part checks and instead of performing normal load it writes the required things to output and calls response end.
This sounds bad since SharePoint might load other web parts and execute their code before reaching our web part. The web part is configured with data source settings which means the streaming context must be specific to the web part so it can acquire the correct data source settings.
View 1 Replies
Dec 3, 2010
I have a need to integrate a third-party Java applet into a custom web part I wrote for SharePoint 2007. The web part simply loads a user control I created that contains the bulk of the functionality, and that's where the applet will go. I added it to my user control project and it works fine outside of my SharePoint environment.
I installed the updated web part onto my MOSS 2007 development site and the part's page loads fine. The applet is triggered by clicking a link button on the page, which runs some client-side JavaScript to start it. The problem is nothing seems to happen when I click the link. No error messages appear, and the stuff the applet is supposed to do never occurs (it's for doing file transfers via FTP). I have the .jar file as an embedded resource in my user control DLL, which is deployed to the bin folder, and SharePoint fully trusts this DLL.
I used Firebug to step through the initialization code and I saw an HTTP GET that failed with a message about not being authorized, but it didn't give any details and I'm not positive it was related to the applet. Is there anything special I need to do to make the applet work? Or am I going about this the wrong way?
EDIT: The problem turned out to be the .jar file for the applet couldn't be found. SharePoint is clearly doing something different here, and I need to find out what. Can Java applets be used within a SharePoint site? This question suggests they can, but in that case a Page Viewer web part was used, which isn't going to really work for me.
View 2 Replies
Mar 2, 2011
Is there any way to restrict a web part to a certain zone? I know I can restrict it by using the AllowZoneChange flag, but is it possible to make sure the web part can only be added to certain zones? I have some web parts which are only viable in a wide column (zones), so I want to make sure that no one tries to add the web parts to narrow columns (zones). Is there any way of accomplishing this?
View 1 Replies