Custom Login Web Part In SharePoint 2010 Forms Based
Hi ,
Im trying to make Custom Login Web Part In SharePoint 2010 Forms Based , all membership configration is done .
my question is why (Login1.username , Login1.password ) give this error :
login1 does not exist in the current context
protected
void
Login1_Authenticate(object
sender, AuthenticateEventArgs e)
02 {
03 string
membership = "MembershipProvider";
04 string
role = "RoleProvider";
05
06 e.Authenticated
= SPClaimsUtility.AuthenticateFormsUser(new
Uri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
07
08 if
(!e.Authenticated) return;
09
10 SecurityToken
token = SPSecurityContext.SecurityTokenForFormsAuthentication(new
Uri(SPContext.Current.Web.Url), membership, role,
Login1.UserName,
Login1.Password);
Error 1 No overload for method 'SecurityTokenForFormsAuthentication' takes 3 arguments
Error 2 The name Wss doesnot exisit in current context
Can anyone give sugeestion please
cant recitfy this error
protected void Login1_Authenticate(object sender,
AuthenticateEventArgs e)
02 {
03 string membership
= "MembershipProvider";
04 string role
= "RoleProvider";
05
06 e.Authenticated
= SPClaimsUtility.AuthenticateFormsUser(newUri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
07
08 if (!e.Authenticated) return;
09
10 SecurityToken
token = SPSecurityContext.SecurityTokenForFormsAuthentication(newUri(SPContext.Current.Web.Url),
membership, role,
Login1.UserName,
Login1.Password);
Similar Messages
-
Way to use Visual Web part in sharepoint 2010 without using/installing third party tools
I want to know the way to use Visual Web part in sharepoint 2010 without using/installing third party tools.
Please provide me a link where i can actually know how it is done.+ to _eNo_,
Visual Studio 2010 has support for visual webpart, you can find that under Visual C# node in the Installed Templates section (if your preferred language is C#)
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you -
I have installed Yammer server component successfully.
I have inserted the Yammer Web Part (Ver 3.1.4) onto a page in SharePoint 2010.
However, when in view the page the place on the page where the web part should how up has an error:
System Exception: Unable to load web part.
When I edit the page and look at the web part, it looks normal, showing the feed types, but when I select a feed, like "Company Feed", I get a popup window that says "To save your change before continuing, click OK. To continue without saving,
select CANCEL.Hi Larry,
According to your description, the Yammer web part doesn't load when you used it in a page.
You must configure the web part to point to a network. Edit the page, select the desired feed, and choose a network. Then, Save the page.
More information, please refer to the links:
http://blogs.msdn.com/b/spses/archive/2014/07/06/sharepoint-2010-amp-yammer-step-by-step-guide.aspx (common error 4)
https://about.yammer.com/success/wp-content/uploads/sites/13/Yammer-For-SharePoint-2010-FAQs.pdf
In the above two articles, there are some another troubleshootings about Yammer Web Part, please check if they are useful.
Best Regards,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
Duplicate groups in Content Query Web Part in SharePoint 2010
Hello,
I'm facing one weird issue in CQWP. I've a document library in SharePoint 2010 site where I have 2 columns - Title and Document Type. The column 'Document Type' is a Single line of Text column and mandatory. Users have entered bunch of documents in this
library by populating the metadata.
On one wiki page I have a CQWP where I'm showing the documents of this library grouped by 'Document Type'. The problem I am facing is that some documents are showing in different columns even though their 'Document Type' value is exactly same. Please see
below screenshot:
You can see that the documents under 'Industry Group Publications' are showing in 3 different columns, why?
My CQWP settings are:
Presentation: Number of columns to be shown: 5 (I've changed it to 3 also, but the same result)
Group items by: Document Type and sort order is Ascending (I've tried changing sort order as well, same result)
Limit number of items to display: This checkbox is unchecked (unlimited)
It's not just one case. I've seen this issue on other sites as well where same 'Group by' column value is being shown in different column rather than under same column while values are EXACTLY same.
Has anybody else faced this issue? What's the reason and solution to this problem?
Thanks in advance!
--AshishHi Ashish,
I tried to reproduce the issue in my environment. I created a content query web part displaying one library documents. The library has two columns, title and document type. However, document type is a single text column you need to manually write content
into.
I set the web part to group items by document type and left other settings to be by default. It worked as expected. I’d like to know if there is any difference from your situation, especially for the document type column so I can reproduce the issue from
my side.
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
How to display names without file extension in Content Query Web Part in SharePoint 2010
I try to display names in Content Query Web Part but it shows file extension. I cannot find a way in CQWP editor that can exclude file extension. Is there a way to display names excluding file extensions thru settings in the CQWP editor?
I have to edit the code in SharePoint Designer, right?
Thanks in advance for any tips!In the file ContentQueryMain you have already a function to get the file without extension.
So we just can use this:
<xsl:call-template name="OuterTemplate.GetFileNameWithoutExtension">
<xsl:with-param name="input" select="$DisplayTitle" />
</xsl:call-template> -
Embed metatag navigation with API or Web Part in SharePoint 2010 web site or site navigation
Is it possible to embedd the metadata navigation of a dokument libary via API or webpart flexible and unfolded into SharePoint 2010 site navigation or in an other area of the SharePoint Webseite?
Hello Mayank,
If you want to display content within a site collection then you can also use CQWP and dataview webpart but if you want to show content in different site collection then you have to create custom webpart.
You can also try with codeplex webpart:
http://crosssiteviewer.codeplex.com/
For creating own webpart, please look at here:
http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Cross-Site Display Web Part in SharePoint 2010
Every document library has its default web part called List view web part. So when we create a Document Library or list on a site, by default a
List View Web Part is created. We can see that when we try to Insert a Web Part on a site. For instance, for
Division Level Financial Records Document Library, the list view web part will be called, “Division Level Financial Records.”
But we will only see this web part when we actually create a library or list on the current site itself.
I would like to learn about Cross-Site Display Web Part. So I can have a document Library in one site and can retrieve, view, and upload records from a different site within the same site collection. I know Bamboo Solutions offers a web part that can
do this. Any other? Any sample code to design a custom web part?
Thanks a lot in advance!
MayankHello Mayank,
If you want to display content within a site collection then you can also use CQWP and dataview webpart but if you want to show content in different site collection then you have to create custom webpart.
You can also try with codeplex webpart:
http://crosssiteviewer.codeplex.com/
For creating own webpart, please look at here:
http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Workspace Project Custom Field Web Part on different Site Collection?
Hello experts,
I'm working on a project site template in a SharePoint 2010 environment. My client wants project custom fields to be displayed on the Project Site homepage.
To accomplish this, I'm using the Solution Starter's Workspace Project Custom Field Web Part.
It works fine, as long as we create the project sites under the PWA site collection.
However, due to administrative reasons, we've decided to provision all project sites under a separate Site Collection, in a separate content database. In this case, we manage to add the webpart to the page, but as soon as we try to edit it, to configure
the visible Custom Fields, we get this error:
Server Error in '/' Application.
Unhandled Communication Fault occurred
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: Unhandled Communication Fault occurred
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: Unhandled Communication Fault occurred]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413241
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
WorkspaceProjectCFWP.WebSvcCustomFields.CustomFields.ReadCustomFieldsByEntity2(Guid entityUid) +181
WorkspaceProjectCFWP.Services.<>c__DisplayClass12.<GetCustomFields>b__11() +158
Microsoft.SharePoint.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() +729
Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +26839062
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +27885657
Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +93
WorkspaceProjectCFWP.Services.CustomFieldsService.GetCustomFields() +208
WorkspaceProjectCFWP.Services.CustomFieldsService.GetAllProjectFields() +173
WorkspaceProjectCFWP.ProjectCFEditorPart.SyncChanges() +325
Microsoft.SharePoint.WebPartPages.ToolPane.OnSelectedWebPartChanged(Object sender, WebPartEventArgs e) +283
System.Web.UI.WebControls.WebParts.WebPartEventHandler.Invoke(Object sender, WebPartEventArgs e) +0
Microsoft.SharePoint.WebPartPages.SPWebPartManager.BeginWebPartEditing(WebPart webPart) +96
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ShowToolPaneIfNecessary() +579
Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +296
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +11146206
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474
Now, I've activated every possible feature, both on the Site Collection and Site level (or SPSite, SPWeb). Alas, no succes. Which brings me to these questions:
What might be causing this error? Can this be solved?
Are there any cases of working webparts of this kind in site collections other than PWA?
If this is a technical limitation, what are alternative options for me to display custom fields on a project site?
Link to the Solution Starters: http://archive.msdn.microsoft.com/P2010SolutionStarterHi
I did not use this solution starter, but it might be that the webpart just looks for a Project Server instance in the current site collection - and there is none.
You could use a SQL Reporting Services Report to show on the site to accomplish this. Either you would have to set the project as a parameter manually once for each site, or you could try to determine the project automatically using the URL.
Kind regards
Christoph
Christoph Muelder | Senior Consultant, MCTS, MCSE, MCT | SOLVIN information management GmbH, Germany -
Hi,
I found a thread in this forum With an answere to a similiar question here:
http://social.technet.microsoft.com/Forums/en-US/28bc1e27-4a65-4c61-9b3e-cb9dad17f779/office-web-apps-preview-sharepoint-2010-documents-in-sharepoint-2013-search-results?forum=sharepointsearch&prof=required
...With the answere:
"OWA uses an access token to talk to SharePoint 2013. It cannot use this when talking to 2010. In order to work with 2010, you have to create a custom display template that converts the file url to an openurl link. "
BUT...
may anyone give more information how to do this?
Links to articles? Links to description and samples?
jikHi,
According to your description, my understanding is that you want to preview documents from SharePoint 2010 in search results in SharePoint 2013.
Per my knowledge, the Office Web Apps is configured to work with SharePoint 2013, so it will not work with documents in SharePoint 2010.
I recommend to configure Office Web Apps to work with SharePoint 2010
and make sure that documents can be previewed in SharePoint 2010 using Office Web Apps to see if the documents can be previewed in SharePoint 2013 search result.
http://technet.microsoft.com/en-us/library/ff431687(v=office.14).aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Calling an external web service from SharePoint 2010
Hi Friends,
Idea is to call an external web service from SharePoint 2010 list.
Can we do this using visual studio 2010, how.
another pointers, please advise.Hi,
You can create Windows Communication Foundation (WCF) web services that you can consume as external content types from Microsoft Business Connectivity Services (BCS).
For more information, you can refer to:
http://msdn.microsoft.com/en-us/library/office/gg318615(v=office.14).aspx
http://www.c-sharpcorner.com/UploadFile/Roji.Joy/connecting-to-a-web-service-using-business-connectivity-serv/
http://blogs.msmvps.com/windsor/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010/
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Status of DataView Web Part in SharePoint 2013
I hope this is a simple question but I'm stumped. What is the status of the DataView Web Part in SharePoint 2013? I am working on a migration of our site from SP 2010 to SP 2013. We previously had a DataView Web Part which is used widely on our site. It
is not showing up and the error is "Type type could not be found or it is not registered as safe." When I try to add a new copy of this web part, I get the message "The type Microsoft.SharePoint.WebPartPages.DataViewWebPart....PublicKeyToen=71e9bce111e9429c"
could not be found or it is not registered as safe.
I'm not the Farm Admin is this case, so my question is whether the web.config needs to be edited to make this usable, or something else perhaps. Or am I simply out of luck using this in SharePoint 2013.
Any help is appreciated!I suspect you will need to compare the web.config files on the new 2013 system to the ones on the old 2010 system and evaluate the differences. The safecontrol entry is in my default 2013 environment. If its not in yours it will need to be added.
For any web part to work you need three things:
A safe control entry in the web.config
A .dll that contains the code that generates the html displayed when the web part is rendered.
A .dwp or .webpart file in the web part gallery that contains info about what class and .dll to use
#3 should be in the content database you are migrating. YOu'll need to verify that #1 & #2 exist.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Can i use Report viewer web part in SharePoint 2013 app to show SSRS reports?
Can i use Report viewer web part in SharePoint 2013 app to show SSRS reports?
SharePoint app you mean a simple sharePoint 2013 application like site, team site etc, or do you mean an App (the new feature like webPart).
To add a SSRS Report viewver web part follow these steps
1. Edit the page
2. Choose insert a webpart
3.Select SQL server Reporting -> SQL Server Reporting Services Report Viewer webpart
4. Configure the webpart to show your .rdl files.
(See the img below. Plz mark as answered if it helps). -
How to find out Db name of perticular web application in sharepoint 2010
how to find out Db name of perticular web application in sharepoint 2010 to take a backup from sql
1. Open the SharePoint 2010 Central Admin application.
2. On the SharePoint central administration website, click Application Management.
3. In the Databases section, click Manage Content Databases.
4. On the Manage Content Databases page, select a web application by clicking the Web Applications drop-down list and choosing a web application.
5. Can notice the available database names for the webapplication. ******************************************************************************************
Please remember to mark your question as answered &Vote helpful, if this solves/helps your problem
s p kumar -
Advanced Search Web Part in SharePoint 2013
I would like to know more about advance search web part in SharePoint 2013. How it looks and implementation ?
Hi,
Please go through below video/links for more details on SharePoint 2013 Search and associated feature.
http://www.youtube.com/watch?v=T1J_pMD7V_4
https://social.technet.microsoft.com/forums/sharepoint/en-US/99e6d5f2-76da-4fdd-8464-24159f12cee1/advanced-search-box-web-part-is-missing
Hope this helps you.
Regards
Soni K -
SharePoint 2010 Form Library Missing the Option to Create Gantt Chart
I have two content enable SharePoint 2010 form libraries - one has the option to create a Gantt Chart view while the other does not. Why?
Hi Zach,
Please access the page when you create a standard view, I assume the page url is as:
_layouts/ViewNew.aspx?List=ID&Source=ID
Try add &Gantt=True in the end, and the page url should be as:
_layouts/ViewNew.aspx?List=ID&Source=ID&Gantt=True
Click Enter and see if you can create a Gantt view. The list should at least has two columns in Date type for start date and end date.
Regards,
Rebecca Tu
TechNet Community Support
Maybe you are looking for
-
how long does it take to delete an account from a macbook (OSX 10.9.4)? I used secure delete (at the recommendation of the apple genius) and it has already taken 2 weeks... and still not deleted! Granted there was over 200GB of data... any ideas on
-
Adobe Flash Player Update malware
Whenever I attempt to load a webpage in Safari, the following message pops up: "You need to update your Adobe Flash Player. Do it now ?" There is no "x" or "cancel" option but rather only a flashing "OK" button. You can't click outside of the window,
-
I recently purchased photo processing programs from Topaz Labs to be used as a plug in for Adobe Photoshop Elements. When I tried to install, I got a message that I must have "Open GL 3.2 or later driver, and I am running Open GL 2.1.0- Build 8.15.10
-
IOException while print in windows 98
Hi all, While printing,i get the IOEXception java.io.IOException: CreateProcess: C:\\command /c copy c:\CashPrintPage.txt lpt1 error=2 �at java.lang.ProcessImpl.create(Native Method) �at java.lang.ProcessImpl.<init>(Unknown Source) �at java.lang.Proc
-
Rookie install, please help (xhost / display issues)
First time on Unix, first install of Oracle - sorry if these are ignorant questions. I have a SunV440, Solaris 10 installed. There is no graphics adapter - currently running the console output to a random windows box through hyperterminal via the RJ4