Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Config database to virtaul server

  Asked By: Nishita Parekh         Date: Jan 29, 2010      Category: Sharepoint      Views: 166
 

I am beginner for SPS. I wanted to create my webpart. It is throwing
following exception:
The virtual server that is referenced here is not in the config
database

For the code:
SPWeb myWeb = SPControl.GetContextWeb(Context);
Response.Write(myWeb.Lists.Count.ToString());

This is simple program. Can you please tell me how to configer
database to virtaul server.


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:          

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Config database to virtaul server Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].