InfoPath 2010 does not work in claims authentication mode on SharePoint 2010
Hi everyone,
I created an Infopath 2010 Forms published on a Claims-based authentication site collection. This form has an external datasource plugged on the
_vti_bin/UserProfileService.asmx webservice (within the same site collection). This datasource is queried when the form opens. When I check this form with Infopath designer preview, everything works fine.
But once this forms is published, an error "Error while trying to contact Web Service" occured when opening a new form.
Here ere an extract of the logs:
The following query failed: GetUserProfileByName (User: DOMAIN\username, Form Name: library, IP: , Connection Target: , Request: http://server/_layouts/FormServer.aspx?xsnLocation=http://server/library/forms/template.xsn?DefaultItemOpen=1&Source=http://server/page.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:library:-myXSD-2010-01-12T23-08-28 Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.
Server was unable to process request. ---> Attempted to perform an unauthorized operation.
The remote server returned an error: (500) Internal Server Error.)
Here is an extract of my IIS log:
2010-11-25 13:45:30 fe80::b9ab:23d9:ff9e:bb23%11 POST /_vti_bin/userprofileservice.asmx - 50000 - fe80::b9ab:23d9:ff9e:bb23%11 InfoPathDA 500 0 0 41
Additionnaly, you have to know :
If we set the web application authentication mode in "Classic mode", everything work fine
As soon as we set "Claim mode authentication", we reproduce the issue and this even if we are using a Windows integrated account or an external account (SQL Memberships, Claims/AD)
We reproduce this issue in different SharePoint FARM.
It seems that this issue is generic with "Claims mode authentication" and i'm not shure that other forum can help us.
How can I make this WebService works for my form?
Thanks in advance.
Seb Nicot
I am not sure but a Code Solution might work ... I assume InfoPath 2010 is not Claims-Based aware.
I am on SP1 and June 2011 CU but still had no luck
If you only need the current user’s login name, then in the “FormEvents_Loading” event, you can retrieve the current user name with a call to the “Application.User.LoginName” property. Here is an example:
public void FormEvents_Loading(object sender, LoadingEventArgs e)
XPathNavigator codeUserNameXPN = this.CreateNavigator().SelectSingleNode(
"/my:myFields/my:CodeRetrievedUserName", this.NamespaceManager);
codeUserNameXPN.SetValue(this.Application.User.LoginName);
OR ----------------
public void FormEvents_Loading(object sender, LoadingEventArgs e)
//A place to write the results
XPathNavigator codeUserNameXPN = this.CreateNavigator().SelectSingleNode(
"/my:myFields/my:CodeRetrievedUserName", this.NamespaceManager);
//codeUserNameXPN.SetValue(this.Application.User.LoginName);
try
//ThresholdAuthentication is the web service reference to the
//https://test:24575/_vti_bin/authentication.asmx web service
GetUserName.ThresholdAuthentication.Authentication authenticationWS =
new GetUserName.ThresholdAuthentication.Authentication();
//Call the web service's Login method and pass the username and password of a site
//administrator so we have rights to read all user profiles
authenticationWS.Url = "https://test:24575/_vti_bin/authentication.asmx";
authenticationWS.CookieContainer = new System.Net.CookieContainer();
GetUserName.ThresholdAuthentication.LoginResult result = authenticationWS.Login(
"Admin", "Pa$$w0rd");
if (result.ErrorCode == GetUserName.ThresholdAuthentication.LoginErrorCode.NoError)
//If we authenticated correctly, then set up a call to the user profile service
//ThresholdUserProfileService is the web service reference to the
//https://test:24575/_vti_bin/userprofileservice.asmx web service
GetUserName.ThresholdUserProfileService.UserProfileService userProfileWS =
new GetUserName.ThresholdUserProfileService.UserProfileService();
//Pass the authentication cookies we got back from the authentication web service
userProfileWS.Url = "https://test:24575/_vti_bin/userprofileservice.asmx";
userProfileWS.CookieContainer = authenticationWS.CookieContainer;
//Try to find the user profile information of the current
GetUserName.ThresholdUserProfileService.PropertyData[] resultData =
userProfileWS.GetUserProfileByName(this.Application.User.LoginName);
//Enumerate through the properties
foreach (GetUserName.ThresholdUserProfileService.PropertyData property in resultData)
//Pick out the "AccountName" property and display it
if (property.Name == "AccountName")
codeUserNameXPN.SetValue(property.Values[0].Value.ToString());
else
//If we failed to authenticate properly, display the reason why
codeUserNameXPN.SetValue(result.ErrorCode.ToString());
catch (System.Exception ex)
//If an exception occurred, report it.
codeUserNameXPN.SetValue(ex.Message);
Note that in order for this code to work, you will need to make your form template fully-trusted in the “Security” section of the “Form Options” dialog, and then publish your form template to SharePoint as an Administrator-Approved form
template
Similar Messages
-
Microsoft Exchange 2010 does not work
I debated a long time between a Galaxy S3 and an Iphone 5. I had an Incredible and loved it. I went with the Galaxy, and it is basically unusable for my email. I just got it yesterday. I spent 2 hours on Verizon support, and the tech couldn't fix it. I took it back to the store where they couldn't fit it either, but told me it was probably a problem with the server. Yet, the Incredible worked just fine with the same server. I get the email, but sometimes it will open when I tap on an individual email and sometimes it doesn't. Sometimes when I open the email from the home screen, it just is black. Sometimes it loads and freezes. I have been researching this on the net, and it looks like, as someone said, "there are lots of problems" about this very issue. Now I have a very expensive, new phone that does not work for me.
Incoming Emails disappearing. I just spent over an hour at the Verizon store. They could not help with this issue of incoming emails disappearing. I had to explain the problem several times as she could not understand this issue. We called Tech Support from the store who advises that Samsung is having issues with emails disappearing. I was told they were working on a fix and it should have been fixed by Dec 26. I purchased my phone prior to this date and my emails have always disappeared. It's frustrating going from a Droix X dumbphone to something that I expect to work and it doesn't! Otherwise the phone is great! I just need to be patient while they work on a solution which I am not. Verizon also recommended that I call Samsung directly!
-
Tab key does not work properly in Assessment mode
I am predominatly using Adobe Captivate for software simulations and assessment purposes.
I've seen similar items posted on the forums and noted this appears to be a common problem with a solution, to edit the HTM file with the code so.addParam("seamlessTabbing", "false"); see post http://forums.adobe.com/message/5283597#5283597.
I tried this with a file that was published without the need for SCORM compliance and it worked fine. Once the requirement was introduced for SCORM compliance (and to publish as a Zip file), this does not work as the code is different in the HTM file.
My file has the following code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Copyright [2012] Adobe Systems Incorporated. All rights reserved -->
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="captivate.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enter Billable Time - Assessment</title>
<!-- Include external JS files -->
<script language="JavaScript1.2" src="standard.js" ></script>
<script language="JavaScript1.2" src="scormdriver.js" ></script>
<script language="JavaScript1.2" src="SCORM_utilities.js" ></script>
<script language="JavaScript1.2" src="Utilities.js" ></script>
<script language="JavaScript1.2">
//Register event handlers
window.onkeypress = CheckForDebugCommand;
window.onload = OnloadActivities;
window.onbeforeunload = Finish;
window.onunload = Finish;
document.onkeypress = CheckForDebugCommand;
</script>
</head>
<body>
<div id = "CaptivateContent">
<noscript>
This course requires JavaScript to be enabled in your browser.
Please enable JavaScript, then relaunch the course.
</noscript>
</div>
</body>
</html>
How could I edit this to disable the "seamless tabbing" referred to in the original article to make the TAB key work as intended.
Thank you.This is from my e-book:
http://www.infosemantics.com.au/troubleshoot-adobe-captivate
Notice that the procedure for Seamless Tabbing in Cp6 with SCORM is different to that for normal non-LMS courses.
Implementing Seamless Tabbing in Cp6
All Captivate versions up to and including Cp6 had Seamless Tabbing active by default and set in the HTM template code. But you can still turn it off by manually inserting some code into the published HTM file as follows:
Navigate to your published Captivate content and open the HTM file in Notepad.
Locate the line of code in the HTM file that starts with:
var so = new SWFObject(
Add the following code on the next line:
so.addParam("seamlessTabbing", "false");
Save changes to the file and test by running your project again in the browser. You should now be able to use the TAB key without leaving your published content.
Adding seamless tabbing to Cp6 SCORM support files
Seamless tabbing in Cp6 SCORM projects is a little more complex because the templates are quite different to those used for normal content. To control seamless tabbing in SCORM content you need to make the changes to the SCORM_utilities.js file in the Captivate install directory.
Depending on whether you’re on 32bit or 64bit, you should be able to find it at one of these locations:
32bit:
C:\Program Files (x86)\Adobe\Adobe Captivate 6 (32 Bit)\Templates\Publish\SCORM\Default\js
64bit:
C:\Program Files\Adobe\Adobe Captivate 6\Templates\Publish\SCORM\Default\js
Open the SCORM_utilities.js file in Notepad or another suitable plain text editor. Scroll down to the end of the code until you find the following lines:
so.addParam("quality", "high");
so.addParam("wmode", CONFIG.WMODE);
so.addParam("bgcolor", CONFIG.BGCOLOR);
so.addParam("menu", "false");
so.setAttribute("name", CONFIG.SWFOBJ_NAME);
so.setAttribute("redirectUrl", CONFIG.REDIRECT_URL);
so.addParam("AllowScriptAccess","always");
so.write(CONFIG.TARGET);
Add the so.addParam("seamlessTabbing", "false"); code to this group and save the file.
If you are currently unable to save changes to these template files, my gut feeling would be that it must have something to do with your user permissions. E.g. you are not an Administrator for your own PC. Is that possible? -
Blocked Senders feature in Outlook 2010 does not work
I have a specific blocked sender
[email protected] listed in my Blocked Senders list, but emails from that email
address still go to my Inbox instead of the Junk E-mail folder.
We use Exchange for email, and Outlook 2010 as the client.
Note: this sender is blocked for a specific sender that he configured through Junk E-mail Options in Outlook 2010, and this sender is not blocked at the server level.
I only have one account set up in Outlook.
What do I need to do to get Blocked Senders / Junk E-mail working in Outlook?
Thanks,
ElizabethHi,
From your description, I suggest you try to check the total size of blocked sender list. As total size of all lists combined cannot exceed 512K. Once the 512K limit
is reached, Outlook alerts you and additional addresses aren't saved until you remove some from the list.
If your issue is caused by the limited size, you can add a new registry key value to the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSExchangeIS\ParametersSystem\
Add a new DWORD value of Type Max Extended Rule Size and edit the Value Data, entering the maximum size (in bytes) you want to allow.
If your issue is not related to limited size, try to keep your junk e-mail filter updated. Each version of Microsoft Outlook that contains a junk e-mail filter receives updates to the data
file (outlfltr.dat) as part of the Microsoft-wide monthly update released on the second Tuesday of each month. The updated outlfltr.dat is the result of the evaluation of hundreds of thousands of spam messages and constantly increases the filter “catch”
rate for incoming junk email.
The recommended way to obtain updates to the Outlook Junk E-mail filter is by turning on the Automatic Updates option in the Windows Security Center.
If you have done all above but it still not work, try to create a new outlook profile to test this issue.
Go to Start > Control Panel, click Mail. The title bar of the Mail Setup dialog box contains the name of the current profile. To select a different
existing profile, click Show Profiles, select the profile name, and then click Properties.
Click Show Profiles. Choose Prompt for a profile to be used.
Click Add.
Type a name for the profile, and then click OK.
Start Outlook, and choose this new profile.
Sincerely,
Harry -
VNC not working in All Authenticated mode of User
Hello,
I have TMG installed in my environment through which user access filtered internet. A rule in which i have enabled URL filtration is in Authenticated mode of user and proxy address is also added in all internet explorer of user. when ever user try to VNC
a computer it says "connection timed out" and when i add " all user" instead of Authenticated mode in TMG rule. its is able to connect.Hi,
if your force user / group authentication in Firewall Policy rules, the clients must be TMG clients for protocols other than HTTP and HTTPS:
http://technet.microsoft.com/en-us/library/bb794762.aspxThis guide is also valid for TMG and the ISA Firewall client is now called the TMG client
regards Marc Grote aka Jens Baier - www.it-training-grote.de - www.forefront-tmg.de - www.galileocomputing.de/3570 -
BEx Analyzer with GUI 720 and MS Office 2010 does not work
I have recently installed SAP GUI 720 with BEx addon (7 and 3.x) on a computer with Office 2010 and Windows 7.
All BEx components work fine except Analyzer 7.
When starting Analyzer 7 nothing happens.
I have tried instead starting transaction RRMX from a BI system but this generates a short dump.
Does anyone have an idea about what could be the problem?
<<text removed>>
Best regards,
Didrik
Edited by: Matt on Sep 22, 2010 8:17 AMHello Didrik von Essen,
guess its issue with Excel Addins. i rectified the same issue by enabling the excel addins.go to Application wizard. and change the please find the screenshot . let me know if it works -
Default account setting in Outlook 2010 does not work when composing new messages?
Hello,
I am currently using Outlook 2010 (not beta). I have two accounts, a google imap account and a pop3 account. I have designated my IMAP account as my default account. As I understand it, this means that when I create a new email,
it should default to being sent from my IMAP account. However, whenever I create a new email, it defaults to the account which I am currently viewing in Outlook. In other words, if I am currently viewing the pop3 inbox, when I compose an email,
it will default send from that account. Conversely, when I compose an email while viewing the IMAP inbox, it will default send from that account.
Any ideas as to what is going on? This is rather frustrating because I only rarely send with my pop3 account--only when replying/forwarding email received with that account or other unique situations. Is there a way to make Outlook be true to
sending from the default account, without doing something drastic like disabling the secondary account?
Thanks in advance.
RomOf course it's a bug.
Computing Dictionary
bug definition
programming
An unwanted and unintended property of a program or piece ofhardware, especially one that causes it to malfunction.
The behaviour itself may be considered a feature by Microsoft, though I disagree, but the fact that one thinks one is specifying a "default" account that is not then used as the default in all cases is clearly a bug.
It is astonishing to me that in the plethora of options, advanced options and advanced advanced options there is not a checkbox to enable this new behaviour with the default being unchecked.
Microsoft does it again. -
Sync with Outlook 2010 does not work
While it seems to work, showing the normal progess bar in iTunes - taking some time and feels like normal, no data is transferred from or to outlook.
No difference with Outlook x32 and x64, iTunes is 10.2.2 x64.
Reinstalled office and iTunes several times, making empty outlook.pst etc. but still i can't get data from the phone to outlook.
Any ideas would be aprreciated.RIM has formally announced that support for Outlook 2010 will be available this month. I've heard rumors of August 10th but that's not official. Regardless, a new Desktop Manager will be released very shortly to add support for Outlook 2010 and some other great features.
1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you! -
Has anyone had this scanner working with the Apple drivers? Mavericks still adds this scanner and even gives it the correct icon in the dock. But, the CYMK channels are offset making the output images unusable. Surely this must be a driver fault which has been long standing, before Mavericks. I get the impression it is a generic driver that just maybe recognises an epson scanner and just does what it always does without taking too much care to adapt to the scanner itself. Such as shame as the Apple scanning software is otherwise very good.
Anyone know how to inform Apple they have a problem with the driver? Just to let them know...
Of course there is handmade solution by using Photoshop and move channels each other but frankly...
Here are sample scans which demonstrates the problem, one on mac through Image Capture:
… and just to compare, the sample I did in Paint (virtual Windows machine under OSX): -
Search is not working for only one site collection sharepoint 2010 production environment
did full crawling but it could not crawled particular this only site collection somehow.
when i search under Crawl log, it doesnt appear and throws message like
there are no urls in the system that match your request.
you can see following screenshot,
Thanks
Deepak patelHi Deepak,
Is this site collection url (e.g. FQDN url, or host named site collection url) different from other site collection?
If yes, please add the host named site collection in content source.
If not, and this site collection url are the same type/format with other site collection, please "reset index" if possible, and start a full crawl, let us know your resutls.
If issue still persists, please perform a query in search box, see if there is any related useful information from ULS log.
Thanks,
Daniel Yang
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]
Daniel Yang
TechNet Community Support -
Linksys X3000 does not work properly in bridge mode
Hi there.
I have some trouble with my X3000, and I am not able to figure out what's wrong.
This is the case:
I have an ADSL-connection. I am going to use the X3000 as a modem only, and connect a router to it in bridge mode. Seems simple enough, but sometimes the router just don't seem to be able to get an IP from the ISP. The X3000 is set to "Bridged mode only", and DHCP-server is disabled, as well as the wireless network. When I connect the router to one of the ethernet ports nothing happens (other than one of the LEDs lights up, depending on which port I put the cable in). I then try to reboot the X3000, but that doesn't help.
The funny thing is that if I try to connect my computer to the modem I sometimes get an IP straight away, and if I connect the router again it still doesn't get an IP.
This has also happened the opposite way; sometimes the router gets IP, but my computer doesn't if I connect it directly to the X3000.
What is going on?Hi, Jallenbo. Just make sure to properly configure the X3000 so you'll have no future problems. To do so, you may use this links: http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=a868c394b0664cc59773abf6df3ba5cf_Setting_up_your_L... or http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=5d8aaa8704694262bbe866f50a6ae46d_Setting_up_the_Li.... However, ISP configuration is essential so you can use this link: http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=19892.
-
troyantonik, What lens do you have and have you tried other lenses with your camera to see if they also do not autofocus when you press the shutter button down halfway? Just in case a setting may be causing this, I recommend that you reset the camera to the default settings. Please do the following:
Press the MENU button.Select the [Tools #3] tab.Select [Clear Settings].Select [Clear All Camera Settings].Select [OK].Select [Clear All Custom Func.].Select [OK].Exit the menu.If this is a time sensitive-matter, additional support options are available at Contact Us.Hello Troyantonik,
Since the issues with your camera seem to persist, we would recommend having the camera evaluated at the Canon Service Center. You can set up service through our web site, located here. -
DVD STUDIO PRO: Menu Button does not work when in Simulation mode
How can I make the MENU BUTTON work when I am playing my DVD in SIMULATION MODE? Right now nothing happens when I click on it. I want to make sure it works for the user.
ThanksNot sure I understand. Are you talking about the menu button on the remote control? If so, I think you need to check the inspector for the disk in dvdsp and make sure the correct menu is selected for this button. The behavior of the menu button can be a little tricky. If I remember correctly, it usually toggles between the menu and the track.
If you're talking about a button you've created on a menu, select the button and set the target in the spector. -
Blckberry Storm Does not Work on Windows 7 64 Bit Nor on Outlook 2010
Well I have been trying to get this @*** thing working for the last @*## week. My Dell was fried by a power spike. The Blackberry was in my pocket well away from the power spike. My current configuration is:
Windows 7 Home Premium
Acer Aspire 7540
4 GB of Memory 64 Bit Operating System
Blackberry Storm 9530, Platform Version 4.2.0.179, Application Version 5.0.0.419
1. I have installed the latest version of the Desktop Software via downloiad.
2. I spent most of today with tech support from Telus.
3. Neither MSS or MTP will work. We have installed and reinstalled all of the software atleast 3 or 4 times.
4. The Windows troubleshooter knows there is a problem and fails. It says (really helpful). USB Mass Storage Device has a driver problem. It also tries to install the MTP driver and fails. What is strange is that there is some communication going on between the Blackberry and the PC.
5. I can not get anything off the Blackberry (photos etc.).
6. The Blackberry does not work with Outlook 2010.
How can RIM possibly stay competitve when they can not even support the two largest platorms out there (Windows 7 64 bit and Outlook 2010). This is a symptom of massive problems for the future of this company.
I can not talk to RIM. They want me to talk to Telus. Telus says there is nothing they can do. I basically have a Blackberry that is little more than a simple phone. If the @#*# thing did not cost so much I would just pitch it and get an iPhone.moirl wrote:
5. I can not get anything off the Blackberry (photos etc.).
As was stated above:
1. Go to Options >> Media Card (or Memory)
(some themes or BlackBerrys may call this "Settings >> Media Card")
2. Check the following settings (if they are not listed this way, then change to reflect the following:
a) Media Card Support: On
b) Mass Storage Mode Support: On
c) Auto Enable Mass Storage: Yes
3. Save the settings and exit
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
I was billed for a renewal with eHarmony via iTunes that does not work. Eharmony said itunes claims the charge didnt go through but I have already been billed it is on my bank statement. How do I get my money back or get my subscription working?? I have all transaction ID's and invoice numbers. Please help this has been very frustrating, thanks.
Yes, I reported the problem using that exact sequence immediately after discovering the problem with the app. When I submitted my complaint and request, Apple redirected me the website of the app manufacturer where I submitted the same complaint/request for refund. I have not heard back from either, and was still charged, so I can only assume that is not the correct way to "Report a Problem" even though Apple would have you believe otherwise.
Maybe you are looking for
-
How can I display FK description in a JDev9i DataEdit Component
Hi all, I have a difficult issue here on the JDev9i. I use an XXXView_Edit.jsp where XXXView is a View Object. XXXView is actually based on a XXX entity object which in turn wraps the XXX Database Table. These .jsps have generated from the JDev9i wiz
-
Loss of back light to screen - screen kind of dead!
I opened my MacBook Pro earlier today and the screen appeared dead. I have it connected to an external monitor and that's working fine. On closer investigation I notice that I can just about see some windows on the MacBook Pro screen - looks like the
-
ITMS unable to process purchases
Ever since yesterday i keep getting the message "iTunes Musuc Store is unable to process purchases at this time. Payment process is temporarily unavailable. You may continue to browse the store. Please try to make your purchase later". I m not sure t
-
My iPod 5th generation won't turn on and my middle button doesn't work
My ipod 5th generation won't turn on and my middle button doesn't work! What will I do? It all starmed when I updated iOS 8. It would be fine but would shut down at random, now it won't turn on at all!!! when I press the lock button to turn it on the
-
I'm posting on behalf of my sister who owns a B560, Model 4330. Her laptop is plagued with the "Plugged in Not Charging" issue. So far Lenovo support has done the following (in order): --Reloaded the power management application --Asked her to return