CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 2/18/2008 3:04:41 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 245 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
eletrodm
Asp.Net User
Source array was not long enough2/18/2008 3:04:41 PM

0

 I am receiving this error in my asp.net application:

"Source array was not long enough. Check srcIndex and length, and the array's lower bounds."

This occurs when i?m add one item in my List<>, but is not every time.

 

 Tnx
 

albertpascual
Asp.Net User
Re: Source array was not long enough2/18/2008 6:58:41 PM

0

Can you post the code?


Cheers
Al

My Blog
ASP.NET Blog
Please click on 'Mark as Answer' if this post answered your question!
eletrodm
Asp.Net User
Re: Source array was not long enough2/18/2008 8:48:51 PM

0

public List<Content> GetContent(string applicationName_, string path_)
{
    Content response = null;
    List<Content> contents = null;
   
    object objCache = HttpContext.Current.Cache.Get("Pub.Content");
    if (objCache != null)
    {
        contents = (List<Content>)objCache;
        for (int i = 0; i < contents.Count && response == null; i++)
        {
            Content content = contents[i];
            if (content.ApplicationName.ToLower() != applicationName_.ToLower())
                continue;

            if (content.Path.ToLower() != path_.ToLower())
                continue;
               
            response = content;
        }
    }

    if (response == null)
    {
        response = GetDatabaseContent(applicationName_, path_);

        if (response != null)
        {
            if (contents == null)
                contents = new List<Content>();

            contents.Add(response);

            if (objCache == null)
                HttpContext.Current.Cache["Pub.Content"] = contents;
        }  
    }

    return response;
}

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Java rules Authors: Douglas Dunn, Pages: 690, Published: 2001
Acquiring Better Seismic Data Authors: William Carr Pritchett, Pages: 427, Published: 1990
Sound systems: design and optimization : modern techniques and tools for sound system design and alignment Authors: Bob McCarthy, Pages: 508, Published: 2007

Web:
FarPoint Forums - Error when loading from byte array: Source array ... with some sheets (not all, only some) I get the following error when I try to open them: Source array was not long enough. ...
[#RSRP-86818] Source array was not long enough. Check srcIndex and ... ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds. at System.Array.Copy(Array sourceArray, Int32 ...
Source array was not long enough - ASP.NET Forums "Source array was not long enough. Check srcIndex and length, and the array's lower bounds." This occurs when i´m add one item in my List<>, ...
hymn :: View topic - MyFairTunes error: "Source array was not long ... The error I got in MFT was "Source array was not long enough. Check srcIndex and length, and the array's lower bounds. ...
C7 error :Source array was not long enough. Check srcIndex and ... Local: Fri, Apr 24 2009 1:23 am. Subject: C7 error :Source array was not long enough. Check srcIndex and length, and the array's lower bounds. ...

Source array was not long enough - ng.asp-net-forum.visual_studio_2005 Source array was not long enough, > ROOT > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005, Date: 2/18/2008 3:04:41 PM, ...
object does not allow to set GenerateDBDirectMethods true - ng.asp ... source array was not long enough · web deployment projects · dropdownlist and intellisence · adding reference to web project ...
UNC Share - WinXP - ng.asp-net-forum.visual_studio_2005 source array was not long enough · updating table through visual studio 2005 · class library standard · unable to start debuging on webserver. ...
cannot read javascript textbox text changes - ng.asp-net-forum ... source array was not long enough · absolute & relative paths for css, js, and other links. templates · activex control in asp.net ...

Videos:
bloop - An Unexplained Phenomenon The 'bloop' is the name given to an ultra-low frequency underwater sound detected by the U.S. National Oceanic and Atmospheric Administration ...
NZXT Khaos Full-Tower ATX Case Khaos features breakthrough design in every category effectively satisfying the needs of the most power hungry PC Enthusiasts and Gamers ...
Cosmos Episodio 10 parte 4/7 http://lavozdecarlsagan.blogspot.com/ Episode 10: The Edge of Forever Contents: 1. Opening 2. Big Bang The origins of the universe ...
Using Static Analysis For Software Defect Detection Google TechTalks July 6, 2006 William Pugh ABSTRACT I'll talk about some of my experience in using and expanding static analysis tools for ...
Gamma Knife Radiosurgery Treatment for an Acoustic Neuroma Gamma Knife radiosurgery for an acoustic neuroma will be featured on the sixth webcast sponsored by Saint Joseph's Hospital and Marshfield Clinic ...






creating images over images. need help

fxcop, strong naming and visual studio

problems installing vs 2005 pro. instmsiw.exe

upgrading from express edition to professional

how to share one .rds file in one solution?

vista: opening a .vsi as win folder?

huge problem with ajax extensions in vs2005

debugging timeout - 2 minutes

web site administration tool

problem with a web project i added as an "existing web site"

problem for debugging with ie7

triple slash commenting in c# classes

vs not obeying tag options

how to make instant messanging with vs 2005 and ajax using c#.net

project name

whatever happened to pagelayout property

debugging my httphandler class

problem with clr profiler

how to uninstall "visual studio 2005 web application project preview"

rather daft question i suppose but......

question about building multiple projects in a solution

how does he do that?

tables in design view

create a toolboxitem compatible with the html editor

problems with login toolsbox controls

problem installing visual studio 2005 pro

visual studio 2005 sp1 and ajax

build, rebuild and publish

change webdev.webserver.exe settings for localhost

error: "visual web developer does not support opening sharepoint web sites." help

   
  Privacy | Contact Us
All Times Are GMT