Hello,
I am a bit confused with SharePoint URLs. I enter the site by address http://abcuniversity/ in Internet Explorer. I need to read the lists from that site in a Timer Job. I use the following code:
public override void Execute(Guid targetInstanceId)
{
using (SPSite site = new SPSite("http://abcuniversity/"))
{
using (SPWeb web = site.OpenWeb())
{ ...
However the site is null when debugging. What is wrong in that code?
Thanks,
Radek
I am a bit confused with SharePoint URLs. I enter the site by address http://abcuniversity/ in Internet Explorer. I need to read the lists from that site in a Timer Job. I use the following code:
public override void Execute(Guid targetInstanceId)
{
using (SPSite site = new SPSite("http://abcuniversity/"))
{
using (SPWeb web = site.OpenWeb())
{ ...
However the site is null when debugging. What is wrong in that code?
Thanks,
Radek