Credential Management In VB Application?

Jul 9, 2009

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?

View 8 Replies


ADVERTISEMENT

Data Management Application For Work

Jun 1, 2009

I am trying to construct a data management application for work. I had this working fairly well then moved over to VS 2008. When I am submitting my data via the button it is giving me a null exception error on the call sub.. Here is the code.[code....]

View 10 Replies

Application Along With Database Created In SQL Management Studio

May 24, 2010

Please how can i publish an application created in vb.net along with a database which i created in SQL Management Studio?

View 4 Replies

Asp.net Mvc - Expose Built-in Security And User Management To A MVC Application?

Jul 23, 2009

I have built a MVC website on IIS6. I used the built-in ASP.NET Security without Membership, just the way it was implemented in the template solution. It is easy to secure a contoller or action, but now I need to expose the user management to an admin logged into the site. I understand that the builtin ASP controls for doing this are not "best practice" and are a dog to get working. So what is the best practice for offering user management through a ASP.NET MVC application?

I considered using the Entity Framework and wireing it up to the myriad of stored procs. but that seems awkward. I see options for AccountMembershipService and FormsAuthenticationService. That is what the existing project account controller uses. But, I am not fimilliar with either.I can't help but think that this should have already been there from the project template. This is a fundamental part of any website and you were given 15%, why not the rest?

View 5 Replies

Memory Management - Reducing The Commit Size Of Application

Oct 15, 2009

I have an application which I've developed which queries Active Directory information and stores about 15 properties into a Datatable which is kept in memory. I need to decrease the amount of "Commit" memory it is setting aside. The application stays active in the system tray and allows for quick searching of information along with pictures for users. I have a class, which is able keep memory usage down pretty low. It runs on a timer every 10 seconds and listed below:

[Code]...

View 1 Replies

Deployed And Installed Application / Want To Attach Database Within SQL Server Management Studio

Mar 9, 2009

I've developed an application in VB2008 express and have installed it to another PC. The installation has put the mdf file in c:documents and settingsuserappsdata.I want to attach this with SQL Server Management studio but when I try to browse to the file in order to attach it, I find I can't browse further then C:documents and settingsuser.

View 3 Replies

Create A Credential For RDP Using VB 2010?

Sep 26, 2011

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.

View 3 Replies

See A Discovery Credential Dialog Box?

Jul 13, 2009

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.

View 7 Replies

Windows 7 Credential Manager?

Jan 27, 2011

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.

View 2 Replies

Manipulate Files As Part Of A Document Management Application That Stores Documents In A Location On A Network Drives?

Jan 26, 2011

I am trying to manipulate files as part of a Document Management application that stores documents in a location on a Network Drives. But the My.Computer.FileSystem.Drives collection does not contain the Network Drives mapped on my machine. I have about half-a-dozen of these, but none of them seem to show up in the Drives collection and thus are not visible to the other FileSystem functionality I need to use for file management.

how to make sure the Drives collection contains all my drives? I am running VS2010 Premium edition on Windows 7 64-bit on a 64-bit Dell machine.

View 6 Replies

Windows - Duplicate The Following Credential Process In .NET?

May 4, 2009

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.

[Code]...

View 4 Replies

User Credential Lookup In VB To Access Database

Mar 11, 2011

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.

View 2 Replies

Way To Invoke Standard Network Credential Prompt At All?

Jun 29, 2010

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?

View 2 Replies

Request.LogonUserIdentity.Name Returns Asp.net Server Credential Not The Users Credetials

Feb 15, 2011

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.

View 1 Replies

Remote Desktop - Make An Application Of Remote Management For Images

Aug 5, 2010

I want to do a small application that made the broadcast of images from a PC. The idea is to make an application of remote management but without the management part, only with the viewing of images. Anyone know any code already done or any API that helps in the project?

View 8 Replies

Cannot Seem To Use System.Management

Jun 14, 2011

I am using VB Express 2008, and I'm experimenting with querying WMI. I have tried the code samples from MSDN, but they do not compile. Here is an example of code that my IDE doesn't like:

Imports System
Imports System.Management
Public Class Query_SelectQuery
Public Overloads Shared Function _

[code]....

In this case, SelectQuery and ManagementObjectSearcher are underlined with squiggly blue, and it doesn't know what these are. What am I missing here? Please help, because I'd love to be able to write console apps that query WMI.

View 2 Replies

WMI Printer Management?

Aug 1, 2006

I am using vb 2005 and need help with trying to do the following :A Form that has a combo box , a listview and 2 command buttons( When the form loads ) i need the combo box to be enumerated with the printers that are on my server ( so will need to connect to my server which is obviously a remote machine ).Then when ever I select a printer from the combo box, it enumerates the listview with any print jobs that are in that printers que and I am able to select either one or multiple print jobs and click on the cancel print job button ( which will cancel any selected print jobs ) or click the cancel all button which will just delete any print jobs in that printers que.I know this is a lot to ask but even if I could just get an example of how to enumerate the printers into the combobox and get the listview to display the print jobs ( If any exist ) for that specific printer.That would be great.

View 1 Replies

Asset Management Software?

Apr 4, 2011

im looking to develop application for my small office similar to but all i want is only to get IT assets[workstation,servers,printers,OS] and software's install in my office

View 5 Replies

C# - .NET Constructors And Memory Management

May 10, 2011

Coming from more low-level languages like C++, and seeing how transparent .NET memory management is, I've got a concert about a piece a line of code I've written. In C++, every object necessarily (dictated design practices and peculiarities of memory management) needs to have a constructor and a destructor. In .NET, destructors aren't needed as often, and there are different patterns of when they are required and how to use them. My question is this. If I have the following like of code (in VB.NET, but equally applies to C#)

[Code]...

View 4 Replies

Can't Authenticate Using System.Management And WMI

Jun 16, 2009

I'm trying to write some code that can read events from another computer's event log. I haven't used WMI or System.Management all that much before this, and despite all the examples I've found on the web (there's a lot), I cannot authenticate to another machine.

No matter how I tweak the code, I always receive a System.UnauthorizedAccessException in System.Management.dll. (The message is "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))".) I have tried connecting to two different Vista machines on the network using their local user account information.[code]...

View 1 Replies

Car Hire Management System ?

Mar 23, 2011

I want to learn by resolving a problem i have been having with my small car hire business.

I want to develop a system which will enable me manage the business efficiently, the solution should be able accessible to more than 1 users, on my LAN and i would also like to have a web reservation system.

How easy/difficult is this when using VB.Net and what things must i do at the onset to achieve my goal.

View 3 Replies

Crystal Management Console CMC?

Dec 14, 2009

how to find & open the Crystal Management Console (I'm using Crystal Enterprise)?

View 1 Replies

Instruction For Resturant Management On .net?

Mar 18, 2009

I am student of T.Y.BCA. I have the project on VB.net. Give me the Insturcation for making a project on Resturent Management in Vb.net

View 2 Replies

Library Management System?

Sep 10, 2009

I am the beginner to .net framework itself.I am too confused whether to use asp.net using vb or just visual basic is enough?As I am just thinking over this topic.I feel this is not a website so not to go for asp.net.I thought to do it in

View 2 Replies

Need To Do Ebook Management Sytem

Mar 10, 2011

i want to to create a ebook management system in VB. This is for my university purposes, i dont have any idea about VB.net, so kindly i ask you to give any tutorial link. And these all should be in the project. The main thing is i want to know simple ways to work with databases. So kindly give some links for these, or even the project source code.

View 1 Replies

Panels For Menu Management?

Jul 31, 2011

I am looking to make an application where panels might seem to be very heavily used. Is it recommended not to use them for large item management?For instance, I want to have a menu with flat style button. When clicked on, they will hide all other menu panels and show the options for that buttons clicked. From there, for each option clicked, it will display a panel on the right with various results for the specific criteria selected.

View 5 Replies

Sql Management Studio For Vs2010?

Jul 13, 2010

which version of sql management studio express should i download for visual studio 2010

View 1 Replies

System.Management And Windows 7?

Dec 30, 2010

I'm using System.Management to get information about the computer like cpu id, mac address etc

Can i use it with win7 without problems because i know win7's security is not easy to work with.

View 3 Replies

Add MDI Parent For Library Management System?

May 17, 2012

As the beginner I want to know Is it necessary to add MDI parent for Library management System?

Can this be done without MDI Parent too?

And also is it necessary to add the below code for mdi parent of every project?
Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs)
' Create a new instance of the child form.

[Code].....

View 5 Replies

Asp.1.1 - Publishing - Put Database Up From SQL Management Studio

Nov 5, 2009

Using Vb.net 2003 Asp.net 1.1 Sql Server2005 Express Vs.Net 7.1. I have Vb.Net Standard and there is no Web Set Up with this version. I have FTP things along time ago but not asp just basic stuff. I have read about xcopy,copy project, I have XP and IE that I can FTP from. I also have to put a database up from SQL Managment Studio. I need to know HOW WHAT WHEN WHERE on how to do this right. This is an interactive site that I made, very similar to a Forum like this site. Do I just upload the dll.

I don't want my source code available for everyone to see, do I have to obfucate it if I am using [url] as a host. The site can't really be down all the time, I have read that I could work on thesite while it is up but I believe I will have to have all the source files up and open.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved