I've been trying to develop a VB application which retrieves a lot of information from an XML file on our secure intranet. So far I've been using...
Dim request As WebRequest = WebRequest.Create(xmlUrl) request.Credentials = New NetworkCredential(username, password) Dim response As WebResponse = request.GetResponse() Dim str As Stream = response.GetResponseStream()
Where username and password are predefined. What I need is a way of utilising the Windows credential manager to handle this. Ideally, I like it to pop up a credential prompt at application start, and then store the credentials for later use. So far so easy, but I want to be able to use the tick box to save the credentials back to the store, so taht next time the application is used, they are already filled in.
So far I've been investigating the CredentialsDemo from MSDN, but have been unable to adapt the routines to a web request from the given example of a SQL request. In fact I've not even been able to get the demo working adapting it to my own SQL server!It utilises the CredUIPromptForCredentials function. Is this the right way to go? Or am I barking up the wrong tree?
I registered a domain and created a (Windows) web site via [URL].I created a simple Hello World web service using VWD 2008 Express. I have no idea why it put the web service into the stats folder, but that is a different issue.If I type [URL] into the address bar of my IE 6, I am prompted for user name and password, which I enter. I get a page listing my web services (Only one: HelloWorld) and other information. If I click the HelloWorld link, I get the appropriate response.Bottom line: the web service uses SOAP and it works.
However, if I create a Windows application (vb) in Visual Studio 2005 to use the web service and try to connect to that same address (Add Web Reference), I get asked:"The server needs to authenticate your request. Your credentials will be sent to the server in clear text. Do you want to continue?" I click yes, and I see a Discovery Credential dialog box. It asks for 4 things.
1)Url: (The same address as above already filled in) 2)User name: (I enter my user name) 3)Password: (I enter the password) 4)Domain: (I enter mydomain)
Of course "mydomain" is a standin for the real domain name I typed in.I click Ok. The information apparently is rejected and the dialog appears again.What can I do to make this work. The web site has IIS 6 with front page extensions. This is shared hosting and I do not have access to change anything about the IIS settings.
Is it possible to create a credential for RDP using VB 2010?For example, to do this using win7 GUI:I go to credential manager and choose add a credential. I then enter TERMSRV/myserver and enter user name and password.
Turns out this impersonation with .NET's security only allows application-level access. Since the COM object is at the system level, the impersonated user still cannot instantiate it. I figured this out by right-clicking the executable and selecting "Run As...", the program functioned fine. I found out that launches the program with system access (assuming the user you are running it with has those credentials).Now I am in the process of creating an external program that will launch this application using this method.
I have a program which I am securing with a Username and Password box, in which the user enters their credentials. In the database, the username is a number field (VB would not accept this as a string and was looking for it as Int32). And the password is a text field. I have the form linked to the database by an OleDbConnection with a DataAdapter (DaUser) and DataSet (DsUser). I am using a datarow which I have declared at the top of my code i.e. Public drUser As DataRow. The problem arises when the user enters their username and password.
The following code searches the primary key row of the database (Username) drUser = DsUser.Tables("User").Rows.Find(txtUsername.Text) When the Username entered does not exist, I'm getting this error when trying to display on the form the users email: NullReferenceException was unhandled - Object reference not set to an instance of an object. I've tried both if statements and try/catch to basically say if the Username doesn't exist... display an error message etc.
I'm struggling to find a way of prompting the user for network credentials within a VB.net application. I appreciate I could use the login form, but I'd really like to be able to use the standard Windows UI prompt.I want to use the same credential prompt as you get when you try to access a server using UNC e.g.\servernamec.This is easily possible in Powershell using the get-credential cmdlet. The closest I can find is using the Powershell assembly PSHostUserInterface.PromptForCredential method, but I cant get this to work in VB.netIs there any way to invoke the standard network credential prompt at all?
I am building a simple intranet site and want to get the employees user name, but when i use Request.LogonUserIdentity.Name , i keep getting the servers credentials and not the users. what am i doing wrong and is there a better way to do this.
I Want to develop a software like Yed.i just don know where to start.how we can create a workspace where i can drag and drop icons and create connection etc etc.
I have a project to do for one of my classes that i need help on. Its and extra credit so im left on my own. Project Create a program to allow a student to create there own schedule. what i am trying to do is create a checkedlistbox for the student to check classes they are taking, and need something else to pop up or to show in another box or listbox the classes they can take for the next quarter. I know it has to do with if then statements but i dont know how to write basically:"if (class is checked in checkedlistbox) then ( these are the classes you can take)".
If I create a DLL using VB 2010 express can it be used by previous versions of of .Net (3.5, 2.0)? Will the DLL use .Net 4.0 components, which is what I want. I don't see a way to force that to be the case.
With a Windows form that I would like to be a DDE server. I know that DDE is not natively supported in VS 2010/11 so I'm using the NDde.dll to add DDE functionality to this program.
Objective: Create a windows form to act as a Pop-up notification that has a textbox field. This textbox field must be selectable in order for users to copy a text string to the clipboard and paste into another program that does not support DDE.
Overview: A phone system has an on-screen agent program that triggers a pop-up form, the DDE Server, when an incomming call is presented. When the agent accepts the call the agent program, acting as a DDE Client, registers a DDE session, Application=phnserver and Topic=callerid. Then communicates an "OnExecute" command to the DDE Server followed by a number string. This string should be presented on the pop-up form in a text box. Once the call is completed the agent application will issue a command to close the pop-up form.
I Want to create a DLL in vb.net but there are large parts that I want to write in F# but I don't want to create a F# dll and reference it from my vb.net project.I need only want one solution with everything inside. I heard somewhere that it is possible to do what I'm asking , but the code needs to be in different projects in the same solution. I went exploring around VS but I didn't find a method to create or add a new project.
I am trying to create an ActiveX.DLL file. I have created them before with VB 5.0. However, I can't find this option in Visual Basic 2010. Has it been renamed?
I'm running Windows 7 and am trying to Create a sub key in the registry.I used that code with no problems before but now it will not create this key [code].....
1. my program to be the default program for this extension2. when I open the file, I want it to make specific things in the program window3. the things that the file did, I want to be remembered next time I open the program.I want my program to have a better look, so I decided to make Theme Packs for it, and post them on program's website. That's why I want a code for all these things.
If I have two images, how can i attach the other image to the other creating one image? Basically copy one image, paste it to another and save that image.
I am wondering if anyone has a tutorial or source code to help me get started with creating a IRC Client that will connect to a IRC Server. I just want to make a pretty GUI to modernize it a bit and add some more features etc purely for educational reasons & because I need a new project.
If anyone has a tutorial or source code that would be great. This is a couple of steps up from my last project so I will need a guide to get me started etc. I have been searching on various sites etc but have found nothing so far.
I'm following some Microsoft tutorials and am having an issue quite early on. The video says to open 'Database Explorer' and then right click and 'Create New SQL Server Database'. The problem I am having is that, while the option to 'Create...' is there, it is greyed out and so I can't click it.
I am new to vb.net and i want to develop user defined report as in my attachment.Please give me an idea how to develop. my boss does want to use 3rd party components.
I am just wondering how i can create a picturebox array like i could when i copied and pasted another picturebox in VB6 and it asked me if i want to add them to an array. Doing so made them code like this:
Suppose I have a Microsoft Expression Blend. Is it possible to create a custom control (such as a button) in MSE Blend and then import it to visual basic 2010?For example, I want to create a custom shape button (different from what is available in the toolbox in VB2010) (like for example a pen-shaped button) in MSE Blend. Can I import it to VB2010 to be used with Windows Forms Projects? If yes, how?
I want to create an excel spreadsheet but, I want it to prompt me for the file name and where to put it. Once it is opened, I know how to interface with it. I only need to create a new file with a prompted for filename and location.
I generated SQL Server 2008 Database scripts. There are total 80 objects. The script executes successfully from sql server query. But not from .NET. That is I want to create the objects (tables and stored procedures) from there.If the database don't exist already in sql server, it fails. I have included the line
IF NOT EXIST (DATABASE)... CREATE DATABASE DBNAME
But it simply don't work and the process fails while the code perfectly works directly in SQL Server.
Any work around this? Can I run CREATE DATABASE somehow?
I trying to create windows form in VB.NET 2010 but this trouble.The error saying :Error 1 'InitializeComponent' is not declared. It may be inaccessible due to its protection level.