defaultnetworkcredentials

DefaultNetworkCredentials has null values. Need to prompt user... how?

Under certain circumstances my desktop app using SharePoint web services ends up with DefaultNetworkCredentials having null values, and so the call fails. I need to then obtain the users credentials, but I haven't found a straightfoward way to do so. I'm considering implementing the solution outlined in http://www.pinvoke.net/default.a...

Credentials for Send Emails to MS Exchange 2007

I am writing a very simple application to send emails via MS Exchange 2007. No authentication is required to start the application. However, my application will be installed on the Hub Transport Server, instead of the Mailbox Server. Hence, I am not sure if I need to provide any credentials in my codes to send the emails. Or can I simply...

Using DefaultCredentials and DefaultNetworkCredentials

Hi, We're having a hard time figuring how these credentials objects work. In fact, they may not work how we expected them to work. Here's an explanation of the current issue. We got 2 servers that needs to talk with each other through webservices. The first one (let's call it Server01) has a Windows Service running as the NetworkServic...

How do you get credentials (NetworkCredential) of currently logged in user ?

Hi, I'm writing some code to utilise a 3rd party component, and I need to supply an object which implements ICredentials when I start to use it. If I write the following... var credential = new NetworkCredential("MyUsername", "MyPassword"); ...and pass "credential", it's fine. But I would like to pass the credentials of the current ...

when using "default proxy" where does the username/password come from?

Hi, The "WebClient" class (and ClickOnce also) can use default proxy settings (e.g. put in application.config), however: Where does the username / password come from? (I can't see a setting in the XML config - see below). Can the application be configured to manual prompt the user for the username/password http://msdn.microsoft.co...

DefaultNetworkCredentials or DefaultCredentials

Which one am I supposed to use when I need to supply a credential to a proxy (local or in Network)? What's the exact difference between these two? ...

ASMX: Setting User/Password at run-time

When I want to connect to my web service If I write it like this: m_TransferServiceSoap.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; it is working. but I need a Login Form. so users can enter their user/pass so I am creating a NetworkCredential instance and setting its user/pass members from what I get from th...

WebRequest is getting generated from another IP instead my system IP?

Hi, I have the following code which bypass the proxy server for local machine and then send a WebRequest. System.Net.HttpWebRequest Request; System.Net.WebResponse Response; System.Net.CredentialCache MyCredentialCache; Edit 1 //System.Net.WebProxy proxyObject = new...