HtmlInput "Security" Issue?

S

Sean Patterson

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("ConvertDummyIDInput")
fileDummyID.PostedFile.SaveAs(FilePath)

Catch fnfex As FileNotFoundException
UNLV.SysApps.Exception.CustomException.LogException(CType(fnfex,
Exception), True)
lblSystemError.Visible = True
' Abort any further processing
Return
Catch dnfex As DirectoryNotFoundException
UNLV.SysApps.Exception.CustomException.LogException(CType(dnfex,
Exception), True)
lblSystemError.Visible = True
' Abort any further processing
Return
Catch ex As Exception
UNLV.SysApps.Exception.CustomException.LogException(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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top