-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: s_hashim
Message 1 in Discussion
Server Error in '/svm' Application.
hey guys
i am using HtmlInputFile browse button to upload the files in ASP.NET web
application
declared like this
Protected WithEvents MyFile As System.Web.UI.HtmlControls.HtmlInputFile
while uploading i am checking for
************************************************
If MyFile.PostedFile.ContentLength = 0 Then
doing some coding
End If
************************************************
here the application is throwing error
i had already done a page like this uploading one but not faced problem like
this,
but now i am facing this un usual problem
please look int o this and let me know
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 220: End If Line 221: Catch er1 As Exception Line
222: Throw er1 Line 223: 'wlblInform.Text =
er1.ToString Line 224: End Try
Source File: C:\Inetpub\wwwroot\svm\SVM\ASPX\AddEditAttach.aspx.vb Line: 222
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.] SVM.AddEditAttach.btnSave_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\svm\SVM\ASPX\AddEditAttach.aspx.vb:222
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET
Version:1.0.3705.0
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]