error when deploying on ASP.NET application on windows server 2003

Is it possible that your installation package is missing the FillComboBox library Is this something that you installed manually on your Development machine, and hasn't yet been installed, or included in the installation package

error StartIndex cannot be less than zero.
&nbsp(349 Views)
can any one help me how to fix this error
StartIndex cannot be less than zero.
Parameter name: startIndex
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.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
Source Error:
Line 250: '-- replace spaces with "_" in the filename to make it URL encoding compatable
Line 251: Dim lastslash As Integer = pf.FileName.LastIndexOf("\")
Line 252: Dim strnonspaces As String = strFilename.Substring(lastslash).Replace(" ", " ")
Line 253: strnonspaces = strnonspaces.Replace("&", "and")
Line 254: strFilename = strFilename.Substring(0, lastslash) + strnonspaces
error in line 252

error
&nbsp(195 Views)
hi wonder any one can help me out...
i want to view a asp.net file in IE but was prompt this error msg
line: 9
Error: expected ";"
below is my code
WebForm2
sub Page_Load
dim dbconn,sql,dbcomm,dbread
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("erestaurant.mdb"))
dbconn.Open()
sql="SELECT item FROM stockList"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteReader()
dim firstrow As Boolean = True
while dbread.Read()
DropDownList1.Items.Add(New ListItem(dbread(0).ToString()))
End while
dbread.Close()
dbconn.Close()
end sub
sub test(sender As Object, e As EventArgs)
session("temp")= selectItem.SelectedItem.Text
response.redirect("stocklist2.aspx")
end sub
what is wrong
any way to retifiy this error

send error
&nbsp(397 Views)
I would like to know if it's possible if at anytime an error occur on my server, i would like to receive an email with description of the error.

strange datagrid error
&nbsp(175 Views)
I want to use datagridpaging, so I have set the allowpaging propertie to TRUE.
Then I use the following code to fill the grid with the next page :
Private Sub dgRoute_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles dgRoute.PageIndexChanged
Try
Response.Write("testing 1,2,3")
dgRoute.CurrentPageIndex = e.NewPageIndex
DgFiller()
Catch ex As Exception
Response.Write(ex.Message)
End Try
end sub
because the response.write is not written to the page I think that somehow the sub is totaly ignored
Does anybody knwow what causes this problem
Krol

VB.Net LocalHost error
&nbsp(170 Views)
I have just installed .Net, have IIS installed also and tried to run an ASP web application. It tries to start and i get the error "Unable to create web project. The file path c:/inetpub/wwwroot/webapplication1 does not correspond to the URL http:/localhost/webapplication1. The two need to map to the same server location. Error http:404 file not found"
Am i doing something completely wrong i am doing is opening a new project.
Can anyone help out a newbie with what i hope is a relatively comman and easy problem

Receiving error in Visual Studio.Net when compile with F5
&nbsp(189 Views)
,
I am receiving following error in Visual Studio .Net while compiling page with F5.
"Error while trying to run project: Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone. Click Help for more information."
However page with execute properly with debugging by pressing Ctrl + F5 keys in Visual Studio .Net
I am using Win XP in local net.
I need solution of the above problem... waiting for your reply.....
For get actual idea, check image in attachment.
Thanking You,
Paresh

Re: Custom error page is not working in Hosting server
&nbsp(192 Views)
,
Can you confirm exactly what you do see
Also, how are you testing this How are you causing an error to occur
Here is a very good discussion on this topic:
http://aspnetresources.com/articles/...rrorPages.aspx
Gary
, ,
So, as per the documentation here:
http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx
This means that the customError will be shown when you access the page from anywhere other than the localhost. To see the error message, you would need to change this setting to off to see the error.
Gary

error while accessing label value in GrdiView
&nbsp(218 Views)
Hi ,
I am using GridView and design is as below:-
Reply
Delete
In grdMasterPrj_RowCommand event
if (e.CommandName == "Reply")
{
Label Query_Id = (Label)grdMasterPrj.Rows[Convert.ToInt32(e.CommandArgument)].Cells[0].FindControl("QueryId");
}
I am getting below error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
I also tried with changing cell value to 1.
What is the error , please anyone help me in this..

Re: refresh datagrid causes error if oper scrolls off to the right of grid
&nbsp(190 Views)
I have a datagrid that is populated with data. If the operator scrolls off to the click on a field that is off to the right (not initially displayed on the grid) ---- then the operator does something that needs to repopulate that data with a different set of information --- an error is generated. The new data consists of the same fields, but just it is just pulling in a different set of data. If the operator does not scroll off to the side of the grid but refreshes the grid with new information, the error does not occur. If the operator scrolls off to the right, but does not click on a cell, an error does not occur. I have included the code that binds data to the grid and displays it. I've narrowed down that it is stopping on the "dgtabhistory.DataSource = mydataview " statement where I bind the data to the view. The error says: "An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Column 'Strategy ID and Desc' does not belong to table ACTIVITYHISTORYGRID." The column name may change --- it kind of depends on how far over to the right I scroll on the grid and which cell I click on.
Does anyone know about a possible bug with VB.net Or am I missing something Is there a special command(s) I need to do before I bind new data to a datagrid
PHP Code:
DimsqlConn4AsSqlConnection=NewSqlConnection(Connection)
Try
sqlConn4.Open()
Dimsqlcomm4AsNewSqlDataAdapter("salesRaptor_GetActivityHistoryPC",sqlConn4)
sqlcomm4.SelectCommand.CommandType=CommandType.StoredProcedure
DimworkParam4AsSqlParameter=NewSqlParameter
workParam4=sqlcomm4.SelectCommand.Parameters.Add("@Rep",SqlDbType.VarChar,25)
IfchkTabHistoryWholeTeam.CheckState=CheckState.CheckedThen
sqlcomm4.SelectCommand.Parameters("@Rep").Value=Rep_ID
Else
sqlcomm4.SelectCommand.Parameters("@Rep").Value=txTabHistoryRepID.Text
EndIf
workParam4.Direction=ParameterDirection.Input
workParam4=sqlcomm4.SelectCommand.Parameters.Add("@Status",SqlDbType.VarChar,25)
DimtypeAsString
type=""
IfcmbTabHistoryStatus.SelectedItem="ClosedStatuses"Thentype=""
IfcmbTabHistoryStatus.SelectedItem="EmailedStatusOnly"Thentype="E"
IfcmbTabHistoryStatus.SelectedItem="AttemptedStatusOnly"Thentype="A"
IfcmbTabHistoryStatus.SelectedItem="CompletedStatusOnly"Thentype="C"
sqlcomm4.SelectCommand.Parameters("@Status").Value=type.ToString
workParam4.Direction=ParameterDirection.Input
workParam4=sqlcomm4.SelectCommand.Parameters.Add("@ProspectID",SqlDbType.VarChar,25)
sqlcomm4.SelectCommand.Parameters("@ProspectID").Value=Prospid.ToString
workParam4.Direction=ParameterDirection.Input
workParam4=sqlcomm4.SelectCommand.Parameters.Add("@contactID",SqlDbType.VarChar,25)
Iftabhistproscontsw="CONTACT"Then
sqlcomm4.SelectCommand.Parameters("@contactid").Value=ActContid.ToString
Else
sqlcomm4.SelectCommand.Parameters("@contactid").Value=""
EndIf
workParam4.Direction=ParameterDirection.Input
workParam4=sqlcomm4.SelectCommand.Parameters.Add("@wholeteam",SqlDbType.VarChar,1)
IfchkTabHistoryWholeTeam.Checked=TrueThen
sqlcomm4.SelectCommand.Parameters("@wholeteam").Value="Y"
Else
sqlcomm4.SelectCommand.Parameters("@wholeteam").Value="N"
EndIf
workParam4.Direction=ParameterDirection.Input
workParam4=sqlcomm4.SelectCommand.Parameters.Add("@allreps",SqlDbType.VarChar,1)
IfchkTabHistoryReps.CheckState=CheckState.CheckedThen
sqlcomm4.SelectCommand.Parameters("@allreps").Value="Y"
Else
sqlcomm4.SelectCommand.Parameters("@allreps").Value="N"
EndIf
workParam4.Direction=ParameterDirection.Input
DimdsAsNewDataSet
sqlcomm4.Fill(ds,"ACTIVITYHISTORYGRID") 'holdsdatafromquery
'ds.Tables(0).Columns(16).ColumnMapping=MappingType.Hidden'hidetherecordstatusfield
Dimx=ds.Tables(0).Rows.Count()
DimmydatatableAsDataTable=ds.Tables(0)'tablename
DimmydataviewAsDataView=mydatatable.DefaultView
'mydataview.Sort="DateClosed" 'sorttable
dgtabhistory.DataSource=mydataview'bindsdatatogrid
Dimts1AsNewDataGridTableStyle'changecolumnwidths
ts1.MappingName="ACTIVITYHISTORYGRID"
DimnumRowsAsInteger=dgtabhistory.BindingContext(dgtabhistory.DataSource,dgtabhistory.DataMember).Count
txRecCountHistory.Text="Count:"+CStr(numRows.ToString)
If(dgtabhistory.CurrentRowIndex

A machine.config error when I try to send an e-mail from an aspx page
&nbsp(197 Views)
I have an aspx page that send an email to the user, and until now it worked, but now I receive an error. This is the sub and the error:
Code:
Sub send_Password(Sender As Object, E As ImageClickEventArgs)
If (Page.IsValid) Then
Dim CmdPassword As New SqlCommand("return_Password", strConnection)
CmdPassword.CommandType = CommandType.StoredProcedure
CmdPassword.Parameters.Add(New SqlParameter("@e_mail", SqlDbType.varchar, 50, "e_mail"))
CmdPassword.Parameters("@e_mail").Value = mail.Text()
CmdPassword.Parameters.Add("@Resp", SqlDbType.TinyInt)
CmdPassword.Parameters("@Resp").Direction = ParameterDirection.Output
CmdPassword.Parameters.Add("@Password", SqlDbType.varchar, 8)
CmdPassword.Parameters("@Password").Direction = ParameterDirection.Output
strConnection.open()
CmdPassword.ExecuteNonQuery
Dim Response As byte = CmdPassword.Parameters("@Resp").Value
strConnection.close()
If (Resonse = 1) Then
Dim E_mail As New MailMessage()
E_mail.To = mail.Text()
E_mail.From = """Cesar"" "
E_mail.Subject = "Access Data - MySite.com"
E_mail.Body = "Your access code is: " & CmdPassword.Parameters("@Password").Value
E_mail.Priority = MailPriority.Normal
try
SmtpMail.SmtpServer = "mail.infomail.es"
SmtpMail.Send(E_mail)
Response.Redirect("forgotten_code_ok.aspx")
catch exc as Exception
Message.Text() = "An error happened."
End Try
Else
Message2.Text() = "None user was found with these credentials."
End If
End If
End Sub
And the server error message:
The XML file c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config could not be loaded. Attempted to access an unloaded AppDomain.
Source Error: [No relevant source lines]
How can I solve it

Maxed Pool Connection reached error
&nbsp(195 Views)
I keep getting Maxed Pool Connection reached error on my web site like once a day.
How can i close pool connections when i am done with them

Is there a way to set one error page for all errors?
&nbsp(184 Views)
well the bookie that I'm reading is creating a separate error page for different error numbers. I'm wondering if it is possible to have one error page that would also desplay the specific error that happened. IE, errorReport.aspx would tell the user what error was raised... no idea, is it possible

.asax error
&nbsp(190 Views)
Trying to run a web application which is called WebFormsDataBinding.
There is a page called ManuallyCoded.aspx
On top of this page, in it's html page there is this line as follows:
But it gives an error as follows.
Parser Error Message: Could not load type 'WebApplication1.Global'.
Source Error:
Line 1:
I don't see why the error mentions WebApplication1 because the project is called WebFormsDataBinding
Any thoughts

db error
&nbsp(147 Views)
I have an update page where the user can change data in the db. When I delete data from a textbox and keep it empty, then save to the db, I get this error:
String was not recognized as a valid DateTime.
Is there a way around this

An operations error occurred. How descriptive
&nbsp(230 Views)
I am getting the below error on one of my sites. This code is in a class that when passed a user name, searches active directory and finds all there information.
The code works on the exact same server just in a different virtual directory. the needed references are in there.
If you have this site open in Visual Studio it will work in the debugger.
Any idea why I would get this error on that code and only for a specific virtual directory
Code:
An operations error occurred.
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.Runtime.InteropServices.COMException: An operations error occurred.
Source Error:
Line 91: Try
Line 92: ' instantiate and assign directoryentry object to new object
Line 93: Dim obj As Object = entry.NativeObject
Line 94: ' instantiate directorysearcher object
Line 95: Dim search As New DirectorySearcher(entry)
Code:
'Get persons Name
Dim entry As New DirectoryEntry(Domain)
Try
' instantiate and assign directoryentry object to new object
Dim obj As Object = entry.NativeObject
' instantiate directorysearcher object
Dim search As New DirectorySearcher(entry)
' apply directorysearcher properties and filters
search.Filter = "(SAMAccountName=" + un + ")"
search.PropertiesToLoad.Add("cn")
search.PropertiesToLoad.Add("department")
search.PropertiesToLoad.Add("title")
search.PropertiesToLoad.Add("Manager")
Dim result As SearchResult = search.FindOne()
' check result
If result Is Nothing Then
'Response.Write("no user found")
Else
' instantiate new stringbuilder object
Dim sb As New StringBuilder()
Dim bs As New StringBuilder()
Dim ts As New StringBuilder()
Dim mns As New StringBuilder()
Dim resProp As ResultPropertyCollection
resProp = result.Properties
' iterate through propertynames to get details
sb.Append(result.Properties("CN")(0).ToString())
ts.Append(result.Properties("department")(0).ToString())
bs.Append(result.Properties("title")(0).ToString())
mns.Append(result.Properties("Manager")(0).ToString())
' display results temporarily in messagebox
_UserName = sb.ToString()
_title = bs.ToString()
_department = ts.ToString()
Dim tempMgr As String = ""
tempMgr = mns.ToString.Remove(0, 3)
tempMgr = tempMgr.Remove(tempMgr.IndexOf(","), tempMgr.Length - tempMgr.IndexOf(","))
_ProgramMgr = tempMgr
End If
'TODO: do to exception what it does to you!!
Catch ex As ArgumentOutOfRangeException
Throw New ADEntryMissingException("There are incomplete fields missing in AD for " + _UserName + ".")
End Try

Disclaimer : SolveErrors.com is an independent online IT support service provider company for third party product. The brands, Names, Images, Trademarks, Products & services of third parties mentioned on this website are only for reference and to furnish information. SolveErrors has no affiliation with any of these third-party companies unless such relationship is expressly specified. The services we offer may also be available on the brand owner's website.