Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Code throws an error......

  Asked By: Joseph    Date: Sep 25    Category: MOSS    Views: 860

Does anyone know why the below code would throw an error? MOSS 2007

SPSite site = new SPSite("http://sitename/");
SPWeb currentSite;
currentSite = site.OpenWeb();
SPList list = currentSite.Lists["mylist"];

The error is...{"Unable to get global configuration data."}

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Arlene Hodge     Answered On: Sep 25

The user that you are running this as may not have appropriate
rights to the db. Maybe this will help:

www.sharepointu.com/.../Unable_to_get_global_configuration_
data/m_19992/tm.htm

 
Didn't find what you were looking for? Find more on Code throws an error...... Or get search suggestion and latest updates.




Tagged: