Reputation
1,302
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
3 22 49
Impact
~200k people reached

  • 0 posts edited
  • 0 helpful flags
  • 69 votes cast
Jun
13
comment How to get relative path of file in solution?
Thank you, I tried that, and the file is there, but when I try to access it with code doc.Schemas.Add(@"ijis-isesar/1.5";, @"yak/NSI_FCS_Bin/sari.xsd"); I get a 401 Unauthorized error. However, if I type the address into IE, I can access the file just fine and it prompts me to download it. Is there something else I have to do to get around the 401 error? I made sure I was logged in before running the code.
Jun
10
comment How to get relative path of file in solution?
Basically I am trying to access a file, any file, that I have added to my solution, but when I type in the path "../folder/file.xsd" Visual Studio defaults to the c:\windows\system32 folder. I want to know how to add a file to my solution and access it without having provide a path from the local hard disk.
Jun
10
asked How to get relative path of file in solution?
Jun
10
accepted Document Library throws NullReferceException everytime I try to grab an item
Jun
9
answered Document Library throws NullReferceException everytime I try to grab an item
Jun
9
awarded  Editor
Jun
9
revised Document Library throws NullReferceException everytime I try to grab an item
added 1201 characters in body
Jun
9
comment Document Library throws NullReferceException everytime I try to grab an item
In debug mode, when I look at the tlList properties, almost every single field has a "NullReferenceException" in it. The only one that has an actual value is ItemCount
Jun
9
comment Document Library throws NullReferceException everytime I try to grab an item
I just tried this and received the same warning. My code looked like: SPQuery q = new SPQuery(); q.RowLimit = 1; q.Query = "<OrderBy><FieldRef Ascending='False' Name='Name' /></OrderBy>"; SPListItemCollection col = tlLibrary.GetItems(q); string name = col[0]["Name"].ToString(); Name is a field in the document library
Jun
9
comment Document Library throws NullReferceException everytime I try to grab an item
There are no folders in the document library. I have even tried to grab item[0] or item[1] also with no luck
Jun
9
comment Document Library throws NullReferceException everytime I try to grab an item
When I try tlList.Items.Count I the same error "Object reference not set to an instance of an object." but tlList.ItemCount works just fine.
Jun
9
comment Document Library throws NullReferceException everytime I try to grab an item
Correct, at the SPList item
Jun
8
asked Document Library throws NullReferceException everytime I try to grab an item
Jun
8
accepted Does every user have a user.ID?
Jun
7
comment Does every user have a user.ID?
I understand it might not be unique across farms, but do you know if ever user in that farm will have an ID regardless if they are a member of the farm or just member of a group that belongs to the farm?
Jun
7
asked Does every user have a user.ID?
May
25
accepted How to have a column contain multiple users
May
25
comment How to have a column contain multiple users
It is not selected. I would like to do this programmatically using C# if possible. Do you know how to set Allow multiple selections to Yes using C#?
May
25
asked How to have a column contain multiple users
May
23
accepted How to modify the Site Settings page programmatically?