Intranet Connection Authentication In VB App?

Oct 1, 2009

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?

View 2 Replies


ADVERTISEMENT

Windows Authentication For Intranet Users At The App Level?

Aug 16, 2011

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?

View 2 Replies

SQL Connection String , With Windows Authentication?

Apr 17, 2009

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")

View 3 Replies

Connection String To Pubs Database On SQLExpress Set Up Using Windows Authentication?

May 8, 2010

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

[code]...

View 1 Replies

VS 2008 Send E-mail Without Authentication For Servers Without Outgoing Authentication

Mar 28, 2011

as topic, i need to send an e-mail without outgoing authentication becouse server hasn't outgoing authentication.. how i can do this??

View 1 Replies

The SMTP Server Requires A Secure Connection Or The Client Was Not Authenticated. The Server Response Was 5.5.1 Authentication Required

Nov 28, 2009

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()

[code]....

View 12 Replies

Asp.net - Session Variables On An Intranet ASP/.NET Page?

Jul 8, 2010

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.

View 1 Replies

Redirect From Http To Https In Intranet?

Feb 22, 2010

I have a vb.net application running as intranet on Win Server 2003. So should I use HTTPS instead of HTTP?

What is the difference or why should I if the answer is HTTPS? Is there any code in VB to redirect from HTTP to HTTPS?

View 1 Replies

Email :: Sending Mail Within Intranet From 2005?

Feb 12, 2010

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

email.To = "some@Email"
email.From = "my_Application"
email.Subject = "BE CAREFULL! Errors encountered"

[code].....

View 2 Replies

Possible To Create WinForm Apps That Can Access An Intranet?

Aug 13, 2009

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.

View 4 Replies

Write A Program That Will Get Certain Text From An Intranet Site?

Jan 6, 2010

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?

View 5 Replies

Finding Exact Location Of Project Files From Intranet URL

Sep 4, 2009

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?

View 1 Replies

Javascript - Get Windows NT Logged User Name In ASP.NET 3.5 In Intranet Application

May 5, 2011

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

View 2 Replies

Updating Desktop Application Using Http Over The Company Intranet?

May 20, 2010

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.

View 6 Replies

Login / Domain - Programmatically Determine They Are Accessing Page From Within The Intranet?

Jun 30, 2009

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.)

View 2 Replies

Retrieving The Windows Username From A Logged-in Machine Through An Intranet Application?

Oct 19, 2009

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:

View 3 Replies

Using The Web Browser Control To Generate Screenshots Of An Intranet Application Developed In ASP.NET

Mar 21, 2012

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):

[Code]...

View 1 Replies

VS 2008 - Create An Application That Will Login Our Company's Intranet Portal Via A Webpage

Sep 12, 2009

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.

View 2 Replies

Vague Error Message In A .net Windows Application Concerning System.Data.SqlClient.SqlClientPermission With The Intranet

Jun 4, 2009

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.

View 7 Replies

[2005] Read The Email From The Mail Server That Is In An Intranet From An Application Server?

Jun 4, 2008

I need to read the email from the mail server that is in my intranet from my application server.

View 9 Replies

Assign A My.Settings.Item Connection String To Cmd.Connection Connection String Value?

Aug 25, 2009

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"

View 3 Replies

Display Connection Properties Dialog For Connection String Browsing(for Database) In Run Time?

Feb 5, 2010

Is there a way to display the connection properties dialog for connection string browsing(for database) in run time?

As I want the user to be able to connect to various database using the GUI.

View 6 Replies

Error - ExecuteScalar Requires An Open And Available Connection - The Connection's Current State Is Closed

Aug 3, 2011

i have an application. which is executed after every 5 mins. i have an open connection but it gives me the following error:

ExecuteScalar requires an open and available Connection. The connection's current state is closed.

my code is something like this. I have shown where all i am using ExceuteScalar()

Sub Main()
Try
connection.open()
cmd.ExecuteScalar()

[code]....

View 2 Replies

Sql Server - .net Program Dataadapter Connection Closes After Fill But Database Still Shows Connection?

Aug 19, 2010

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

[Code]...

View 1 Replies

[2008] Error - Unable To Read Data From The Transport Connection: The Connection Was Closed

Mar 15, 2009

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

[code]....

View 2 Replies

Disable The Local Area Connection While Leaving The Wireless Connection Enabled

Jun 21, 2010

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.

[Code]...

View 4 Replies

ExecuteNonQuery Requires An Open And Available Connection, The Connection Current Stat Is Close?

Nov 30, 2008

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 =

[code]....

View 3 Replies

.net Web Application And IIS Authentication?

May 25, 2012

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?

View 3 Replies

Asp.net - Windows Authentication Pop-up?

Mar 24, 2011

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?

View 2 Replies

C# - Windows Authentication In .NET?

Feb 1, 2012

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...

View 2 Replies







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