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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Unable to pass default network credentials from a .NET / SharePoint application to Web Services

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :.NET Framework
 

Require some help in passing the authentication of a logged-in user to a web services (which is a wsdl file added as web reference to the application) from an ASP.NET application/ SharePoint 2010 portal. When the application calls the web service, the default network credentials need to be passed to the web service to get authenticated to use the data repository. This web service is used for searching a data repository depending on the logged in user's credentials and search query.

We have made necessary changes required in the applications like.

Necessary changes in web.config (like authentication mode to Windows, impersonation is made true). Install client certificates to the trusted location.

Enable IE 8.0 to use Integrated Windows authentication (Internet Explorer -->Tools-->Internet Options -->Advanced--> Security --> Enable Integrated Windows Authentication.


View Complete Post


More Related Resource Links

Unable to pass default network credentials from a .NET / SharePoint application to Web Services

  

Require some help in passing the authentication of a logged-in user to a web services (which is a wsdl file added as web reference to the application) from an ASP.NET application/ SharePoint 2010 portal. When the application calls the web service, the default network credentials need to be passed to the web service to get authenticated to use the data repository. This web service is used for searching a data repository depending on the logged in user's credentials and search query.

We have made necessary changes required in the applications like.

Necessary changes in web.config (like authentication mode to Windows, impersonation is made true). Install client certificates to the trusted location.

Enable IE 8.0 to use Integrated Windows authentication (Internet Explorer -->Tools-->Internet Options -->Advanced--> Security --> Enable Integrated Windows Authentication.

Even the web services have methods to get the windows network credentials. While trying the following code, to pass current credentials, default credentials is empty.

myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials (Here it is a null value)

Application is using Windows Authentication | NTLM.

The following code works, if the authenticat

Resume SharePoint Services Web Application and returns code 1387 error

  

Hello everyone! Newbie here. I would like to ask how to start the SharePoint Services Web Application on (WSS3.0,internal database, stanalone users) without getting error 1387 ?

I would love to provide more information regarding this issue but what I got is error 1387 displayed in the browser.

I look forward to seeing you guys feedback from your expertise angle.

 

 


Video: Business Connectivity Services for SharePoint 2010 Application Programming Interface (API)

  
This video provides an overview of development with Business Connectivity Services. (Length: 3:07)

WPAsign application service unable to succesfuly pass the BVT tool

  
Hello, I'm getting a bunch these messages every two hours in my Windows 2003 application log. The server in question does not have outbound internet access where by the server is configured as a web server for the WPAsign application. Message: Failed auto update retrieval of third-party root list sequence number from: <http://www.download.windowsupdate.com/msdownload/update/v3/static/trustedr/en/authrootseq.txt> with error: The specified server cannot perform the requested operation. and when I run the BVT tool form the comand window I am getting unknown error and the output has some partial files but not the whole list expected at succesful sign. What does this mean? How can I manually update this? Any help or insight would be appreciated.

Installing Application templates on SharePoint Services 3.0 on Windows 2008 r2 x64

  
Hi, I know I can install this on a Windows 2003 x64, but I can't find any confirmation that this can be installed on Windows 2008 r2 x64. Can I install this on Windows 2008 r2 x64 thanks, Stjani

Pass virtual directory credentials through application

  
Hi All,We have created a website and for the secured files created a virtual directory and in virtual directory properties we selected Application-user(pass through authentication).If any user directly browse the files link then the browser prompts a screen for virtual directory credentials.Here my requirement is i need to send the virtual directory credentials through the application.Please let me know.Thanking You..

Unable to authenticate to web services for a SharePoint 2010 logged in user

  
Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service(wsdl file) which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

Unable to authenticate to web services for a SharePoint 2010 logged in user

  
Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service(wsdl file) which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

Passing credentials from Sharepoint application to Reporting Server

  
Hi, Think of an environment where SSRS is deployed in share point integrated mode. There is a sharepoint application which is using user authentication (not windows authentication) for validating the login credentials of users using the application. There are some reports presented as web parts in the sharepoint application. Now, how should the user credentials be passed from Sharepoint application to Reporting services and how should they be validated? How the user credentials from sharepoint to be passed to report server and validate the permissions before showing up the report? Please let me know.  Phani Note: Please mark the post as answered if it answers your question.

how to pass sharepoint webservice credentials without hardcoding the credentials?

  
Hi,         i have a requirement where i need to use lists.asmx webservices. whenever an item is created in  announcement list on server A, its reference i.e. the item id needs to be added to the announcement list on server B. i got this done working, but i hardcoded the credentials for the webservice. something like this cmoss2.Lists StudentList = new cmoss2.Lists(); StudentList.Credentials = new System.Net.NetworkCredential("administrator", "admin1234", "myDomain"); StudentList.Url = "http://cmoss:6789/_vti_bin/lists.asmx"; cant we do this with out hardcoding the credentials? kindly suggest me, if there is any workaround. Thank you all  

"Fields and Content Types for the Windows SharePoint Services Application Templates"

  

Installation of Server Admin "Fabulous 40" Templates -

I saw a new feature appear after the templates were installed by our farm administrator. I didn't see anything in the documentation about it, but it seems like I should activate it.

Should I activate the "Fields and Content Types for the Windows SharePoint Services Application Templates" feature?

Are there any drawbacks?

Any other words of wisdom?

Cheers!


Unable to delete a "Web Application" In sharepoint central administration

  

Hello All..

I am struck here with a peculiar problem I have created a new web application to work with.

And now i want to delete that but sharepoint is not enabling some icons in ribbon like delete option.

Please enlighten me how can I delete that web application.


Unable to create new web application in sharepoint foundation 2010

  

I installed and successfully setup development environment in win 7 ultimate through PowerShell. When I tried to create new web application in “Manage web application” option of central admin, I found “New” button greyed out. I applied all the solution while browsing internet:

1.       I run internet explorer as administrator

2.       I run central admin as administrator

3.      

Executing SharePoint console application without sharing user credentials

  

I have a console application, which uses SharePoint object model to do some business operation, therefore it has been deployed on SharePoint server. Without sharing username/pwd, earlier we allow several users to access this console application by providing remote desktop file (.rdp) file. This .rdp file (ver5.1) contains username and encrypted password. With recent version 6.0 of .rdp, it still prompts for password. You may argue that it is due to security constraint.

What is the best approach to allow more users to run this console application without sharing user credentials, without modifying the console application.

Thanks in advance

 

J Justin

 


use the default sql services in a console sequential workflow application

  

Hello all,

I have configured my console workflow application to use the default sql service. However, when I run it in VS2008, it generates a TypeLoadException:

"Can not load type "System.Workflow.Runtime.Hosting from assembly System.Workflow.Runtime, Version=3.0.0000.0, Culture=neutral, PublicKeyToken=xxx"

So, my concern is

  1. How to configure a workflow application to use the default sql service?
  2. Are there any requirements for SQL version? Is there any settings we need to configure in SQL server?

Some tips

  1. my current app.config file looks like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <config

Windows SharePoint Services 3.0 Application Template: Bug Database - can you customize the emails?

  
My company is using a ms appliation template downloaded here: http://www.microsoft.com/downloads/details.aspx?FamilyId=C72D23AF-F556-47AA-A6F2-0027246A9928&displaylang=en#RelatedLinks.  How can I change the emails that get sent when an application is assigned?
nonam

How to pass credentials from Visual Web Developer to Reporting Services

  

Hi, 

I have a SQL Server 2005 database with Windows Credentials. I am trying to pass my credentials from Visual Web Developer to my report but it returns me: "Cannot create a connection to data source". 

How I have to pass the credentials to the report? 


Best Wishes, Arbi --- Please vote if you find this posting was helpful or Mark it as answered.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend