I've got an app on server 1 that's attempting to copy files from server 2. Server 1 is 'quarantined' from the rest of the local network for security reasons, but the network guy has made a couple of server 1 directories available to server 1 via IP. Thus, in my VB.NET app on server 1 I am trying to do this:
Code:dim filearr as string()filearr = System.IO.Directory.GetFiles("\10.0.0.21packinglists", "*.pdf")
However, I want my app to run unattended and 10.0.0.21 requires a login and password. Can I configure a connection string or something to provide hands-off authentication?
My company uses ActiveDirectory, and naturally the IT department wants to maintain control over it and not give control to other users. I'm developing an ASP.NET app (for internal use only) using an SQL Server 2008 database.My question is, how can I BEST use the .NET namespaces and SQL Server to manage access to the app within the organization at the application (or possibly DB) level? I would like the user to be authorized based on their network username as provided by ActiveDirectory.On a side note, I would also like to access their AD contact information.
From my understanding I can use the ActiveDirectoryMembershipProvider class or Domain Services in the System.DirectoryServices namespace. There's also LDAP which apparently is another possibility. I'm having a hard time making sense of it all, and much less which is the best option and how to implement it. Can anyone provide me with some direction and possibly some simple sample code?
i wrote a program that connect to sql server via a specify server name , user nameasswordim baby as new sqlconnection("server=baby;uid=sa;pwd=sa;database=baby")
I am trying to follow an example in the VB 2010 book and the author has set up the local server using a named instance of SQLEXPRESS and uses mixed mode authentication with a sa login and wrox as the password the code is then
[code]...
I am using the Express server initially set up for windows authentication (pubs is one of 6 databases on it) but no matter what I seem to try I can not connect
This emailing code wont seem to work in my program. I get an exception "The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.5.1 authentication required."
Imports System.Net.Mail Public Class emailStudent Private Sub sendEmailButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sendEmailButton.Click SendMail()
I'm planning to use some session variables on an intranet ASP/VB.NET page, and want to make sure that I'm not missing out on anything important I should know, or that I have my information mixed up. So here's what I (think) I know about session variables.They:are stored on the server, so if I have a lot of users then they'll each be using some more memory which could lead to a slowdown.are inaccessible by the user unless I expose access. hang around/persist across user requests (i.e. each time the user makes a request from the page the data will still be there - until it times out). This also means that I need to make sure that the variable doens't have "left over" data in it.
Is there anything that I've got totally wrong, or anything I'm missing? I'd prefer not to get bitten by a bug down the road because I think I understand what's going on.
I was using the following code in order to send e-mails to my company's intranet accounts from a VB.NET 2003 aplication. However this code was marked as no longer valid when I migrated the application after installing Visual Studio 2005.modifying this code in order for my application to compile succesfully? Dim email As New System.Web.Mail.MailMessage
I'm not looking for a solution, rather I just want to know if this is possible or not with VB.NET (which I'm still just a beginner on).What I'm looking to develop is a WinForm application that allows users within the company network to share files and other information.
I'm trying to write a program that will get certain text from an intranet site, but there is a form for user name and password that I have to enter first. I found HttpWebRequest and HttpWebResponse and can use those, but how do I programatically log into the site so I can get the data I want?
I have a aspx project, I'm using web developer 2005. I am currently trying to locate the exact location of my project. I have no clue how to do it as I only know the intranet address. like the localhost and all. I need to find out the exact location of the project from the intranet address which is only any name. Is there anyway to find out?
I have an intranet asp.net application and when a page is loaded, i want to log the IP Address, Computer Name and the Windows Account(from active directory) currently logged into the computer from which the page is being accessed.
So far, Im able to get the IP address and computer name but the windows account, am getting NT AUTHORITYSYSTEM
I would like an automatic way of updating desktop application using Http over the company intranet. Also it much have to be used by VB6 applications as well.
If a user navigates to my webpage how can I programmatically determine they are accessing my page from within the Intranet? (Not interested in NTLM or Windows forms authentication. Need a programmatic method.)
How can an application, running on a production server, access the login username of the machine that a user is accessing an application from? For example, I am currently logged into my machine on the INTRA corporate intranet. My username will be INTRAUsername. I have added specific usernames to a database and wish to check this intranet username against the database to restrict access to an application and leverage the username across the application.Currently, I am using the following code to access the username:rivate username As String = Thread.CurrentPrincipal.Identity.Namehis is working great on localhost, but when authenticating against the database on a development server, I'm getting the following error:
I am using the web browser control to generate screenshots of an intranet application developed in ASP.NET.
The screenshot is generated, compressed and then stored as a BLOB in the database. When I developed this facility I investigated the best way of compressing the image (to the lowest byte size), however the images still seem to be too big as the database table is growing larger than I hoped. I am using the TIFF format, but I am now thinking that this may not be the best as it is used by photographers (who I assume require good quality photographs). Here is the code to compress the image (before it is stored as a BLOB):
I am trying to create an application that will login our company's intranet portal via a webpage. The webpage has a single frame in it that loads a secure(https) login form. After logging in, the application will need to read and send xml to and from the portal. I have been digging around and have seen a few different ways of submitting the login information from the program to the site, however, I have not gotten any of them to work. From what I can tell it is difficult to change the values of input boxes that are inside a frame. Am I accurate on this? There will be a large amount of data transfer between the app and the portal so I will need something lightweight but I have enough room that I would rather not reinvent the http/web-browser wheel if at all possible. The reason I say that is because I have read that some objects that handle web pages are very resource hungry. I have no preference on the .net frameworks as this is the area of VB thats kinda confusing. What I am looking for is either a point or violent shove in the right direction.
I am working on a windows application in vb.net 2005 and it needs to connect to the SQL Server database. In this example I testing if the connection is able to open properly:
[Code]...
Is it something dealing with the permissions set with the database server or something? I am new at .NET programming and I have been spinning my wheels on this for the past couple of days and I am at a loss. From what I research, this error should only occur if I was creating a web program, but I am not. It is a windows application.
How do I assign a My.Settings.Item connection string to cmd.Connection connection string value?
Dim cmd As New SqlCommand() cmd.Connection = My.Settings.Item("csStaffHoursWorked") cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "spSaveDeltekImport"
After running the following sub (VS debugger), I try to detach the database in SSMS, but it shows the connection open still and won't let me detach. If I close program in debugger, the database shows no connections. I check the dataadapter's connection in the finally block and is shows closed. What gives
Private Function ClientMasterDBFiles(ByVal MasterClientDBConnection As String, ByVal DBName As String) As DataTable
I have a simple scraper. It works on some websites, but on some there is this Error:
Quote:
IOException was unhandled Unable to read data from the transport connection: The connection was closed
It is occuring at "Dim htmlresults As String = Urlcontents.ReadToEnd()".
'Create the HttpWebRequest object Dim req As HttpWebRequest = WebRequest.Create(URL) 'Set the timeout to 1 second (or 1,000 milliseconds) req.Timeout = 10000
I am attempting to write a program that will disable the Local Area Connection while leaving the Wireless connection enabled. My company is using net-books in our stores to demo air-cards and we need to keep them off of the LAN. I'm new to VB and VB.net, and it's been a while since I did any type of programming. I've gathered some code that others have posted in forums and tutorials and I'm working through a tutorial book, but I finally believe that I am stuck.
i make a class and when i call on form then that error occurs "ExecuteNonQuery requires an open and available connection, the connection Current stat is close "
Class Code isImports System.Data.SqlClientImports System.DataImports System.StringPublic Class DatabaseKits Dim Cn As New SqlClient.SqlConnection Public Function BuildConnection() As Boolean Try Cn.ConnectionString = "Persist Security Info=False;Integrated Security=True;Trusted_Connection=Yes;database=BizAimsPro2008;server=Server-2k3s" BuildConnection =
I have a vb.net web application running on a local server with IIS6 installed. I was using Integrated Windows authentication for allowing uses to access the data in the application which is a combination of flat files on a local directory and db information. That worked great until another dataset was brought online and incorperated into the existing application. The problem is the flatfiles for the second dataset are stored on another server. So, although user could see the file files in the application window, if they attempted to open one it would say access denied on the directory.
I explained this to our network administrator who explained the users didn't have access to that server (even though both servers had the same permissions) and that the application wouldn't work. The only way in which I got it to work was I had to Enable Anonymous access and use a windows user account for that access, which works. However, the application requires the users NT account for various reasons. How can I get this to work with Integrated Windows Authentication?
When I try to use Windows auth, the pop-up tells me: X website required login for Y domain.How can I hide the website name? And only show "You are required to login first" text on that pop-up?
I have a .NET application (mix of C# and VB.NET) where I would like to display a Windows Login Dialog box (or my own dialog box) and authenticate the user using Windows Authentication. Per requirement, I need to ask the user to authenticate after AT LEAST a minute of being idle. I would prefer a .NET native way of doing Windows Authentication but interested in other ways...