Buffering Using Ftpwebrequest - Allows Users To Login To The System

Mar 15, 2011

This will be my first post on this site, so I thought I would make it a doozy. I have an web application on our site at work that allows users to login to the system, and submit filings for dockets that our state agency governs. Without getting to involve with what that means, they basically upload mostly .pdf files, but there are others that are acceptable to upload as well. The current system that is being used, uses a simple FileUpload and saving it to a folder on the d: drive of the webserver. I ran into a problem that with anyone outside the building/network, the upload is extremely slow and seems to be limited files no larger than about 1.4MB. There have been a few cases where larger file have made it through, but those ar few and far between. I've tried a couple different 3rd party components, but seem to run into the same limits. So, I install the FTP server on the box with the IIS and am trying to go the FTP route using ftpwebrequest.

Below is what I have put together so far:

Imports System.Net
Imports System.IO

Partial Class _Default

[CODE]...

This seems to work as it is at the moment, but I know it has a long way to go for catch exeptions, speeding it up...

1.) The first problem I have run into is if you try to upload to large a file, you get Out of memory error. I'm needing to change the buffer so that it is buffering chunks instead of the entire file. I've googled over and over again and seem to find several good options in C#, but can't seem to convert them to VB. So, could some one give me some idea how to take what I have and change the buffering to use smaller chunks.

2.) I need to catch an empty UploadFile field.

3.) I will eventually be changing this so that it handle multiple file uploads like my current system uses. (Did I mention that I'm new to the ASP.NET and have been programming in .ASP)

4.) As you will notice from my list of acceptable file types, I might have a problem with some needing to be upload as Binary and some not. So I'm going to have to come up with a way to test and change the Requested.UseBinary = False as needed.

I'm sure that I'll find other items as I progress or the big bosses will find other things that they want to add, but for now.... I know that given enough time, I will get all of these items worked out.

By the way, we have a network adminstrator that leave a lot to be desired and most IIS and now FTP I'm having to learn, implement and configure. I'm wondering if there is anything else that could be causing these limits in file size. Since I've tried 4 completely different forms of uploads and they all seem to run into the same limits, I thought there might be something in a router, firewall, server configuration.... that I might need to look into as well.

View 2 Replies


ADVERTISEMENT

FTP - Unable To Cast Object Of Type 'System.Net.FileWebRequest' To Type 'System.Net.FtpWebRequest'

Jun 6, 2012

[Code]...

Unable to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.FtpWebRequest'.

View 6 Replies

Login System - Make The Registered User To Login His Character Automatically?

Aug 25, 2010

Alright, So with this game I am Making with VB I am Confused on how to make the login system to make the registered user to login to his character automatically other then having to make a new character? Here is my login System code not much[code].....

View 3 Replies

VS 2008 Dll Login System - Make Another Interface Window That The User Can Login In

Oct 16, 2009

I'am trying to make a login system with the dll. I want the .dll file to have the password inside of it and make another interface window that the user can login in.

View 10 Replies

Authenticating A Users Login Information?

Jun 15, 2009

I'm a beginner when it comes to VB. th this. I have a Windows Application that I'm making for a friend. It's written in VB and connects to a SQL Server database. My problem is that when a user enters their username and password, then clicks on the OK button (all in a Login form that Visual Studio has a template for), the connection string is verified and connects, but for some reason

View 15 Replies

How To Cath The Time When Users Login

Feb 7, 2009

If Users LogIn, I want to cath the time, in what time it start to login...

View 2 Replies

Login Page - Deny Users Who Are Not Authenticated

Aug 31, 2011

I am new to .NET and I have created a login page, with a user Id and password. In my webconfig, I put the following code in to deny users who are not authenticated.
<authentication mode="Forms">
<forms loginUrl="Login.aspx" timeout="10" protection="All" />
</authentication>
<authorization>
<deny users="?"></deny>
</authorization>

What I am trying to accomplish is that when a user enters the correct information, I would like to store information small information about the user in a cookie, say for example if there an admin, manager, user, etc...Here is the code that occurs when the user click the submit button. The problem is that the page doesn't redirect to the page after user enter correct information.
If txtPassword.Text.ToLower = "test" Then
'Create a cookie
Dim cookie As New HttpCookie("UserInfo")
'Cookie variables
cookie("User") = txtUser.Text
[Code] .....

View 4 Replies

Prevent Dual Login Of Users In Web Application?

Feb 7, 2010

how do I prevent my users for more than one simultaneous login per account. I am using Vb.Net SQL.

View 2 Replies

Users Be Able To Access The Login.aspx Page Via SSL/HTTPS?

Feb 24, 2011

I have a site where users must only be able to access the Login.aspx page via SSL/HTTPS.Currently I run something like the following in my Page_Load():

If Not (IsSSL) Then
Response.Redirect("https://" + thisDomainName + "/Login.aspx")
End If

Is there a better way of doing this?

View 2 Replies

VS 2005 - Login System - Application Which Has User Authentication System

Apr 1, 2009

I'm writing an application which has user authentication system, basically, when the user open the software, he has to enter his/hers username and password which are retrieved form a access data base, and if the user is set as admin then it enable some features, I couldn't figure out how to read the column lets say, IsAdmin table, which will store an value of 1 or 0 for example. I need a concept of how build a login system with levels or whatever you guys call it...

View 2 Replies

Create A Secure Login Form Which Can Avoid Double Users Log In?

May 3, 2010

I am trying to create a secure login form which can avoid double users log in with same user id from different locations. how can I create a secure login form. I have create a basic login form as below.

Dim conn As SqlConnection
conn = New SqlConnection(Source)
Try

[Code]....

View 8 Replies

Login Program - Add Users And Passwords Using Textbox On Windows Form

Oct 13, 2009

I am making a login form for my A2 computing work and have got that to work but i did do some of the work and now i want to know how i can add extra users and passwords using simply textbox on another windows form [Code]

View 4 Replies

System.Web Missing For End Users?

Sep 11, 2011

I have been getting a lot of crash reports sent from my application that describe System.Web not being found.

I was able to reproduce the problem, and at first it seems that it would be caused by not running .NET 4.0, however, my test machine is running Windows 7 SP1 with .NET 4.0,

How would I go about fixing this problem? Was System.Web deprecated?

View 2 Replies

Creating A Tool To Log Encountered By Users Of System

Jan 14, 2009

I haven't been doing a programming for awhile now. But, I was a VB programmer before. I will be creating a tool to log issues encountered by the users of our system. It will be a web based. I'm planning to create it in VB.Net. Any resources that you could share is greatly appreciated. I'm looking for a ready program that I could start with to speed up my programming.

View 1 Replies

Get The Decimal Separation Sign On The Users System?

Dec 1, 2009

How to get the sign that is used to indicate decimal digits?

For example: in England a number would look like 4,000,000.04 In The Netherlands however the same number would be 4.000.000,04

How can I find out if the users system uses the . or the , to specify decimals?

View 2 Replies

Make Only The Administrator That Can Add Or Edit Users To System

Jan 3, 2012

I have written a program and everything works fine, but I want to make sure that only the administrator can add or edit users to the system. As I see it, I need to add an argument (if statement) to my login button code to disable the add / edit users button on the main form if the user is not Administrator. [Code] I have tried putting my If statement in but it doesn't happen the button is still active even when I login as admin.

View 6 Replies

System.IO - Multiple Users - Check If File Is In Use

Jun 10, 2012

i have a program where the high scores will be saved in a txt file. of course, if the file is already in use, saving the text file won't work. is there an if statement i can do to check if it is in use? or could i check the last access time, and the last modify time and if the modify time happened after the access, i know its closed, and if the access time happened after the last modify time it is still in use?

View 4 Replies

Double Buffering The Listview?

Oct 26, 2011

But this solution only seems to be good fo XP and does not seem to work in 2010 unless I'm running it in the wrong sequence.

Private
Sub Setup()
Me.SetStyle(ControlStyles.OptimizedDoubleBuffer,

[code]....

View 1 Replies

Check Which ExitWindowsEx Options Are Supported On Users System

Dec 10, 2009

I need a way to find out which options of ExitWindowsEx are supported by the users system (in Form1_Load).How can I do this?

View 7 Replies

Exitwindowsex: Check Which Options Are Supported On The Users System

Oct 27, 2009

I use ExitWindowsEx to shut down/reboot computers, or log off users.

View 3 Replies

Buffering Writes The Serial Port?

Feb 21, 2009

Im trying to buffer data being written to a device on a com port. The equipment attached to it does not use any form of flow contol and if you write to much information to quickly it falls over. So I have had the following thoughts.

I would create a list of strings and when I wanted to write data to the com Port I would just add the string to the list. I would then have a Sub running its own thread to step through the list, write the string to the com port ,pause a fixed amount of time, remove string from list and repeat until the list is empty. Then keep looping the above.

Code I have so far is below

Private MsgList as new List (of string)
Private sub MsgPump ()
Do

[Code]....

THis does work but If I add strings to MsgList to quickly it throws an exception.

View 3 Replies

Removing Flickering Without Double-Buffering?

Feb 22, 2011

I am having a similar issue with the double buffered set to true for a picturebox. I customized a picturebox control in vb.net where, a panel contains the picturebox.

Upon a mousedoubleclick of the picturebox, i scale the picturebox width wise a certain scalefactor, so that the picturebox is greater than the size of the panel. I am doing this for horizontal zooming and panning. With that said, the picturebox could become large in size.

At certain screensizes, after scaling the picturebox 6 times the size of panel, at fullscreen, i receive an error messsage implying "Not enough memory available to process the command."

However, when i turn off double buffered, i dont get the error, but i get much unwanted flickering.

Here is my code in the Paint Event:

Private Sub picPMGraph_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles picPMGraph.Paint
Dim i As Integer

[Code].....

View 14 Replies

VS 2008 Panels And Double Buffering

Oct 2, 2009

I'd like to set a panel to double buffered to prevent the massive flickering that I've got while I slide panels in and out of my form, but I'm not sure how to.I've Googled it, but all I've found is snippets of code which I don't know how to use. It involves something about creating your own class with double buffering enabled and then creating a panel from that class.

View 9 Replies

[2008] Getting Double Buffering To Work?

Feb 7, 2009

I'm having a lot of trouble getting Double Buffering to work for me. I've gone through about 30 sites but I can't seem to get it working for myself. I'm making a boardgame for a school project, and I have the characters (Who are just shapes with Happy Faces from the Visual Basic Powerpack OvalShape) and I have them moving with this

If intCurrentSpace(1) <> intTargetSpace(1) Then
intNextSpace = intCurrentSpace(1) + 1
Else

[code]....

View 7 Replies

Creating A Logon System To Check Users In SQL2008 Express?

Jun 21, 2010

I am currently creating an application to track timekeeping (a clock in/out system) and I am trying to work out the best way to do this.

I have a Main Form which contains buttons to ;

- Log in
- Out for Break
- In from Break
- Log out

When a user presses the "log in" button the logon form appears, the user then enters their username and password. What happens next is where I would like the help.

Process is as follows:Click Logon Enter Username/Password Check Logon Form for errors (eg no password etc) Check User is in Database (using SQL query) If user is in DB and username and pass are ok then refer back to the main form to perform Stored Procedure for what the user wants to do (eg logon or or out for break etc). Set label on main form to show user as logged on My question is should I be using a public variable and calling the main form again or in the user logon form having 4 options and using an IF ELSE to select the appropriate Stored Procedure?

View 3 Replies

Make A VBulletin System That Checks What Users Are Online And Displays Them?

Dec 25, 2011

I've been wondering, how would you make a vBulletin system that checks what users are online and displays them?

I already know how to make a login system, but can't figure this out.

View 4 Replies

Override Microsoft's Datagridview To Allow Back Buffering?

Sep 3, 2010

My datagridview flickers and is very slow while loading. I reflectored the datgridview from Microsoft and discovered that there is a back buffer property which is not visible from the winForm. How do I set this property?

View 4 Replies

Windows Media Player Buffering Status In VB.net 2008

Dec 24, 2008

Hi there..
Im hoping to update a label with the text "Buffering" and "Done" etc. according to the status of the Media Player i have embedded.

I can achieve this, but i do not know a way of constantly refreshing it so that the status is updated. Is there a way i can update it without the use of a timer?

View 2 Replies

Add A Login System To A Program?

Feb 15, 2010

im trying to add a login system to my program.I have a list of usernames and passwords.So right now i have a form and u enter ur user name and password and if its correct then it should log in Here is my code i have thats not working out

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
MsgBox("Username Is Missing")
End If

[code]....

But its not working out as i planed.

View 2 Replies

Create A Login System Using SQL?

Oct 23, 2011

I have recently set up a YouTube account where I will post various tutorials on how to make several programs. Code languages will very from Visual Basic to C++. I have just posted a video on how to Create a login system using SQL (In Visual Basic).

View 1 Replies







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