SharePoint Foundation 2013 - FBA Custom Login Page

Hi,
     i am trying to enable FBA in SharePoint Foundation 2013 and it works fine for default login page
     but when i try to create custom login page ( which is already working without any problems in SharePoint 2010 )  i receive an error when i try to authenticate user using the following code :
         SPClaimsUtility.AuthenticateFormsUser(Context.Request.UrlReferrer, txtUserName.Text, txtPassword.Text);
     i checked the Log file and found the following entries :
        - Application error when access /_layouts/CM Custom Login Page/Login.aspx, Error=Exception of type 'System.ArgumentException' was thrown.  Parameter name: httpApplication   at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri
context, String userName, String password)     at CM_Custom_Login_Page.Layouts.CmCustomLoginPage.Login.btnLogin_Click(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)    
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
        -  System.ArgumentException: Exception of type 'System.ArgumentException' was thrown.  Parameter name: httpApplication    at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri
context, String userName, String password)     at CM_Custom_Login_Page.Layouts.CmCustomLoginPage.Login.btnLogin_Click(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)    
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      -  Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Exception of type 'System.ArgumentException'
was thrown.  Parameter name: httpApplication     at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri context, String userName, String password)     at CM_Custom_Login_Page.Layouts.CmCustomLoginPage.Login.btnLogin_Click(Object
sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
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 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

check first whether you are getting context or not, to me it looks like issue with Contrext.Request.UrlReferrer
try with this code
Uri url = new Uri(SPContext.Current.Web.Url);SPClaimsUtility.AuthenticateFormsUser(url, txtUserName.Text, txtPassword.Text);

Similar Messages

  • Create a custom Master Page in SharePoint Foundation 2013

    Hi,
    I am new to SharePoint foundation.
    I am trying to create a custom master page and save it as template, so that i can use it for all other sub sites. But i don't know where to start. Also i tries searching in Google, i got results for share point and not for share point foundation.
    So, Please give me a step by step procedure or a link to step by step procedure on how to create a master page, save it as template and use it for a sub site.
    Thanks in advance,
    Gowtham R

    Few points to note related to SharePoint Master page:
    You don't need to create master page template. If you deploy your master page in site collection level you can reuse the same master page in subsites without copying again and again, rather just by referencing
    You have not mentioned how you are going to deploy your master page. If you have any Visual Studio (VS) solution already, try to add your  master page in the VS solution and deploy your master page (and other branding components) as SharePoint WSP
    solution.
    Deploying master page will not activate the master page, you need to use some kind of 'Web Level Feature' to activate your branding - the feature will basically set the master page property of SharePoint site to your custom master page.
    Please follow the links below for steps by steps instructions (and you will find many just by googling 'sharepoint master page visual studio'):
    http://frederik.se/how-to-deploy-a-custom-master-page-in-sharepoint-2013-using-visual-studio/
    http://joshuaorimogunje.wordpress.com/2011/10/05/how-to-create-custom-master-page-for-sharepoint-2010-using-visual-studio-2010/
    http://blogs.msdn.com/b/bobgerman/archive/2011/01/31/packaging-master-pages-and-page-layouts-with-visual-studio-2010.aspx
    http://go.limeleap.com/community/bid/291931/Creating-a-Custom-SharePoint-Master-Page-with-jQuery-Using-Visual-Studio
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • SharePoint Foundation 2013 - Master Pages

    I am trying to create a SharePoint Intranet site but am quickly running into a number of issues and am looking for help.
    I need to create a site that has multiple subsites (one for each department) however all of the subsites need to have a consistent look and feel about them so I have delved head long into branding, creating master pages, etc.  I have set-up  a
    master page, with a logo and icon, I would like this to cascade down to all subsites and pages below however I have no option to set this up.
    Is this a limitation of using foundation?  What other limitations are there to foundation that I need to be aware of?
    There also doesn't seem to be any visual designer, what do people use and what would people recommend to use?
    I am sure there will be a number of other questions that I need to ask but these will do for starters.
    regards,
    Matt

    Please refer the below link to apply custom master page to all sharepoint subsites
    http://rickhilferink.wordpress.com/2011/01/25/creating-a-sharepoint-2010-foundation-masterpage-solution-and-automatically-activate-it-for-all-sites-and-newly-created-subsites/
    http://aryannava.com/2011/03/29/how-to-apply-custom-master-page-and-theme-to-all-sharepoint-2010-sub-sites/
    For SP 2013 foundatoin limitations and boudaries, pls refer the below link
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/c2c3bdbc-2e48-436c-9bb8-b604f00de8fa/sharepoint-foundation-2013-limitation
    Please don't forget
    to mark it answered, if your problem resolved or helpful.

  • Site Login Behavior For SharePoint Foundation 2013 Users With Expired Passwords?

    What are the most user-friendly ways of getting external users with expired AD passwords back into the SharePoint site with a new working password?
    We already send automated email notifications to users reminding them to change their soon-to-expire passwords.  However, sometimes they miss seeing the email notifications before the password expires (such as after returning from vacation or just carelessness
    and lack of attention to email messages) or they see the warning messages and forget to act on it.
    When this happens and they try to log into the SharePoint site from the Internet, their login fails without telling the user the reason they can't log in is because their password expired.  So, they end up confused and call the help desk to get their
    password reset.
    Is there a way to set up SharePoint Foundation 2013 login in a similar way to the OWA login so that, when a user with a correct but expired password tries to log in, it gives them a prompt to set a new password right there rather than just an error indicating
    their login failed for unknown reasons or password is "incorrect?"

    It could be done. You get a different event log entry for an expired login attempt than for a wrong password, 4625 events denote a login failure and an error ID of 23 denotes a logon failure.
    A naff, but simple, approach would be to create a tool that checks your server logon event log for 4625 entries and then emails that user, or the help desk, or security, that they're trying to get onto your system with expired credentials.
    For a more polished experience you've got a lot more work and bluntly it's going to be impractical for you. You'd have to re-write sections of the SharePoint authentication process or intercept the process, both are risky and not a good idea to try.
    There's a really interesting paper here that might be of interest, it won't help you in your current situation but it might shed more light on the overall authentication/authorisation process.
    http://www.sans.org/reading-room/whitepapers/forensics/windows-logon-forensics-34132

  • Custom SharePoint Foundation 2013 workflows

    Hi
    I have created a custom workflow in my SharePoint Foundation 2013 environment using SharePoint Designer 2013.  I have a couple of questions:
    1. I have used the action 'Collect data from user' which is automatically sending emails to task assignees, however I need
    to customize these emails, is this possible? If so, could someone point me in the right direction for instructions on how
    to do this please?
    2. With the 'Collect data from User' and 'Send an email' actions, is it possible to include html code in the body of the
    emails?

    Try below:
    http://social.msdn.microsoft.com/Forums/en-US/ef945d33-50c5-4b89-8bb9-32a95498b419/how-to-change-email-template-for-the-approval-workflow?forum=sharepointcustomizationlegacy
    http://blogs.msdn.com/b/anolan/archive/2008/01/07/is-it-possible-to-modify-sharepoint-email-notifications.aspx
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f511a5a0-43ec-402b-a868-1bfe5d4a1462/how-to-modify-default-welcome-email-from-sharepoint?forum=sharepointadminprevious
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ea1c4ba9-cd8a-4ed7-80cc-e012933ea7cd/how-to-change-the-default-email-sent-out-by-a-sharepoint-workflow?forum=sharepointcustomizationlegacy

  • No Page title after migration from WSS 3.0 to SharePoint Foundation 2013

    Dear community,
    I have migrated serval sitecollections from WSS 3.0 (SharePoint 2007) to SharePoint 2010 Foundation and then to SharePoint Foundation 2013.
    Now in SharePoint 2013 no page titles appears, but under the title "Homepage" appears. I'dont know where "Homepage" is come from. The title of the page is "Test". Changing the title has no effect. In SharePoint 2010 Foundation
    the page titles appears correctly.
    Does anyone have a solution for this problem?
    Thank you very much and best regards,
    Lucian

    I compared the html code of the two sites.
    Migrated site:
    <h1 id="pageTitle" class="ms-core-pageTitle">
    <span id="DeltaPlaceHolderPageTitleInTitleArea">
    <label class="ms-hidden">Test Title</label>
    </span>
    <div id="DeltaPlaceHolderPageDescription" class="ms-displayInlineBlock ms-normalWrap">
    <a href="javascript:;" id="ms-pageDescriptionDiv" style="display:none;">
    <span id="ms-pageDescriptionImage">&#160;</span>
    </a>
    <span class="ms-accessible" id="ms-pageDescription">
    </span>
    <script type="text/javascript">// <![CDATA[
    _spBodyOnLoadFunctionNames.push("setupPageDescriptionCallout");
    // ]]>
    </script>
    </div>
    </h1>
    Standard site:
    <h1 id="pageTitle" class="ms-core-pageTitle">
    <span id="DeltaPlaceHolderPageTitleInTitleArea">
    Test Title
    </span>
    <div id="DeltaPlaceHolderPageDescription" class="ms-displayInlineBlock ms-normalWrap">
    <a href="javascript:;" id="ms-pageDescriptionDiv" style="display:none;">
    <span id="ms-pageDescriptionImage">&#160;</span>
    </a>
    <span class="ms-accessible" id="ms-pageDescription">
    </span>
    <script type="text/javascript">// <![CDATA[
    _spBodyOnLoadFunctionNames.push("setupPageDescriptionCallout");
    // ]]>
    </script>
    </div>
    </h1>
    There is a .NET Code in the HTML Code of the migrated site:
    <label class="ms-hidden">Test Title</label>

  • SharePoint Foundation 2013 - Treeview current navigation linking to wrong page

    Good day,
    We are having issues with the OOTB tree view for SharePoint Foundation 2013.
    The client has a document library with a folder structure. Clicking on the first level folder (Private) navigates you to the wrong url, but when you navigate to one of its child folders, by expanding the parent folder (Private) and THEN clicking on the parent
    folder, it navigates to the right url.
    See attatched screenshots:
    Error:
    No error:

    Hey guys,
    Any update on this? Sorry for the hassle, guessing it's a SharePoint bug?
    Thanks,
    Abrie van Wyk

  • SharePoint Foundation 2013 installation question / guide.

    Hi All,
    I'm new in SharePoint and going to Install SharePoint Foundation 2013. What I want is after installation when I'll provide Site URL to my users they can able to access the site using there windows / system Login ID and Password which has been provided by company.
    Can you please help me what steps I've to follow while doing the installation also is it need to install SQL Server also for foundation. Please Advice
    Thanks

    Hi,
    SQL is the backbone for SharePoint and your SharePoint content (the content you actually store in your sites) is going into SQL. So, SQL is mandatory but if you are planning to use SQL Express (the lightweight edition) then you don’t need to install it separately
    – by selecting a Standalone type SP Installation wizard will automatically install SQL Express for you. But there are few limitations directly associated with express edition. Like Microsoft SQL Server Express Edition database cannot be larger than 10 GB etc.
    For a complete list please visit
    http://msdn.microsoft.com/en-us/library/cc645993.aspx
    In order to access newly created site, all you need to install SP product and create a site using the site template, once done grant access to the required users via site settings page and that way users can access sites.
    I hope it helps you.
    Thanks.
    MachPanel - Premium Cloud Automation Solution

  • Email Notification on Calendar list Sharepoint Foundation 2013 not sending out email

    Hi,
    Actually i have 2 problem. I just don't have any idea how to solve them.
    1 ) I have a machine installed with Windows Server2012 and Sharepoint Foundation 2013. Email invitation from system and alert me email is working fine. Then I created a few email sending workflow using sharepoint designer 2013. The email are going out fine
    for list or document library but gave out error when i tried to send from Calendar list. The error is saying that the outgoing email is not configured correctly. If that was the case, should it be that i will receive error for all.
    2) I have another machine with same installation as above but doesn't send out any kind of email(Invitation,alert me, SPD2013 custom worflow). I've checked telnet port 587, it is responding fine. I want to know if i need to open port in the firewall/router
    settings for this port or if this issue is due to something else.
    Any help is really appreciated.

    What about Relay and Authentication?
    Trevor Seward, MCC
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
    Look.
    I think this is the correct configuration because it sends emails normaly with SharePoint 2010.
    If I configure my own email account in Outbound Security, Sharepoint 2013 sends emails but just when I login to Sharepoint, if other users login it doesn't send emails.
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

  • Disappearing Sharepoint Foundation 2013 anonymous list submissions

    I have a custom Sharepoint Foundation 2013 list configured to allow anonymous submissions from a public facing website, but which requires admin permissions to view the full list content. Think like a contact form or an online application - anonymous users
    can submit a new item via the form, but get "permission denied" when attempting to access the list itself. I've customized the New Item .aspx in Sharepoint Designer, and I've also added a redirect page after submission for a "confirmation"
    page.
    This seems to work perfectly in all of my tests - but I have several dozen users who have reported correctly filling out the form, pressing "Submit," and being taken to the confirmation page, but the list item is nowhere to be found when I log in
    and look at the list. It appears that somehow Sharepoint is losing the new list item, while still redirecting users to the post-submission confirmation page.
    If it was a single user, I'd chalk it up to user error (not pressing Submit or something), but I have enough identical reports to verify that this is definitely happening and data is definitely being lost. I have similar reports from users of all 3 major browsers,
    both Mac and PC. 
    Unfortunately, I can't reproduce this behavior on demand - the form works fine for me no matter what I throw at it. There's nothing in the recycle bin, no validation errors (I've turned off all validation for the form), and I have tried every browser/OS combination
    I can think of. In every single test I have done, the form submits flawlessly, and the new list item appears immediately - even for a blank form.
    Any ideas? Where do I even start trying to troubleshoot this if it happens seemingly at random?
    Thanks in advance for any thoughts...

    Hello,
    Without being able to reproduce the problem I can imagine this will be a difficult one to diagnose. I would start by getting some dates and times from users from when they did submit items that they are claiming did not appear in the list. I would then look
    in the ULS logs around these times and see if you can see the item being submitted / created.
    Regards.
    Brian Jones

  • Error Accessing Host Named Site Collections In SharePoint Foundation 2013

    We have a new SharePoint Foundation 2013 server that has one web application two host named site collections. We get the "This page can't be displayed" message when we try to navigate to either of the site collections. Adding the server's IP to
    the host file on the machine we are testing from doesn't help. We can ping the new sites from that machine. The web application does not have a host header.
    Web application URL = http://servername
    Site collection #1 URL = http://customer.company.com
    Site collection #2 URL = http://vendor.company.com

    Hi,
    I recommend to verify the things below:
    Check if site can be accessed with site collection administrator.
    Add the SharePoint sites to a trusted zone to see if the issue still occurs.
    As this issue can be caused by many reasons, you may check the ULS log for more detailed errors.
    For SharePoint 2013, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Change PageTitle in SharePoint Foundation 2013

    I'm trying to change the page title. My actual title looks like this.
    MyWebsite - page
    if I have a page url like this: www.mywebsite.com/SitePages/apple.aspx
    My page title will look like this:
    MyWebsite - apple
    I've created a custom list. Which stores the Page Title. I can get it like this.
    <SharePoint:FieldValue FieldName="CustomPageTitle" runat="server"/>
    But I cannont delete this Code, it brings me an error.
    <SharePoint:PageTitle runat="server">
    <asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server">
    <SharePoint:ProjectProperty Property="Title" runat="server" />
    </asp:ContentPlaceHolder>
    </SharePoint:PageTitle>
    How is it possible to Change the page title?
    Note:
    I'm using SharePoint Foundation 2013
    I'm trying to Change it on MasterPage. Not a Wepart.
    I've read the Post, but it didnt help

    Use
    the javascript to change the title
    <script
    type="text/javascript"> document.title = "Your Title Goes Here"; </script>
    or
    follow the below link
    http://blogs.perficient.com/microsoft/2007/08/programmatically-setting-a-web-part-pages-title/

  • MasterPages and SharePoint foundation 2013

    Hi
    I have created a web application in SharePoint Foundation 2013. I also have created multiple subsite.
    I want to change the visual (branding) of the website (and all subsites).
    I have created a custom masterpage and wanted to set it as the default master page. But when I do that, everything is now set with that custom masterpage (even the site setting pages, the viewlsts.aspx, settings.aspx).
    Is there a way to bind masterpages only with the content pages of my website ?
    Any links for info about that ?
    Thanks
    Richard Martin Web Developer / BI Developer

    Hi  marric01,
    All of the site setting pages, the viewlsts.aspx and settings.aspx is the application page. An application page is an ASP.NET Web page that is designed for
    use in a SharePoint Web site. Application pages are stored on the file system of the front-end Web server in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS directory and exist for every site in a Web application.
    This folder is mapped to an Internet Information Services (IIS) virtual directory called _layouts. Every site and subsite will have access to the application pages by using the _layouts virtual directory. 
    The scenario you have seen is what SharePoint will do when set the master page through Site Settings->Master page. All the pages on the site will apply this master page. 
    The settings.aspx, viewlsts.aspx and upload.aspx. etc. are application pages, the difference between application page and content page is that: application page store in server 15/Template/Layouts folder, all applications in the SharePoint farm use the same
    application page, while content page store in content database, each site use a unique page of them, you can update the page content in different site as you like.
    SharePoint by default doesn’t provide a method to set different master page for application pages, and this is not recommended, even if you can change this through update the page directly in the layouts folder, whenever you change it, it will affect the whole
    SharePoint farm, on all web applications.
    If you really need to this, I would suggest you to custom the ribbon button to direct to your custom specific application page like settings page. The concern by doing this is the default settings page is still available, and if users access the page by typing
    the url directly, he will see the default settings page.
    Reference:
    http://msdn.microsoft.com/en-us/library/aa979592.aspx
    Thanks,
    Eric
    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].
    Eric Tao
    TechNet Community Support
    Hi,
    Thanks for the information. While waiting for help with this forum, I was playing with SharePoint Foundation 2013 and SharePoint designer 2013. I saw that I can bind custom masterpage for each page that I create.
    (Style => Attach => Custom masterpage)
    I also managed to bind subsite pages to that same custom masterpage. 
    Is this a good way to customize the look and feel of my SharePoint foundation 2013 website (We are building a small intranet for about 100 person).
    Users are only gona be able to modify content inside the pages. We are (IT dept) the only one that can modify structure, add new pages and modify the look for the website.
    Thanks again !
    Richard
    Richard Martin Web Developer / BI Developer

  • Customising Sharepoint Foundation 2013

    Hi there,
    I am very new to Sharepoint and would like to create an company intranet.  I would like to create a custom home page for the intranet site.
    Can someone please provide instructions on how I can achieve this.

    Hi  Nixx1401,
    According to your description, my understanding is that you want to create a custom home page for the intranet site in the SharePoint Foundation 2013.
    Here is a great detail guide blog you can refer to. The guide has been broken down into 6 sub-sections:
    1. Creating the Intranet site
    2. Adding the Intranet Apps
    3. Setting up the Intranet Apps
    4. Adding the Intranet Web Parts & App Parts
    5. Setting up the Intranet Web Parts & App Parts
    6. Setting up the Intranet Navigation & Logo
    Creating a SharePoint 2013 Intranet Homepage
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Sharepoint Foundation 2013 User field issue

    Guys, I have an issue with Sharepoint Foundation 2013 site that we have created some custom workflows for. We have a couple required fields that we type in a users name and it automatically pulls up a user based on Active directory. once we choose that name
    and then save the form. the field immediately becomes blank when i open the workflow item back up. I'm kind of at a loss. I've already totally hosed the server once and was forced to restore.  This seams to have started when we installed share point server
    patch KB2881077 but i cannot uninstall or roll back the patch as there is no option to.
    Thoughts?

    If you're using SharePoint 2013 April 2013 CU or higher, this is a known issue where the People data is missing in Edit view. There is a separate issue that is resolved in the September 2014 CU:
    http://support.microsoft.com/kb/2995905
    Consider the following scenario:
    You create a SharePoint 2013 list that contains a Person or Group (people picker) column.
    You create or edit an item, and then you select a person whose name contains a comma in the Person or Group field.
    In this scenario, the value of the Person or Group field is lost when you save the item. 
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for

  • Limti the chart size

    Hi Am trying to change the chart type in properties but its not effecting to chart.Any one have any idea abt this.For this we should have to write any java script. When ever user is selecting the line chart but size is showing very large when compare

  • Received emails show nothin in the reading pane

    I have an issue with Outlook 2010 on a Win7 32-bit client. This user is receiving emails and nothing shows up in the reading pane. It only happens to certain emails but it happens often enough to be really annoying. When you go to reply/forward the e

  • Copy/Paste Dropping First Character

    The first character is dropped every time I copy and paste a block of text in Word (2008) and Photoshop CS6, but strangely not in my email client or Google Docs. I am using an iMac running OS 10.9.5. Has anyone else ever encountered this, or does any

  • Configuring and Troubleshooting Virtual Switching System (VSS)

    With Anand Ganesan Welcome to the Cisco Support Community Ask the Expert conversation. This is an opportunity to learn and ask questions about how to monitor, configure, and troubleshoot the Virtual Switching System (VSS) in Cisco Catalyst 6500 Serie

  • Front Row doesn't recognize connection.

    When I try to use Front Row I get a message that says I'm not connected to the internet. I have contacted Apple but they haven't been able to fix it. I've reinstalled MAC OSX but it's still the same.