.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Please solve this error..

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :ASP.Net
Server Error in '/Study' Application. -------------------------------------------------------------------------------- Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index  int j=0; foreach (GridViewRow row in GridViewTest.Rows)         {             CheckBox cb = (CheckBox)row.FindControl("checkboxItems");              arrayCheckbox[j] = GridViewTest.Rows[j].FindControl("LabelEmpname");               j++;        } Server Error in '/Study' Application.--------------------------------------------------------------------------------Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index int j=0; foreach (GridViewRow row in GridViewTest.Rows) { CheckBox cb = (CheckBox)row.FindControl("checkboxItems"); arrayCheckbox[j] = GridViewTest.Rows[j].FindControl("LabelEmpname"); j++; } Hello friends please solve my error..

View Complete Post

More Related Resource Links

How can I solve this problem?::Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.Cryst


I upgraded my web application from visual studio 2003 to 2008. When I want to create a report in visual studio 2008 and receiving this error at runtime. I am able to compile but when runnning thats when I am getting this error.

How can I solve this problem? please help.

Compilation Error

Server Error in '/IRPSDEV' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\irpsdev\9e97e0a9\94a2ecd\assembly\dl3\151eb571\00df56e1_6064c201\CrystalDecisions.Web.DLL'

Source Error:

Line 161:        
Line 162:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 163:        private global::CrystalDecisions.Web.CrystalR

How to solve this "Smtp: Mailbox Unavailable or not local " error ?

I am trying to send Email to the Email Addresses stored in the Database, some are working fine but I am getting stuck when I get hit with this error.. The server rejected one or more recipient addresses. The server response was: 550 Requested action not taken: mailbox unavailable or not local I think this is something to do with SMTP Virtual Server Settings in IIS but i dont know what actually i should change over there. The code in the ASP.NET page worked for 40-50 mail addresses but suddenly i am getting this error Can anyone help please. Any ideas will be of great help to me .. Thanks in Advance

Can not solve this html error .

Hello everybody. i am trying to make my web site 0 html error at http://validator.w3.org for better seo but i have 2 html error atm and can not solve it could you please help me thank you   error results   http://validator.w3.org/check?uri=http://www.pokemoncraft.com/Pokedex&charset=(detect+automatically)&doctype=Inline&group=0   the code causes error  <div id="PokeNationIdTitleSort_Tr" style=" position:absolute; left:0px; text-align:center; width:48px; height:12px; line-height:12px; overflow:hidden; top:34px;"> <asp:ImageButton ID="btnSiralaPokeNationNo_Tr" onclick="SiralamaDegistirPokeNationNo" runat="server" /> </div> <div id="Loader" style=" position:absolute; top:64px; left:800px; overflow:hidden; width:64px; height:64px;"> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate > <% if (srLang == "en") { %> <asp:Image ImageUrl="~/images/gamepageimages/GamePageLoader_en.gif" ID="imgAjaxLoader" ToolTip="Waiting Server To Respond" runat="server" /> <%} %> <% if (srLang == "tr") { %>

please solve my error ...in DateTime


Dear Members

               Please See the Following Code

DateTime startDate = new DateTime(); // 01/01/0001 is the default date.

            DateTime endDate = new DateTime(); // 01/01/0001 is the defaut date.


            if (!string.IsNullOrEmpty(textBoxStartDate.Text.Trim()) &&



                DateTime.TryParse(textBoxStartDate.Text.Trim(), out startDate);

                DateTime.TryParse(textBoxEndDate.Text.Trim(), out endDate);


I have given some date in both (textBoxStartDate and textBoxStartEndDate).

But while the Debugging, i found that  startDate and endDate doesn't takes the values from both texboxes....(it always shows /takes the default date(1/1/0001)..

Please find out my error..


DateTime startDate = new DateTime(); // 01/01/0001 is the default date.

How to solve this error This form template is not currently browser enabled?



I would like my form be browser enabled. Users wont use InfoPath to fill it.

Enviroment: Sharepoint2010, form was created in Infopath2010 

InfoPath form properties:

  Security and Trust: Automatically dtermine security level

  Compatibilyty Form type: Web Browser Form

The form was published as a content type to my site. I checked my form for browser compatibility - it was ok.

In my Form library 

   Allow managment content type = Yes

   Opening Document in the Browser = Open in Browser

The features Enterprise feature are enabled on site collection feature and site feature.


But it is still impossible to view my form in browser. The error is appeared: This form template is not currently browser enabled.

Who knows what is wrong? How to make my form web browsable?






Couldnot solve this Unknown Build Error


I am trying to run the project that was developed in another system under Visual Studio 2010. It is running without any error on that System, but when i tried to run it on my System it continuously generates the following error and the build process always fails.

Unknown build error, 'Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'

Can anyone help me to solve this error.


Saugat K.C.

how to solve "Cannot complete this action." error on Require documents to be checked out with https


In our SharePoint environment, when the user try to change "Require documents to be checked out before they can be edited?" to Yes in "Document Library Versioning Settings" screen in Default mode, it works fine. But if the user do the same action in "Internet" mode which we configured as "https", it throws the error like "Cannot complete this action. Please try again."

Could anyone please let me know about how to resolve this issue?

www.aristonsoft.com - .net 3.5 hosting provider in India

How to solve Application error at the time of starting debugger

Hello all,

This is my first post here. So if I posted in wrong forum point me to the correct direction.

I have installed Visual Studio 2005 (.Net 2.0) in my Windows Xp Service Pack 2 operating system.
When the setup had finished the wizard displayed me the following message :-

Visual Studio Setup is complete.
Setup is completed with some warnings."

Now when I clicked the "View Error Log" link a web document opened and there I found so many lines. Of them one is :-

"Failed to copy the file properly Webdev.Webserver.Exe"

Now when I'm trying to launch Vs2005 IDE, it is working but when I'm trying to run my programs by pressing F5 or anyone of the available debugger options I'm fetching the following errors :-

In case of windows applications (regradless whether the selected language is VB or C#) :-
"The application failed to initiliaze properly (0xc000007b). Click on OK to terminate the application."

In case of web a

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"


Handling 404 page not found with Error page



      How do i handle 404 page not found?

Inserting personal error message in ValidationSummary



I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator. 

My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary. 

Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.

This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?

Thanks in advance

Sys.Net.WebServiceFailedException: The server method '' failed with the following error:



Let's say we have 2 time consuming functions, aaa and aaa1 inside a aspx page.

        public static string aaa(int i)
            return i.ToString();

        public static string aaa1(int i)
            return i.ToString();



        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <span id="displayspan"></span>
        <br />
        <input type="button" value=

Jscript error: Object does not support property or method


 Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

So below is my code that i need to use.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src=&quo

Type or namespace error.


A couple of days ago I started getting an unusual behavior when compiling Website projects. I have referenced class libraries added to my bin folder that are also correctely referenced in using statements in my aspx.cs code behind. When I compile, I get the 

Error 4 The type or namespace name 'CommonClassLibrary' could not be found (are you missing a using directive or an assembly reference?) C:\Dev\Fiscal_Portal\Implementation\FMS Portal Site_new\App_Code\BLL\DataTables.cs 1 7 C:\...\FMS Portal Site_new\

The type or namespace name 'CommonClassLibrary' could not be found (are you missing a using directive or an assembly reference?)

error message that would typically be received when the dll has not been added as a reference or added in a using statement.

I can eliminate the error by adding an


HTTP Error 403 - Forbidden


(VB Express website directed me to ASP.NET Web Services which in turn redirected me to this forum).

 Hopefully someone can help me here...... 

I am using VIsual Web Developer and downloaded the small business application to use as a starting point to help my wife get a website up for her small business. When I load the application, I can F5 and it runs fine but as soon as I make any modification to the app and hit F5, I get the HTTP Error 403 - Forbidden when it tries to show the website.

I notice a pop up that occurs when I run that allows me to choose the link for my app and it displays correctly (I close the webpage that has the error on it).

This seems like a pain, is there a setting I'm missing - I would think that this should "just work".

What's up?????



Webmatrix error


When i try to do anything in webmatrix it shuts down.   i get this error in the log

pplication: WebMatrix.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: Unrecoverable system error.
   at System.Environment.FailFast(System.String)
   at MS.Internal.Invariant.FailFast(System.String, System.String)

Insert Error not helpful



I am using VS2010

When I try to updated or insert a record in my User table I am getting an error that does not make sense to me and I cannot figure out what is wrong.

Also, when I try to insert a new record I get a validation error saying that the Id is required. However it is an identity field in the db so it should not be necessary to send it to the server.

Could you please shed some light?


An error has 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: Microsoft.Web.UI.WebControls.EntityOperationException: An error has occurred.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[EntityOperationException: An error has occurred.]
   Microsoft.Web.UI.WebControls.DomainDataSourceView.PerformCudOperation(ChangeSetEntry operation, Action`1 operationPerformingEvent, Action`1 operationPerformedEvent) +331
   Microsoft.Web.UI.WebControls.DomainDataSourceView.UpdateObject(Object oldEntity, O

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend