473,499 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HtmlInput "Security" Issue?

Greets all,

I have a simple CSV parsing .NET web app where the user uploads the file
and the web app does the magic. I have been able to get it to run on my
personl workstation and our sanbox, but as soon as I move it to the
pre-production server, I am getting a really weird exception being thrown
(Object Reference not set to the instance of an object) at the command
where the actual upload is taking place. Here is the snapshot of the code:

If EncryptedPassword = ADMINSTRATORPASSWORD Then
' Get file that user has uploaded and store locally
Try
FilePath = Server.MapPath("/sails") & "/" &
ConfigurationSettings.AppSettings("ConvertDummyIDI nput")
fileDummyID.PostedFile.SaveAs(FilePath)

Catch fnfex As FileNotFoundException
UNLV.SysApps.Exception.CustomException.LogExceptio n(CType(fnfex,
Exception), True)
lblSystemError.Visible = True
' Abort any further processing
Return
Catch dnfex As DirectoryNotFoundException
UNLV.SysApps.Exception.CustomException.LogExceptio n(CType(dnfex,
Exception), True)
lblSystemError.Visible = True
' Abort any further processing
Return
Catch ex As Exception
UNLV.SysApps.Exception.CustomException.LogExceptio n(ex, True)
lblSystemError.Visible = True
' Abort any further processing
Return
End Try

When the exception gets logged. It balks on the line where the fileDummyID
does its SaveAs routine. I've even tried hard coding the path to upload the
file to with no avail.

Now we've checked write permissions to the aspnet_wp app so they can write
to the folder and everything is running smoothly elsewhere. Any ideas on
where the hangup could be? The only thing we (my and the System Admin) are
thinking of currently is that after he ran IIS Lockdown, there could be a
hidden setting that is still locking the process out? Any ideas?

Thanks in advance for any ideas you may have!
- Sean
Nov 18 '05 #1
0 973

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6974
by: RJ Dake | last post by:
Having problems with uploaded Database and SharePoint sites. At least one of the errors is mentioned below. Sites do not allow access to DB entry or results. Email feedback is MOST appreciated!...
5
5085
by: RWC | last post by:
Hello, I have a database that I need to connect with that resides on my personal intranet server. I'm on a different subnet than this server (running through two different gateways). When I...
4
2444
by: Dean Slindee | last post by:
I would like to provide a menu item that the users can click that launches the same "Windows Security" window that doing a Ctrl+Alt+Delete launches, but thru a Process.Start. Is this possible, and...
19
2553
by: hansBKK | last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning about PHP, mostly by researching, installing and playing with different scripts. I am looking for a host that will provide...
2
2308
by: Mike McGuire | last post by:
I currently have a .NET 2.0 Application that uses "Security.SecureString" to securly pass a password to the process that I am starting within the app. I want to create something similar for a few of...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.