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.
I have an application for which I wish to allow plug-ins. The plug-ins would be packaged in DLLs (one or more plug-ins per DLL). The application is written in Visual C++, and I was able (quite easily) to get a sample Visual C++ plug-in DLL to work. The main app looks in a particular folder for plug-in DLLs, and loads all that it finds. The process of loading the DLL calls the DllMain function, which allows the DLL to register all of its plug-ins with the main app. Another way of doing this would be to export a function with a known name in the DLL. That way, the main app can load the DLL, get a pointer to the function, and call that function, which would cause the DLL to register the plug-ins. This gives me the ability to discover the plug-ins at run time; neither the plug-ins nor the DLLs are known at build time.
I have been trying to do something similar with a VB DLL with little success. I was hoping someone would be able to suggest a way to find a VB DLL in a well-known location, load it, and either have it execute a function upon loading, or allow me to discover one or more functions that I can execute. Apparently, there is no way to export a function in a VB DLL the same as I can in a VC++ DLL.
I'm trying to make a quick app that changes a few settings on PC which I need to be able to run a piece of software and I want these services on when I'm not using it.I've managed to get the Windows Services I need to act as I want but can't find a way of programmatically turning off Windows Network Discovery.
Lets say that Computer 2 connects to an external server. How can that server get the FULL path of the address, not only the IP of the first router?(of course in vb.net)
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?
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 have a simple desktop application that uses a .NET setup project (.msi file) to perform the installation. On the first installation, everything proceeds in a timely fashion with good feedback for the user.The problem occurs when the user is installing the latest version of the application over an old version on their machine.There is an unacceptably long delay of about 60 to 180 seconds from the time the installer's 'Welcome' dialog [It's not the Welcome dialog, I've removed that from the Start section of the setup project and replaced it with a CheckBox dialog to ask if the user wants a shortcut on the desktop] disappears until the 'Progress' dialog appears. The user sees minute(s) of blank screen and thinks the install has stopped or failed.
In the setup project properties, I've got the 'DetectNewerInstalledVersion' and 'RemovePreviousVersions' properties set to true. So, I believe that while nothing appears to be happening, the installer is actually removing the old version. The 'Progress' dialog does not appear until the new version begins installation.I've been trying to either:
a) Get the 'Progress' dialog to display immediately after the 'Install Icon' dialog disappears
b) Show another dialog while the Uninstall is running to let the user know that the setup is still running and everything is OK.
I have been unsuccessful with both methods. I'm using VS 2008 SP1?
Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?
I often use the process of displaying a dialog from a form, with the dialog user input then used to update the main form without any problem. In a new scenerio I launch the main application screen, I then show a login dialog ontop of the main app screen and can launch another dialog from the login if a new user is required. The plan is to update the login dialog (updating a combobox to reflect the addition of a new user) from the new user dialog.
See code below :-
'Update login forms user list as new user added successfully frmRoomBookingLogin.cboLogin.DataSource = Nothing frmRoomBookingLogin.txtPassword.Text = "Updating password from dialog" MessageBox.Show("The password text is " & frmRoomBookingLogin.txtPassword.Text)
[code]....
The messagebox implies the dialog has been updated yet the text does not change. Is it possible to update the dialog when using a setup such as Form -> dialog -> dialog? I'm intrigued as why the dialog does not reflect changes. I have never refreshed/repainted the dialog as never required to in my other examples when updating a form from a dialog and never encountered a problem when using a two tier form setup.
I have an assignment due this week in which I have to make a app that has 5 buttons and a picture box. When each button is clicked it has to show the corresponding picture in the picture box, the fifth button closes the app.
I have the whole form set up the way it should be, but I have no idea how to write the code to make the buttons display the images and close the app.I have the images in a folder within the project folders.
I have yet to be able to find one, the one I found should how to do it using a file opener dialog and a folder browser dialog but that is not what I think my prof wants us to do, as that is more for a picture viewer app that lets the user choose the file of the image they want ot view.
All i want is for the buttons to be linked to specific photos that are part of the application itself and have them open.
Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?
I have a Dialog that is basically a confirmation dialog on some SQL statements. After the dialog I have an if statement: If frmRelease.ShowDialog() <> Windows.Forms.DialogResult.Cancel then.My buttons are set as DialogResult = OK and DialogResult = Cancel respectively on the dialog form.
For some reason, sometimes my button set to DialogResult = OK is returning me a DialogResult.Cancel, and causing me to skip a block of cleanup code.
I'm using a DLL in vb.net 2005, and this dll show a messagebox with OK option. I would like to close this Messagebox by code.
I was investigating to use SetWindowsHookEx, but I can not detect it. Is it possible to don't show any dialog, or detect the dialog using the dll name?
I have a dialog which opens another dialog. The problem is that the second dialog opens behind the first. Is there a way to stop this from happening? I tried bringtofront with no success.
I've been tryiing to use the Print Dialog control in Visual Basic. Can someone provide me with an example on how to do this and walk me through it step by step?
In printing, I want to draw a square around the text that I am printing. I am trying to make notecards and would like to have text on one side and a word on the opposite side. I would like to put a square border around this. I have not advance to the graphics stages yet. I have in my toolbox--a control that says rectangle and circle. Can I use any of these controls to draw the box. What type of file(ex. doc or .pdf) do I store the file as if it has a graphic like this in it?
how to build a fax software through Visual Basic for Windows Vista and print to it?
I have a problem that When I Install my project on another computer it gives me the following error, even work good on my own system.
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
Exception Text System.Runtime.InteropServices.COMException (0x80040112): Class is not licensed for use at SMS_ANSI.Form1.Form1_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() [Code] .....
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog. Here is my project: [URL] dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf' dp.SyntaxHighlighter.HighlightAll('1302a0f0e63d492f8ec0bef756e8246b')
I have a WinForm that is used as a Dialog with just OK and Cancel buttons. So:[code]I have an If/Then to see if the user pressed OK. If they pressed OK and there is a validation error, I need them to go back to the dialog and fix it.[code]What would I put in Case Windows.Forms.DialogResult.Cancel to take me right back to the first dialog as sr.DialogResult = Windows.Forms.DialogResult.None doesn't seem to be working?I've tried raising the event sub again (it's a click from a menu item), but this doesn't work with the technology I'm using (VSTO Ribbon).
For my program I've developed the code so that when I click a button a textfile automatically opens without the dialog and shows in the textbox;
Dim FILE_NAME As String = "C:ContactsCornwall.DOOS" If System.IO.File.Exists(FILE_NAME) = True Then Dim objReader As New System.IO.StreamReader(FILE_NAME) TextBox1.Text = objReader.ReadToEnd objReader.Close()
However, can this be done for the Save function aswell, so that when I click Button 1, the file automatically saves to C:Cornwall.DOOS instead of having to use the Save File Dialog
I am currently working on a custom control which - unforunately - also includes a Dialog. My problem: I can't find a way to set the Dialog's location! I want the Dialog to be exactly the same size and Location as the ParentForm. The size worked fine with
Me.Size = MyBase.ParentForm.Size
However, the same trick does not work with
Me.Location = MyBase.ParentForm.LocationListing SPEC's is not a review !!! :-)
When to use a dialog box and when to use a messagebox?suppose i am perfoeming a delete operation and i want to take a final permission from the user whether he wants to delete it or not.in this case i used a dialog box and when the delete operation is completed,then i showed a messagebox.is this a correct way to do this or i should use messagebox in both the cases?