Click here to Skip to main content
15,921,577 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: singelton pattern Pin
Mogaambo10-Nov-08 21:28
Mogaambo10-Nov-08 21:28 
GeneralRe: singelton pattern Pin
N a v a n e e t h10-Nov-08 22:16
N a v a n e e t h10-Nov-08 22:16 
GeneralRe: singelton pattern Pin
Guffa10-Nov-08 23:38
Guffa10-Nov-08 23:38 
QuestionUnable to evaluate expression because the code is optimized or a native frame is on top of the call stack. Pin
CrazyCoder2610-Nov-08 17:45
CrazyCoder2610-Nov-08 17:45 
AnswerRe: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. Pin
Arun Jacob10-Nov-08 18:29
Arun Jacob10-Nov-08 18:29 
GeneralRe: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. Pin
CrazyCoder2610-Nov-08 18:54
CrazyCoder2610-Nov-08 18:54 
GeneralRe: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. Pin
N a v a n e e t h10-Nov-08 20:19
N a v a n e e t h10-Nov-08 20:19 
GeneralRe: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. Pin
kalpana mhaske14-Nov-10 11:07
kalpana mhaske14-Nov-10 11:07 
Hi,
I am getting the same error at the following line of code:
SPFolder gFolder = web.Folders[documentLibraryName].SubFolders["DeckPlans"];

Comple code is as follow:

public static string GetDeckPlanDocument(string ship)
{

String documentLibraryName;
string deckPlanFile = string.Empty;
documentLibraryName = Constants.Constants.DOCUMENT_LIBRARY_NAME;
SPSite site = SPContext.Current.Site;
using (SPWeb web = SPContext.Current.Site.RootWeb)
{
string content = string.Empty;

SPQuery query = new SPQuery();
SPList myDocList = web.Lists[documentLibraryName];

SPFolder gFolder = web.Folders[documentLibraryName].SubFolders["DeckPlans"];
query.Folder = gFolder;
SPFileCollection filesColl = gFolder.Files;

query.Query = "<Where><Eq><FieldRef Name='Ship'/>" +
"<Value Type='Text'>" + ship + "</Value></Eq></Where>";
//query.Query = "<Query><QueryOptions><Folder>" + @"DeckPlans" + "</Folder></QueryOptions></Query>";
//For nested folder structureSPListItemCollection itemCol = splist.GetItems(spquery)

SPFolder spFolder ;
SPListItemCollection items = myDocList.GetItems(query);
foreach (SPListItem item in items)
{
deckPlanFile = item.File.ToString();
}
}
return deckPlanFile;
}

Please help me on this.

Thanks in advance.
GeneralRe: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. Pin
Guffa10-Nov-08 21:25
Guffa10-Nov-08 21:25 
GeneralRe: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. Pin
raghav_khunger18-Nov-08 19:34
raghav_khunger18-Nov-08 19:34 
QuestionProbleam page processing done before complete sql querey Pin
Rinki Mukheraji10-Nov-08 17:14
Rinki Mukheraji10-Nov-08 17:14 
AnswerRe: Probleam page processing done before complete sql querey Pin
AhsanS10-Nov-08 17:39
AhsanS10-Nov-08 17:39 
AnswerRe: Probleam page processing done before complete sql querey Pin
Brij10-Nov-08 18:00
mentorBrij10-Nov-08 18:00 
QuestionLayout in Visual Studio 2008 Pin
AndyInUK10-Nov-08 10:43
AndyInUK10-Nov-08 10:43 
QuestionSQLDataReader Pin
Aptiva Dave10-Nov-08 9:38
Aptiva Dave10-Nov-08 9:38 
AnswerRe: SQLDataReader Pin
SomeGuyThatIsMe10-Nov-08 10:08
SomeGuyThatIsMe10-Nov-08 10:08 
GeneralRe: SQLDataReader Pin
Aptiva Dave10-Nov-08 10:10
Aptiva Dave10-Nov-08 10:10 
GeneralRe: SQLDataReader Pin
SomeGuyThatIsMe10-Nov-08 10:16
SomeGuyThatIsMe10-Nov-08 10:16 
AnswerRe: SQLDataReader Pin
Guffa10-Nov-08 12:04
Guffa10-Nov-08 12:04 
AnswerRe: SQLDataReader Pin
kumarabhishek10-Nov-08 15:41
kumarabhishek10-Nov-08 15:41 
Questionmaintain the treeview expandDepth [modified] Pin
Louay4net10-Nov-08 8:50
Louay4net10-Nov-08 8:50 
AnswerRe: maintain the treeview expandDepth Pin
m-khansari12-Nov-08 1:24
m-khansari12-Nov-08 1:24 
GeneralRe: maintain the treeview expandDepth Pin
Louay4net12-Nov-08 2:54
Louay4net12-Nov-08 2:54 
GeneralRe: maintain the treeview expandDepth Pin
m-khansari13-Nov-08 0:08
m-khansari13-Nov-08 0:08 
GeneralRe: maintain the treeview expandDepth Pin
Louay4net17-Nov-08 4:37
Louay4net17-Nov-08 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.