Thursday, June 14, 2012

[sharepointdiscussions] Digest Number 4463

Messages In This Digest (14 Messages)

Messages

1a.

Re: System.Net.WebException: The request failed with HTTP status 401

Posted by: "SharepointDiscussions" SharepointDiscussions@live.com

Tue Jun 12, 2012 12:49 pm (PDT)



Oops sorry; didn't see this email. I will check this out.

From: sharepointdiscussions@yahoogroups.com
[mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of Noorez Khamis
Sent: Tuesday, June 12, 2012 9:56 AM
To: sharepointdiscussions@yahoogroups.com
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

The proper way to fix it is in the link that Knox sent you:

http://support.microsoft.com/kb/896861

Method 1 is recommended but Method 2 is an easier less secure way:

Method 1: Specify host names (Preferred method if NTLM authentication is
desired)

To specify the host names that are mapped to the loopback address and can
connect to Web sites on your computer, follow these steps:

1. Set the

DisableStrictNameChecking

registry entry to 1. For more information about how to do this, click the
following article number to view the article in the Microsoft Knowledge
Base:

281308 <http://support.microsoft.com/kb/281308>
(http://support.microsoft.com/kb/281308/ ) Connecting to SMB share on a
Windows 2000-based computer or a Windows Server 2003-based computer may not
work with an alias name

2. Click Start, click Run, type regedit, and then click OK.

3. In Registry Editor, locate and then click the following registry
key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0

4. Right-click MSV1_0, point to New, and then click Multi-String
Value.

5. Type BackConnectionHostNames, and then press ENTER.

6. Right-click BackConnectionHostNames, and then click Modify.

7. In the Value data box, type the host name or the host names for
the sites that are on the local computer, and then click OK.

8. Quit Registry Editor, and then restart the IISAdmin service.

From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
[mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of
SharepointDiscussions
Sent: Tuesday, June 12, 2012 1:39 AM
To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Yeah some strange things.

I also cannot log into central admin or secure sites on the windows 2008
machine but I can on any other machine I have..

not sure how to fix this thing.

From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
[mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Knox
Sent: Tuesday, June 12, 2012 12:57 AM
To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
Subject: [sharepointdiscussions] Re: System.Net.WebException: The request
failed with HTTP status 401: Unauthorized. GetListItems

Looks like the infamous IIS loopback issue, where you get a 401.1 error
browsing sites on the machine itself.

See http://support.microsoft.com/kb/896861 for details, and the available
solutions.

--- In sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com> , SharepointDiscussions
<SharepointDiscussions@...> wrote:
>
>
>
> Hi All,
>
>
>
> I have a C# website where I am writing code to pull down a list using
> SharePoint 2010 web services GetListItems.
>
> I have done this many times with 2007 and 2010 and it was easy but for
some
> reason this time it is not allowing me access. I can use site collection
> administrators and other users that have full control in the list and I am
> still getting denied.
>
>
>
> Here is the complete error:
>
>
>
> Server Error in '/' Application.
>
> The request failed with HTTP status 401: Unauthorized.
>
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
>
>
> Exception Details: System.Net.WebException: The request failed with HTTP
> status 401: Unauthorized.
>
>
>
> Source Error:
>
>
>
> An unhandled exception was generated during the execution of the current
web
> request. Information regarding the origin and location of the exception
can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [WebException: The request failed with HTTP status 401: Unauthorized.]
>
>
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
> Message message, WebResponse response, Stream responseStream, Boolean
> asyncCall) +1538913
>
> System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> methodName, Object[] parameters) +221
>
> MaplargeSharepoint.SPWebReference.Lists.GetListItems(String listName,
> String viewName, XmlNode query, XmlNode viewFields, String rowLimit,
XmlNode
> queryOptions, String webID)
>
> in C:\WWW\CWEB\SomeWebSite\Web References\SPWebReference\Reference.cs:455
>
> MaplargeSharepoint.Test_LoadLists.LoadSimple_Click(Object sender,
> EventArgs e) in C:\WWW\CWEB\somewebsite\Test_LoadLists.aspx.cs:79
>
> System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
>
> System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
> +112
>
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
> stBackEvent(String eventArgument) +10
>
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> sourceControl, String eventArgument) +13
>
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
>
> System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
>
>
>
> CODE THAT HAS PERMISSIONS:
>
> SPWebReference.Lists SPlists = new SPWebReference.Lists();
>
> SPlists.Credentials = new NetworkCredential("username", "password",
> "domain");
>
>
>
> Error happens on this line:
>
> System.Xml.XmlNode nodes = SPlists.GetListItems(listName, viewName, query,
> viewFields, rowLimit, null, null);
>
>
>
> Server Specs:
>
> Windows 2008
>
> SharePoint 2010 - setup on one server.
>
>
>
> The web application is also hosted on the same server.
>
>
>
> I can use stramit CAML viewer and U2U CAML query builder and authenticate
no
> problems with the same credentials.
>
>
>
>
>
> Any Help is appreciated as this is holding me up :)
>
>
>
>
>
> UPDATE:
> I found out something interesting.
>
>
>
> I am developing on my windows 7 ultimate machine using visual studio 2010.
I
> created the c# application from the template in C# > web "ASP.NET
> WebApplication" and V4 framework.
>
>
>
> The windows 2008 server is next to me where the SharePoint server is
hosted.
>
>
>
>
>
> Now when I view my web application in a browser like IE and run it I get
the
> 401 un-authorized.
>
>
>
> I just ran DEBUG where it runs the development server on my win7 machine
> that im working off of and no error. I get no un-authorized and it runs
> fine.
>
>
>
> So what could be the problem?
>
>
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

1b.

Re: System.Net.WebException: The request failed with HTTP status 401

Posted by: "SharepointDiscussions" SharepointDiscussions@live.com

Tue Jun 12, 2012 12:49 pm (PDT)



Hi Peter,

This is a fully dedicated Windows 2008 server in my home. I setup the farm
and have complete control with Central Administration.

I have given the user full control in the web application so I do not know
why It fails authentication.

It will send the credentials in code here : SPlists.Credentials = new
NetworkCredential(G_NCuser, G_NCpass, G_NCdomain);

If I do this browsing the C# application like any other I have made it will
fail authorization.

I have a windows 7 Machine that I am using VS 2010 on to code this. If I run
debug and it opens up a local server and runs the site I get no problems at
all with authorization.

Not sure what is going on.

Thanks,

Mike

From: sharepointdiscussions@yahoogroups.com
[mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of Peter Brunone
Sent: Tuesday, June 12, 2012 9:58 AM
To: sharepointdiscussions@yahoogroups.com
Subject: Re: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Do you know who set up SharePoint on this farm and what account(s) they
used?

On Tue, Jun 12, 2012 at 12:39 AM, SharepointDiscussions <
SharepointDiscussions@live.com <mailto:SharepointDiscussions%40live.com> >
wrote:

> Yeah some strange things.
>
>
> I also cannot log into central admin or secure sites on the windows 2008
> machine but I can on any other machine I have..
>
>
> not sure how to fix this thing.
>
>
>
>
>
>
> From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
> [mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Knox
> Sent: Tuesday, June 12, 2012 12:57 AM
> To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
> Subject: [sharepointdiscussions] Re: System.Net.WebException: The request
> failed with HTTP status 401: Unauthorized. GetListItems
>
>
>
>
>
> Looks like the infamous IIS loopback issue, where you get a 401.1 error
> browsing sites on the machine itself.
>
> See http://support.microsoft.com/kb/896861 for details, and the available
> solutions.
>
> --- In sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
> <mailto:sharepointdiscussions%40yahoogroups.com> , SharepointDiscussions
> <SharepointDiscussions@...> wrote:
> >
> >
> >
> > Hi All,
> >
> >
> >
> > I have a C# website where I am writing code to pull down a list using
> > SharePoint 2010 web services GetListItems.
> >
> > I have done this many times with 2007 and 2010 and it was easy but for
> some
> > reason this time it is not allowing me access. I can use site collection
> > administrators and other users that have full control in the list and I
> am
> > still getting denied.
> >
> >
> >
> > Here is the complete error:
> >
> >
> >
> > Server Error in '/' Application.
> >
> > The request failed with HTTP status 401: Unauthorized.
> >
> > Description: An unhandled exception occurred during the execution of the
> > current web request. Please review the stack trace for more information
> > about the error and where it originated in the code.
> >
> >
> >
> > Exception Details: System.Net.WebException: The request failed with HTTP
> > status 401: Unauthorized.
> >
> >
> >
> > Source Error:
> >
> >
> >
> > An unhandled exception was generated during the execution of the current
> web
> > request. Information regarding the origin and location of the exception
> can
> > be identified using the exception stack trace below.
> >
> > Stack Trace:
> >
> > [WebException: The request failed with HTTP status 401: Unauthorized.]
> >
> >
> >
>
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
> > Message message, WebResponse response, Stream responseStream, Boolean
> > asyncCall) +1538913
> >
> > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> > methodName, Object[] parameters) +221
> >
> > MaplargeSharepoint.SPWebReference.Lists.GetListItems(String listName,
> > String viewName, XmlNode query, XmlNode viewFields, String rowLimit,
> XmlNode
> > queryOptions, String webID)
> >
> > in C:\WWW\CWEB\SomeWebSite\Web
References\SPWebReference\Reference.cs:455
> >
> > MaplargeSharepoint.Test_LoadLists.LoadSimple_Click(Object sender,
> > EventArgs e) in C:\WWW\CWEB\somewebsite\Test_LoadLists.aspx.cs:79
> >
> > System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
> >
> > System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
> > +112
> >
> >
> >
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
> > stBackEvent(String eventArgument) +10
> >
> > System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> > sourceControl, String eventArgument) +13
> >
> > System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
> >
> > System.Web.UI.Page.ProcessRequestMain(Boolean
> > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +5563
> >
> >
> >
> > CODE THAT HAS PERMISSIONS:
> >
> > SPWebReference.Lists SPlists = new SPWebReference.Lists();
> >
> > SPlists.Credentials = new NetworkCredential("username", "password",
> > "domain");
> >
> >
> >
> > Error happens on this line:
> >
> > System.Xml.XmlNode nodes = SPlists.GetListItems(listName, viewName,
> query,
> > viewFields, rowLimit, null, null);
> >
> >
> >
> > Server Specs:
> >
> > Windows 2008
> >
> > SharePoint 2010 - setup on one server.
> >
> >
> >
> > The web application is also hosted on the same server.
> >
> >
> >
> > I can use stramit CAML viewer and U2U CAML query builder and
authenticate
> no
> > problems with the same credentials.
> >
> >
> >
> >
> >
> > Any Help is appreciated as this is holding me up :)
> >
> >
> >
> >
> >
> > UPDATE:
> > I found out something interesting.
> >
> >
> >
> > I am developing on my windows 7 ultimate machine using visual studio
> 2010.
> I
> > created the c# application from the template in C# > web "ASP.NET
> > WebApplication" and V4 framework.
> >
> >
> >
> > The windows 2008 server is next to me where the SharePoint server is
> hosted.
> >
> >
> >
> >
> >
> > Now when I view my web application in a browser like IE and run it I get
> the
> > 401 un-authorized.
> >
> >
> >
> > I just ran DEBUG where it runs the development server on my win7 machine
> > that im working off of and no error. I get no un-authorized and it runs
> > fine.
> >
> >
> >
> > So what could be the problem?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

1c.

Re: System.Net.WebException: The request failed with HTTP status 401

Posted by: "Peter Brunone" peter.brunone@gmail.com   peter_brunone

Tue Jun 12, 2012 1:56 pm (PDT)



Can you hit CA on the 2008 box from the workstation? If so, it's definitely loopback.

Sent from space.

On Jun 12, 2012, at 2:30 PM, SharepointDiscussions <SharepointDiscussions@live.com> wrote:

> Hi Peter,
>
> This is a fully dedicated Windows 2008 server in my home. I setup the farm
> and have complete control with Central Administration.
>
> I have given the user full control in the web application so I do not know
> why It fails authentication.
>
> It will send the credentials in code here : SPlists.Credentials = new
> NetworkCredential(G_NCuser, G_NCpass, G_NCdomain);
>
>
>
> If I do this browsing the C# application like any other I have made it will
> fail authorization.
>
>
> I have a windows 7 Machine that I am using VS 2010 on to code this. If I run
> debug and it opens up a local server and runs the site I get no problems at
> all with authorization.
>
> Not sure what is going on.
>
> Thanks,
>
> Mike
>
>
>
> From: sharepointdiscussions@yahoogroups.com
> [mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of Peter Brunone
> Sent: Tuesday, June 12, 2012 9:58 AM
> To: sharepointdiscussions@yahoogroups.com
> Subject: Re: [sharepointdiscussions] Re: System.Net.WebException: The
> request failed with HTTP status 401: Unauthorized. GetListItems
>
>
>
>
>
> Do you know who set up SharePoint on this farm and what account(s) they
> used?
>
> On Tue, Jun 12, 2012 at 12:39 AM, SharepointDiscussions <
> SharepointDiscussions@live.com <mailto:SharepointDiscussions%40live.com> >
> wrote:
>
>> Yeah some strange things.
>>
>>
>> I also cannot log into central admin or secure sites on the windows 2008
>> machine but I can on any other machine I have..
>>
>>
>> not sure how to fix this thing.
>>
>>
>>
>>
>>
>>
>> From: sharepointdiscussions@yahoogroups.com
> <mailto:sharepointdiscussions%40yahoogroups.com>
>> [mailto:sharepointdiscussions@yahoogroups.com
> <mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Knox
>> Sent: Tuesday, June 12, 2012 12:57 AM
>> To: sharepointdiscussions@yahoogroups.com
> <mailto:sharepointdiscussions%40yahoogroups.com>
>> Subject: [sharepointdiscussions] Re: System.Net.WebException: The request
>> failed with HTTP status 401: Unauthorized. GetListItems
>>
>>
>>
>>
>>
>> Looks like the infamous IIS loopback issue, where you get a 401.1 error
>> browsing sites on the machine itself.
>>
>> See http://support.microsoft.com/kb/896861 for details, and the available
>> solutions.
>>
>> --- In sharepointdiscussions@yahoogroups.com
> <mailto:sharepointdiscussions%40yahoogroups.com>
>> <mailto:sharepointdiscussions%40yahoogroups.com> , SharepointDiscussions
>> <SharepointDiscussions@...> wrote:
>>>
>>>
>>>
>>> Hi All,
>>>
>>>
>>>
>>> I have a C# website where I am writing code to pull down a list using
>>> SharePoint 2010 web services GetListItems.
>>>
>>> I have done this many times with 2007 and 2010 and it was easy but for
>> some
>>> reason this time it is not allowing me access. I can use site collection
>>> administrators and other users that have full control in the list and I
>> am
>>> still getting denied.
>>>
>>>
>>>
>>> Here is the complete error:
>>>
>>>
>>>
>>> Server Error in '/' Application.
>>>
>>> The request failed with HTTP status 401: Unauthorized.
>>>
>>> Description: An unhandled exception occurred during the execution of the
>>> current web request. Please review the stack trace for more information
>>> about the error and where it originated in the code.
>>>
>>>
>>>
>>> Exception Details: System.Net.WebException: The request failed with HTTP
>>> status 401: Unauthorized.
>>>
>>>
>>>
>>> Source Error:
>>>
>>>
>>>
>>> An unhandled exception was generated during the execution of the current
>> web
>>> request. Information regarding the origin and location of the exception
>> can
>>> be identified using the exception stack trace below.
>>>
>>> Stack Trace:
>>>
>>> [WebException: The request failed with HTTP status 401: Unauthorized.]
>>>
>>>
>>>
>>
>>
> System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
>>> Message message, WebResponse response, Stream responseStream, Boolean
>>> asyncCall) +1538913
>>>
>>> System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
>>> methodName, Object[] parameters) +221
>>>
>>> MaplargeSharepoint.SPWebReference.Lists.GetListItems(String listName,
>>> String viewName, XmlNode query, XmlNode viewFields, String rowLimit,
>> XmlNode
>>> queryOptions, String webID)
>>>
>>> in C:\WWW\CWEB\SomeWebSite\Web
> References\SPWebReference\Reference.cs:455
>>>
>>> MaplargeSharepoint.Test_LoadLists.LoadSimple_Click(Object sender,
>>> EventArgs e) in C:\WWW\CWEB\somewebsite\Test_LoadLists.aspx.cs:79
>>>
>>> System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
>>>
>>> System.Web.UI.WebControls.Button.RaisePostBackEvent(String
> eventArgument)
>>> +112
>>>
>>>
>>>
>>
>>
> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
>>> stBackEvent(String eventArgument) +10
>>>
>>> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
>>> sourceControl, String eventArgument) +13
>>>
>>> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
>>>
>>> System.Web.UI.Page.ProcessRequestMain(Boolean
>>> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
>> +5563
>>>
>>>
>>>
>>> CODE THAT HAS PERMISSIONS:
>>>
>>> SPWebReference.Lists SPlists = new SPWebReference.Lists();
>>>
>>> SPlists.Credentials = new NetworkCredential("username", "password",
>>> "domain");
>>>
>>>
>>>
>>> Error happens on this line:
>>>
>>> System.Xml.XmlNode nodes = SPlists.GetListItems(listName, viewName,
>> query,
>>> viewFields, rowLimit, null, null);
>>>
>>>
>>>
>>> Server Specs:
>>>
>>> Windows 2008
>>>
>>> SharePoint 2010 - setup on one server.
>>>
>>>
>>>
>>> The web application is also hosted on the same server.
>>>
>>>
>>>
>>> I can use stramit CAML viewer and U2U CAML query builder and
> authenticate
>> no
>>> problems with the same credentials.
>>>
>>>
>>>
>>>
>>>
>>> Any Help is appreciated as this is holding me up :)
>>>
>>>
>>>
>>>
>>>
>>> UPDATE:
>>> I found out something interesting.
>>>
>>>
>>>
>>> I am developing on my windows 7 ultimate machine using visual studio
>> 2010.
>> I
>>> created the c# application from the template in C# > web "ASP.NET
>>> WebApplication" and V4 framework.
>>>
>>>
>>>
>>> The windows 2008 server is next to me where the SharePoint server is
>> hosted.
>>>
>>>
>>>
>>>
>>>
>>> Now when I view my web application in a browser like IE and run it I get
>> the
>>> 401 un-authorized.
>>>
>>>
>>>
>>> I just ran DEBUG where it runs the development server on my win7 machine
>>> that im working off of and no error. I get no un-authorized and it runs
>>> fine.
>>>
>>>
>>>
>>> So what could be the problem?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> [Non-text portions of this message have been removed]
>>>
>>
>>
>>
>>
>>
>> [Non-text portions of this message have been removed]
>>
>>
>>
>> ------------------------------------
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

1d.

Re: System.Net.WebException: The request failed with HTTP status 401

Posted by: "SharepointDiscussions" SharepointDiscussions@live.com

Tue Jun 12, 2012 2:12 pm (PDT)



Hi,

Ugh I looked at http://support.microsoft.com/kb/896861:

Method 2: Disable the loopback check (less-recommended method)

The second method is to disable the loopback check by setting the
DisableLoopbackCheck registry key.

To set the DisableLoopbackCheck registry key, follow these steps:

Set the

DisableStrictNameChecking

registry entry to 1. For more information about how to do this, click the
following article number to view the article in the Microsoft Knowledge
Base:

281308 Connecting to SMB share on a Windows 2000-based computer or a
Windows Server 2003-based computer may not work with an alias name

Click Start, click Run, type regedit, and then click OK.

In Registry Editor, locate and then click the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

Right-click Lsa, point to New, and then click DWORD Value.

Type DisableLoopbackCheck, and then press ENTER.

Right-click DisableLoopbackCheck, and then click Modify.

In the Value data box, type 1, and then click OK.

Quit Registry Editor, and then restart your computer.

I did that one as it is simple and this is a development server.. DIDN'T
WORK

I can load up the SharePoint site itself on desktops and type the same
credentials I use in code and it lets me in.

But when it hits NetworkCredential(G_NCuser, G_NCpass, G_NCdomain); I get
un authorized.

This doesn't make sense being that they are the EXACT SAME CREDENTIALS used
to access the site in SharePoint.

If I already did Method 2 should I now also do Method 1?

Thanks,

Mike

From: sharepointdiscussions@yahoogroups.com
[mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of
SharepointDiscussions
Sent: Tuesday, June 12, 2012 3:31 PM
To: sharepointdiscussions@yahoogroups.com
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Hi Peter,

This is a fully dedicated Windows 2008 server in my home. I setup the farm
and have complete control with Central Administration.

I have given the user full control in the web application so I do not know
why It fails authentication.

It will send the credentials in code here : SPlists.Credentials = new
NetworkCredential(G_NCuser, G_NCpass, G_NCdomain);

If I do this browsing the C# application like any other I have made it will
fail authorization.

I have a windows 7 Machine that I am using VS 2010 on to code this. If I run
debug and it opens up a local server and runs the site I get no problems at
all with authorization.

Not sure what is going on.

Thanks,

Mike

From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
[mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Peter
Brunone
Sent: Tuesday, June 12, 2012 9:58 AM
To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
Subject: Re: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Do you know who set up SharePoint on this farm and what account(s) they
used?

On Tue, Jun 12, 2012 at 12:39 AM, SharepointDiscussions <
SharepointDiscussions@live.com <mailto:SharepointDiscussions%40live.com>
<mailto:SharepointDiscussions%40live.com> >
wrote:

> Yeah some strange things.
>
>
> I also cannot log into central admin or secure sites on the windows 2008
> machine but I can on any other machine I have..
>
>
> not sure how to fix this thing.
>
>
>
>
>
>
> From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> [mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Knox
> Sent: Tuesday, June 12, 2012 12:57 AM
> To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> Subject: [sharepointdiscussions] Re: System.Net.WebException: The request
> failed with HTTP status 401: Unauthorized. GetListItems
>
>
>
>
>
> Looks like the infamous IIS loopback issue, where you get a 401.1 error
> browsing sites on the machine itself.
>
> See http://support.microsoft.com/kb/896861 for details, and the available
> solutions.
>
> --- In sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> <mailto:sharepointdiscussions%40yahoogroups.com> , SharepointDiscussions
> <SharepointDiscussions@...> wrote:
> >
> >
> >
> > Hi All,
> >
> >
> >
> > I have a C# website where I am writing code to pull down a list using
> > SharePoint 2010 web services GetListItems.
> >
> > I have done this many times with 2007 and 2010 and it was easy but for
> some
> > reason this time it is not allowing me access. I can use site collection
> > administrators and other users that have full control in the list and I
> am
> > still getting denied.
> >
> >
> >
> > Here is the complete error:
> >
> >
> >
> > Server Error in '/' Application.
> >
> > The request failed with HTTP status 401: Unauthorized.
> >
> > Description: An unhandled exception occurred during the execution of the
> > current web request. Please review the stack trace for more information
> > about the error and where it originated in the code.
> >
> >
> >
> > Exception Details: System.Net.WebException: The request failed with HTTP
> > status 401: Unauthorized.
> >
> >
> >
> > Source Error:
> >
> >
> >
> > An unhandled exception was generated during the execution of the current
> web
> > request. Information regarding the origin and location of the exception
> can
> > be identified using the exception stack trace below.
> >
> > Stack Trace:
> >
> > [WebException: The request failed with HTTP status 401: Unauthorized.]
> >
> >
> >
>
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
> > Message message, WebResponse response, Stream responseStream, Boolean
> > asyncCall) +1538913
> >
> > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> > methodName, Object[] parameters) +221
> >
> > MaplargeSharepoint.SPWebReference.Lists.GetListItems(String listName,
> > String viewName, XmlNode query, XmlNode viewFields, String rowLimit,
> XmlNode
> > queryOptions, String webID)
> >
> > in C:\WWW\CWEB\SomeWebSite\Web
References\SPWebReference\Reference.cs:455
> >
> > MaplargeSharepoint.Test_LoadLists.LoadSimple_Click(Object sender,
> > EventArgs e) in C:\WWW\CWEB\somewebsite\Test_LoadLists.aspx.cs:79
> >
> > System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
> >
> > System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
> > +112
> >
> >
> >
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
> > stBackEvent(String eventArgument) +10
> >
> > System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> > sourceControl, String eventArgument) +13
> >
> > System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
> >
> > System.Web.UI.Page.ProcessRequestMain(Boolean
> > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +5563
> >
> >
> >
> > CODE THAT HAS PERMISSIONS:
> >
> > SPWebReference.Lists SPlists = new SPWebReference.Lists();
> >
> > SPlists.Credentials = new NetworkCredential("username", "password",
> > "domain");
> >
> >
> >
> > Error happens on this line:
> >
> > System.Xml.XmlNode nodes = SPlists.GetListItems(listName, viewName,
> query,
> > viewFields, rowLimit, null, null);
> >
> >
> >
> > Server Specs:
> >
> > Windows 2008
> >
> > SharePoint 2010 - setup on one server.
> >
> >
> >
> > The web application is also hosted on the same server.
> >
> >
> >
> > I can use stramit CAML viewer and U2U CAML query builder and
authenticate
> no
> > problems with the same credentials.
> >
> >
> >
> >
> >
> > Any Help is appreciated as this is holding me up :)
> >
> >
> >
> >
> >
> > UPDATE:
> > I found out something interesting.
> >
> >
> >
> > I am developing on my windows 7 ultimate machine using visual studio
> 2010.
> I
> > created the c# application from the template in C# > web "ASP.NET
> > WebApplication" and V4 framework.
> >
> >
> >
> > The windows 2008 server is next to me where the SharePoint server is
> hosted.
> >
> >
> >
> >
> >
> > Now when I view my web application in a browser like IE and run it I get
> the
> > 401 un-authorized.
> >
> >
> >
> > I just ran DEBUG where it runs the development server on my win7 machine
> > that im working off of and no error. I get no un-authorized and it runs
> > fine.
> >
> >
> >
> > So what could be the problem?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

1e.

Re: System.Net.WebException: The request failed with HTTP status 401

Posted by: "SharepointDiscussions" SharepointDiscussions@live.com

Tue Jun 12, 2012 2:31 pm (PDT)



Hello,

What I mean here is that it didn't fix the un-authorized in the application
that I am working with that gets lists form the SharePoint Site.

//This pulls a list in a SharePoint site and displays its
contents on the aspx page.

StringBuilder Results = new StringBuilder();

StringBuilder TheFile = new StringBuilder(); // will save the
entire file to disk at the end.

string HeaderType = "HTML";

ListData L = new ListData();

L.ListUrl =
"http://mbdev.somesite.biz:8511/_vti_bin/lists.asmx"; //

L.listName = G_ListGuid;
//"{55555A53-8033-48C8-AD6C-86527B3545CD}";//

L.ListTitle = G_ListTitle;

L.ViewName = "";

L.RowLimit = "1500";

SPlists.Credentials = new NetworkCredential(G_NCuser, G_NCpass,
G_NCdomain); // I have used even the same credentials as system account and
other administrator accounts and it still fails.

I can say I have been using SharePoint web services with lists for 3 years
and never had this problem once.

I have tried :
On the windows 2008 box:
http://localhost:8511
http://DomainName:8511

Windows 7 desktop on network:
http://webservername:8511
http://DomainName:8511

A remote computer in another state:
http://DomainName:8511

All FAIL!

The error looks like this. I get the error whether I access the site from a
remote machine or the server:

[WebException: The request failed with HTTP status 401: Unauthorized.]

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall) +1538913

System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) +221

MaplargeSharepoint.SPWebReference.Lists.GetListCollection() +77

MaplargeSharepoint.LoadLists.LoadTheLists() +171

MaplargeSharepoint.LoadLists.Page_Load(Object sender, EventArgs e) +67

System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e) +14

System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +44

System.Web.UI.Control.OnLoad(EventArgs e) +83

System.Web.UI.Control.LoadRecursive() +120

System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3954

Any Ideas?

Mike

From: SharepointDiscussions [mailto:SharepointDiscussions@live.com]
Sent: Tuesday, June 12, 2012 5:06 PM
To: 'sharepointdiscussions@yahoogroups.com'
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Hi,

Ugh I looked at http://support.microsoft.com/kb/896861:

Method 2: Disable the loopback check (less-recommended method)

The second method is to disable the loopback check by setting the
DisableLoopbackCheck registry key.

To set the DisableLoopbackCheck registry key, follow these steps:

Set the

DisableStrictNameChecking

registry entry to 1. For more information about how to do this, click the
following article number to view the article in the Microsoft Knowledge
Base:

281308 Connecting to SMB share on a Windows 2000-based computer or a
Windows Server 2003-based computer may not work with an alias name

Click Start, click Run, type regedit, and then click OK.

In Registry Editor, locate and then click the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

Right-click Lsa, point to New, and then click DWORD Value.

Type DisableLoopbackCheck, and then press ENTER.

Right-click DisableLoopbackCheck, and then click Modify.

In the Value data box, type 1, and then click OK.

Quit Registry Editor, and then restart your computer.

I did that one as it is simple and this is a development server.. DIDN'T
WORK

I can load up the SharePoint site itself on desktops and type the same
credentials I use in code and it lets me in.

But when it hits NetworkCredential(G_NCuser, G_NCpass, G_NCdomain); I get
un authorized.

This doesn't make sense being that they are the EXACT SAME CREDENTIALS used
to access the site in SharePoint.

If I already did Method 2 should I now also do Method 1?

Thanks,

Mike

From: sharepointdiscussions@yahoogroups.com
[mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of
SharepointDiscussions
Sent: Tuesday, June 12, 2012 3:31 PM
To: sharepointdiscussions@yahoogroups.com
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Hi Peter,

This is a fully dedicated Windows 2008 server in my home. I setup the farm
and have complete control with Central Administration.

I have given the user full control in the web application so I do not know
why It fails authentication.

It will send the credentials in code here : SPlists.Credentials = new
NetworkCredential(G_NCuser, G_NCpass, G_NCdomain);

If I do this browsing the C# application like any other I have made it will
fail authorization.

I have a windows 7 Machine that I am using VS 2010 on to code this. If I run
debug and it opens up a local server and runs the site I get no problems at
all with authorization.

Not sure what is going on.

Thanks,

Mike

From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
[mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Peter
Brunone
Sent: Tuesday, June 12, 2012 9:58 AM
To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
Subject: Re: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Do you know who set up SharePoint on this farm and what account(s) they
used?

On Tue, Jun 12, 2012 at 12:39 AM, SharepointDiscussions <
SharepointDiscussions@live.com <mailto:SharepointDiscussions%40live.com>
<mailto:SharepointDiscussions%40live.com> >
wrote:

> Yeah some strange things.
>
>
> I also cannot log into central admin or secure sites on the windows 2008
> machine but I can on any other machine I have..
>
>
> not sure how to fix this thing.
>
>
>
>
>
>
> From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> [mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Knox
> Sent: Tuesday, June 12, 2012 12:57 AM
> To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> Subject: [sharepointdiscussions] Re: System.Net.WebException: The request
> failed with HTTP status 401: Unauthorized. GetListItems
>
>
>
>
>
> Looks like the infamous IIS loopback issue, where you get a 401.1 error
> browsing sites on the machine itself.
>
> See http://support.microsoft.com/kb/896861 for details, and the available
> solutions.
>
> --- In sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> <mailto:sharepointdiscussions%40yahoogroups.com> , SharepointDiscussions
> <SharepointDiscussions@...> wrote:
> >
> >
> >
> > Hi All,
> >
> >
> >
> > I have a C# website where I am writing code to pull down a list using
> > SharePoint 2010 web services GetListItems.
> >
> > I have done this many times with 2007 and 2010 and it was easy but for
> some
> > reason this time it is not allowing me access. I can use site collection
> > administrators and other users that have full control in the list and I
> am
> > still getting denied.
> >
> >
> >
> > Here is the complete error:
> >
> >
> >
> > Server Error in '/' Application.
> >
> > The request failed with HTTP status 401: Unauthorized.
> >
> > Description: An unhandled exception occurred during the execution of the
> > current web request. Please review the stack trace for more information
> > about the error and where it originated in the code.
> >
> >
> >
> > Exception Details: System.Net.WebException: The request failed with HTTP
> > status 401: Unauthorized.
> >
> >
> >
> > Source Error:
> >
> >
> >
> > An unhandled exception was generated during the execution of the current
> web
> > request. Information regarding the origin and location of the exception
> can
> > be identified using the exception stack trace below.
> >
> > Stack Trace:
> >
> > [WebException: The request failed with HTTP status 401: Unauthorized.]
> >
> >
> >
>
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
> > Message message, WebResponse response, Stream responseStream, Boolean
> > asyncCall) +1538913
> >
> > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> > methodName, Object[] parameters) +221
> >
> > MaplargeSharepoint.SPWebReference.Lists.GetListItems(String listName,
> > String viewName, XmlNode query, XmlNode viewFields, String rowLimit,
> XmlNode
> > queryOptions, String webID)
> >
> > in C:\WWW\CWEB\SomeWebSite\Web
References\SPWebReference\Reference.cs:455
> >
> > MaplargeSharepoint.Test_LoadLists.LoadSimple_Click(Object sender,
> > EventArgs e) in C:\WWW\CWEB\somewebsite\Test_LoadLists.aspx.cs:79
> >
> > System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
> >
> > System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
> > +112
> >
> >
> >
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
> > stBackEvent(String eventArgument) +10
> >
> > System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> > sourceControl, String eventArgument) +13
> >
> > System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
> >
> > System.Web.UI.Page.ProcessRequestMain(Boolean
> > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +5563
> >
> >
> >
> > CODE THAT HAS PERMISSIONS:
> >
> > SPWebReference.Lists SPlists = new SPWebReference.Lists();
> >
> > SPlists.Credentials = new NetworkCredential("username", "password",
> > "domain");
> >
> >
> >
> > Error happens on this line:
> >
> > System.Xml.XmlNode nodes = SPlists.GetListItems(listName, viewName,
> query,
> > viewFields, rowLimit, null, null);
> >
> >
> >
> > Server Specs:
> >
> > Windows 2008
> >
> > SharePoint 2010 - setup on one server.
> >
> >
> >
> > The web application is also hosted on the same server.
> >
> >
> >
> > I can use stramit CAML viewer and U2U CAML query builder and
authenticate
> no
> > problems with the same credentials.
> >
> >
> >
> >
> >
> > Any Help is appreciated as this is holding me up :)
> >
> >
> >
> >
> >
> > UPDATE:
> > I found out something interesting.
> >
> >
> >
> > I am developing on my windows 7 ultimate machine using visual studio
> 2010.
> I
> > created the c# application from the template in C# > web "ASP.NET
> > WebApplication" and V4 framework.
> >
> >
> >
> > The windows 2008 server is next to me where the SharePoint server is
> hosted.
> >
> >
> >
> >
> >
> > Now when I view my web application in a browser like IE and run it I get
> the
> > 401 un-authorized.
> >
> >
> >
> > I just ran DEBUG where it runs the development server on my win7 machine
> > that im working off of and no error. I get no un-authorized and it runs
> > fine.
> >
> >
> >
> > So what could be the problem?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

2.

Deep in the weeds Meeting workspaces

Posted by: "Patrick Reeves" patrickwreeves@gmail.com   patrick_w36

Tue Jun 12, 2012 12:54 pm (PDT)



I've only recently started playing around with powershell in Moss 2010 (we
are just deploying our first 2010 farm this month). And I have run into a
very annoying issue I need to resolve.
When users setup a meeting workspace (specifically the Decision Making
template) sometimes the attendees will not get there name listed correctly
in the Attendee list/webpart.
Going down the rabbit hole using powershell I've found the following-

$web = Get-SPWeb "https://MeetingPortal/MyMeeting"
$list = $web.Lists["Attendees"]
$items = $list.Items
$items[4].xml
gives this big block of text-

<z:row xmlns:z='#RowsetSchema'
ows_ContentTypeId='0x0014B54229E486784CA00AD55A019EA003' ows_Title='
john.doe@nobody.com' *ows_NameOverloaded='john.doe@nobody.com'
*ows_AssignedTo='41;#Doe,
John' ows_Status='None' ows_Attendance='Required' ows_FromICal='1'
ows_FromExternal='1' ows_In_x0020_Person='0' ows_By_x0020_Phone='0'
ows_ID='94' ows_ContentType='Attendees' ows_Modified='2012-06-04 08:42:39'
ows_Created='2012-06-04 08:42:39' ows_Author='15;#Smith, Bill'
ows_Editor='15;#Smith, Bill' ows_owshiddenversion='1'
ows_WorkflowVersion='1' ows__UIVersion='512' ows__UIVersionString='1.0'
ows_Attachments='0' ows__ModerationStatus='0' ows_LinkTitleNoMenu='
john.doe@nobody.com' ows_LinkTitle='john.doe@nobody.com' ows_LinkTitle2='
john.doe@nobody.com' ows_SelectTitle='94' ows_InstanceID='20120611'
ows_Order='9400.00000000000'
ows_GUID='{AE273EE3-8888-49C9-8BB9-BDBFBED4BC2D}'
ows_FileRef='94;#MyMeeting/Lists/Attendees/94_.000'
ows_FileDirRef='94;#MyMeeting/Lists/Attendees'
ows_Last_x0020_Modified='94;#2012-06-04 08:42:39'
ows_Created_x0020_Date='94;#2012-06-04 08:42:39' ows_FSObjType='94;#0'
ows_SortBehavior='94;#0' ows_PermMask='0x7fffffffffffffff'
ows_FileLeafRef='94;#94_.000'
ows_UniqueId='94;#{5969652A-5706-4809-A89C-DA98D6D931C2}' ows_ProgId='94;#'
ows_ScopeId='94;#{B4C44DAF-4F80-4093-A39C-22FDA8B1DA36}'
ows__EditMenuTableStart='94_.000' ows__EditMenuTableStart2='94'
ows__EditMenuTableEnd='94' ows_LinkFilenameNoMenu='94_.000'
ows_LinkFilename='94_.000' ows_LinkFilename2='94_.000'
ows_ServerUrl='/Leader Working Time/Lists/Attendees/94_.000'
ows_EncodedAbsUrl='https://MyMeeting/Lists/Attendees/94_.000'
ows_BaseName='94_' ows_MetaInfo='94;#' ows__Level='1'
ows__IsCurrentVersion='1' ows_ItemChildCount='94;#0'
ows_FolderChildCount='94;#0' *ows_NameDisplay='john.doe@nobody.com'
ows_NameDisplayLink='john.doe@nobody.com'* ows_EditUser='Doe, John'
ows_Server
Redirected='0' />

From comparing good records vs bad records it seems these three fields are
bad:
ows_NameOverload
ows_NameDisplay
ows_NameDisplayLink
In the bad records they have the email address, in the good records they
have the display name in 'Last, First' format.

Can I use powershell to update this xml block? or am I barking up the
wrong tree?

Patrick

[Non-text portions of this message have been removed]

3a.

Custom Site Template not applying with Powershell script

Posted by: "Greg" greg.mcallister@cirrus.com   gregoryj.mcallister

Tue Jun 12, 2012 12:54 pm (PDT)




I have created a Powershell script that creates sites on a loop basis
for me. It enables to create a large number of sites at one time when
genrating product sites (there are several sites created in several
different web apps for each site. Everything works eccept for the using
of custom templates during the creation process.

this is the line that should find the template and does not:

New-SPWeb $theplace -template
"{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0" -Name
$theweb -UseParentTopNav

I know the actual code is valid because I can replace the custom
template with a OOB template and it works just fine. But as soon as I
replace the standard site with the custom template I get "Warning:
Template is not found and is not applied."

I also verified the template info using GetWebTemplates process and then
cut 7 pasted the information. I have provided code below and the
results.

customsitetemplates.ps1

$url = "http://myurl <http://myurl> "
$site= new-Object Microsoft.SharePoint.SPSite($url )
$loc= [System.Int32]::Parse(1033)
$templates= $site.GetWebTemplates($loc)
foreach ($child in $templates){ write-host $child.Name " "
$child.Title}
$site.Dispose()

results

...
{B51476B6-3A33-419E-8204-D08D9078BBB1}#ITPML_5_0_0 ITPML_5_0_0
{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0 ITPML
Site Template 5_2_0
...

CreateManySites.ps1

do
{
if (!$defaultweb)
{
$defaultweb = Read-Host "Enter the default web for the sites
to be added to (http://server/ <http://server/> or http://server/site/
<http://server/site/> if applicable):"
}
$thesite = Read-Host "enter the URL for the site to add this
site too (Hit enter to use deafult) or enter new path to change the
deafult:"
if (!$thesite)
{
$thesite = $defaultweb
}
else
{
$defaultweb = $thesite
}
$theweb = Read-Host "enter web name"
if ($theweb -ne "overit")
{
$thesite = $defaultweb + $theweb
New-SPWeb $thesite -template
"{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0" -Name
$theweb -UseParentTopNav
write-host "The path was: " $defaultweb " and the site name
is " $theweb "(the path was: " $thesite ")"

write-host "Site created at " $thesite

}
}
while ($theweb -ne "overit")

results

PS C:\> E:\PowerShell Scripts\Create Large amount of websites.ps1
WARNING: Template is not found and is not applied.

Url
---
http://myweb:32065/viola4 <http://myweb:32065/viola4>
The path was: http://myweb:32065/ <http://myweb:32065/> and the site
name is viola4 (the path was: http://myweb:32065/viola4
<http://myweb:32065/viola4> )
Site created at http://myweb:32065/viola4 <http://myweb:32065/viola4>

Please let me know what you think!

Greg

[Non-text portions of this message have been removed]

3b.

Re: Custom Site Template not applying with Powershell script

Posted by: "Cheetham, Phillip" phillip.cheetham@cityofboston.gov   phillip_cheetham

Tue Jun 12, 2012 1:32 pm (PDT)



Greg,

The help for New-SPWeb indicates that the -Template parameter takes a SPWebTemplatePipeBind. Did you try replacing
-template
"{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0"

With:
-template (get-spwebtemplate "{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0")

Or setting a variable?
$spwtemp = get-spwebtemplate "{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0"
New-SPWeb $theplace -template $spwtemp -Name $theweb -UseParentTopNav

So that you're passing a webtemplate object in, rather than a string to identify said object?

Phil

From: sharepointdiscussions@yahoogroups.com [mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of Greg
Sent: Thursday, June 07, 2012 2:15 PM
To: sharepointdiscussions@yahoogroups.com
Subject: [sharepointdiscussions] Custom Site Template not applying with Powershell script

I have created a Powershell script that creates sites on a loop basis
for me. It enables to create a large number of sites at one time when
genrating product sites (there are several sites created in several
different web apps for each site. Everything works eccept for the using
of custom templates during the creation process.

this is the line that should find the template and does not:

New-SPWeb $theplace -template
"{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0" -Name
$theweb -UseParentTopNav

I know the actual code is valid because I can replace the custom
template with a OOB template and it works just fine. But as soon as I
replace the standard site with the custom template I get "Warning:
Template is not found and is not applied."

I also verified the template info using GetWebTemplates process and then
cut 7 pasted the information. I have provided code below and the
results.

customsitetemplates.ps1

$url = "http://myurl <http://myurl> "
$site= new-Object Microsoft.SharePoint.SPSite($url )
$loc= [System.Int32]::Parse(1033)
$templates= $site.GetWebTemplates($loc)
foreach ($child in $templates){ write-host $child.Name " "
$child.Title}
$site.Dispose()

results

...
{B51476B6-3A33-419E-8204-D08D9078BBB1}#ITPML_5_0_0 ITPML_5_0_0
{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0 ITPML
Site Template 5_2_0
...

CreateManySites.ps1

do
{
if (!$defaultweb)
{
$defaultweb = Read-Host "Enter the default web for the sites
to be added to (http://server/ <http://server/> or http://server/site/
<http://server/site/> if applicable):"
}
$thesite = Read-Host "enter the URL for the site to add this
site too (Hit enter to use deafult) or enter new path to change the
deafult:"
if (!$thesite)
{
$thesite = $defaultweb
}
else
{
$defaultweb = $thesite
}
$theweb = Read-Host "enter web name"
if ($theweb -ne "overit")
{
$thesite = $defaultweb + $theweb
New-SPWeb $thesite -template
"{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0" -Name
$theweb -UseParentTopNav
write-host "The path was: " $defaultweb " and the site name
is " $theweb "(the path was: " $thesite ")"

write-host "Site created at " $thesite

}
}
while ($theweb -ne "overit")

results

PS C:\> E:\PowerShell Scripts\Create Large amount of websites.ps1
WARNING: Template is not found and is not applied.

Url
---
http://myweb:32065/viola4 <http://myweb:32065/viola4>
The path was: http://myweb:32065/ <http://myweb:32065/> and the site
name is viola4 (the path was: http://myweb:32065/viola4
<http://myweb:32065/viola4> )
Site created at http://myweb:32065/viola4 <http://myweb:32065/viola4>

Please let me know what you think!

Greg

[Non-text portions of this message have been removed]

-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.

[Non-text portions of this message have been removed]

3c.

Re: Custom Site Template not applying with Powershell script

Posted by: "Greg" greg.mcallister@cirrus.com   gregoryj.mcallister

Wed Jun 13, 2012 6:28 am (PDT)



I have fixed the problem after much research. It seems that PowerShell cannot apply custom templates during the site creation phase. In order to get around this I changed this line of code:

New-SPWeb $thesite -template
"{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0"
-Name $theweb -UseParentTopNav

to read:

$web = New-SPWeb $thesite -Name $theweb -UseParentTopNav

and then added this line immediately below it:

$web.ApplyWebTemplate("{818C30D6-A408-4763-9050-0FF09B768571}#1ITPMLSiteTemplate5_2_1")

Hopefully this will help anyone else running into the problem!

Cheers!

--- In sharepointdiscussions@yahoogroups.com, "Greg" <greg.mcallister@...> wrote:
>
>
> I have created a Powershell script that creates sites on a loop basis
> for me. It enables to create a large number of sites at one time when
> genrating product sites (there are several sites created in several
> different web apps for each site. Everything works eccept for the using
> of custom templates during the creation process.
>
> this is the line that should find the template and does not:
>
> New-SPWeb $theplace -template
> "{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0" -Name
> $theweb -UseParentTopNav
>
> I know the actual code is valid because I can replace the custom
> template with a OOB template and it works just fine. But as soon as I
> replace the standard site with the custom template I get "Warning:
> Template is not found and is not applied."
>
> I also verified the template info using GetWebTemplates process and then
> cut 7 pasted the information. I have provided code below and the
> results.
>
> customsitetemplates.ps1
>
> $url = "http://myurl <http://myurl> "
> $site= new-Object Microsoft.SharePoint.SPSite($url )
> $loc= [System.Int32]::Parse(1033)
> $templates= $site.GetWebTemplates($loc)
> foreach ($child in $templates){ write-host $child.Name " "
> $child.Title}
> $site.Dispose()
>
> results
>
> ...
> {B51476B6-3A33-419E-8204-D08D9078BBB1}#ITPML_5_0_0 ITPML_5_0_0
> {F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0 ITPML
> Site Template 5_2_0
> ...
>
> CreateManySites.ps1
>
> do
> {
> if (!$defaultweb)
> {
> $defaultweb = Read-Host "Enter the default web for the sites
> to be added to (http://server/ <http://server/> or http://server/site/
> <http://server/site/> if applicable):"
> }
> $thesite = Read-Host "enter the URL for the site to add this
> site too (Hit enter to use deafult) or enter new path to change the
> deafult:"
> if (!$thesite)
> {
> $thesite = $defaultweb
> }
> else
> {
> $defaultweb = $thesite
> }
> $theweb = Read-Host "enter web name"
> if ($theweb -ne "overit")
> {
> $thesite = $defaultweb + $theweb
> New-SPWeb $thesite -template
> "{F3B54D47-3197-4B2D-8A4B-DD097CD51169}#1ITPMLSiteTemplate5_2_0" -Name
> $theweb -UseParentTopNav
> write-host "The path was: " $defaultweb " and the site name
> is " $theweb "(the path was: " $thesite ")"
>
> write-host "Site created at " $thesite
>
> }
> }
> while ($theweb -ne "overit")
>
> results
>
> PS C:\> E:\PowerShell Scripts\Create Large amount of websites.ps1
> WARNING: Template is not found and is not applied.
>
> Url
> ---
> http://myweb:32065/viola4 <http://myweb:32065/viola4>
> The path was: http://myweb:32065/ <http://myweb:32065/> and the site
> name is viola4 (the path was: http://myweb:32065/viola4
> <http://myweb:32065/viola4> )
> Site created at http://myweb:32065/viola4 <http://myweb:32065/viola4>
>
> Please let me know what you think!
>
> Greg
>
>
>
> [Non-text portions of this message have been removed]
>

4a.

Changesþ  in Configuration  of Sharepoint 2010

Posted by: "aleena_2" aleena_2@yahoo.co.uk   aleena_2

Wed Jun 13, 2012 6:27 am (PDT)



Hi,

Could anyone properly guide me on the following sharepoint 2010 configuration scenario.

Main points are as follows: need a solution with POC

1. SharePoint 2010 installation is not done as a farm mode instead each server has been installed as single server farm. This is not in line with the design as well as is not a recommend practice. The installation in production environment should be done in a Farm mode which will have proper session management, content management, administration and security

2. Currently there is no caching defined in the SharePoint level. We highly recommend using the caching for certain data that is static in nature or does not change very frequently. This will ease out the load on the servers and will provide better performance to overall application

3. SharePoint search is not configured in the portal. We recommend this to be properly configured to search the portal content apart from the Web parts which have their own custom search

4. EVG component deployed in the SharePoint are Farm Solution. We recommend to use the Sandbox model

5. Currently replication is only configured for EVG application database however there are no database replication configured for SharePoint and BizTalk. Also the design document does not have specific details around disaster recovery setup and plan.

6. Currently there is only service account used across the environment, this is a high security risk. Also the single account used as service account across the services is a Domain Admin account which should never be the case. This is most powerful account and should be used at all at any cost. We recommend to define separate service accounts with required permission only for different services used across the EVG Solution.

7. Currently EVG application issuing NTLM authentication for administrators and custom Form Based Authentication (FBA) for portal end users. We recommend changing the authentication model from NTLM to Claim Based. With claim based authentication application will be able to scale out on authentication model for future authentication requirements with different systems. Claim based authentication supports.
a. Windows Integrated Authentication
b. Forms Based Authentication (FBA)
c. SAML (Security Accretion Markup Language) Authentication

I will be very thankful for your quick reply and suggestions.

Regards,
Aleena

4b.

Re: Changes�  in Configuration  of Sharepoint 2010

Posted by: "onewisegeek" 1wisegeek@gmail.com   onewisegeek

Wed Jun 13, 2012 9:11 am (PDT)



How familiar are you with SharePoint?

5.

Access service is unable to process the request

Posted by: "Ramesh" rameshjune5@gmail.com

Wed Jun 13, 2012 6:28 am (PDT)



Hello Every one,

I am trying to publish an asset web contentdb into sharepoint and published
successfuly. but when ever i am trying to click on the current assets tabs
it is showing as "Access service is unable to process the request"

I gone through the some of the links but they did nt worked.

http://www.project786.com/Blogs/2011/09/27/sharepoint-2010-contact-database-issue-access-services-is-unable-to-process-file-request-solved/

Appreciate your thoughts and ideas.

Thanks in advance

Regards
Ramesh

[Non-text portions of this message have been removed]

6a.

Re: System.Net.WebException: The request failed with HTTP status 401

Posted by: "SharepointDiscussions" SharepointDiscussions@live.com

Wed Jun 13, 2012 6:28 am (PDT)



Hi guys,

I fixed it.

Thanks for the helps : ).

From: sharepointdiscussions@yahoogroups.com
[mailto:sharepointdiscussions@yahoogroups.com] On Behalf Of
SharepointDiscussions
Sent: Tuesday, June 12, 2012 5:20 PM
To: sharepointdiscussions@yahoogroups.com
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Hello,

What I mean here is that it didn't fix the un-authorized in the application
that I am working with that gets lists form the SharePoint Site.

//This pulls a list in a SharePoint site and displays its
contents on the aspx page.

StringBuilder Results = new StringBuilder();

StringBuilder TheFile = new StringBuilder(); // will save the
entire file to disk at the end.

string HeaderType = "HTML";

ListData L = new ListData();

L.ListUrl =
"http://mbdev.somesite.biz:8511/_vti_bin/lists.asmx"; //

L.listName = G_ListGuid;
//"{55555A53-8033-48C8-AD6C-86527B3545CD}";//

L.ListTitle = G_ListTitle;

L.ViewName = "";

L.RowLimit = "1500";

SPlists.Credentials = new NetworkCredential(G_NCuser, G_NCpass,
G_NCdomain); // I have used even the same credentials as system account and
other administrator accounts and it still fails.

I can say I have been using SharePoint web services with lists for 3 years
and never had this problem once.

I have tried :
On the windows 2008 box:
http://localhost:8511
http://DomainName:8511

Windows 7 desktop on network:
http://webservername:8511
http://DomainName:8511

A remote computer in another state:
http://DomainName:8511

All FAIL!

The error looks like this. I get the error whether I access the site from a
remote machine or the server:

[WebException: The request failed with HTTP status 401: Unauthorized.]

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall) +1538913

System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) +221

MaplargeSharepoint.SPWebReference.Lists.GetListCollection() +77

MaplargeSharepoint.LoadLists.LoadTheLists() +171

MaplargeSharepoint.LoadLists.Page_Load(Object sender, EventArgs e) +67

System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e) +14

System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e) +44

System.Web.UI.Control.OnLoad(EventArgs e) +83

System.Web.UI.Control.LoadRecursive() +120

System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3954

Any Ideas?

Mike

From: SharepointDiscussions [mailto:SharepointDiscussions@live.com
<mailto:SharepointDiscussions%40live.com> ]
Sent: Tuesday, June 12, 2012 5:06 PM
To: 'sharepointdiscussions@yahoogroups.com
<mailto:%27sharepointdiscussions%40yahoogroups.com> '
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Hi,

Ugh I looked at http://support.microsoft.com/kb/896861:

Method 2: Disable the loopback check (less-recommended method)

The second method is to disable the loopback check by setting the
DisableLoopbackCheck registry key.

To set the DisableLoopbackCheck registry key, follow these steps:

Set the

DisableStrictNameChecking

registry entry to 1. For more information about how to do this, click the
following article number to view the article in the Microsoft Knowledge
Base:

281308 Connecting to SMB share on a Windows 2000-based computer or a
Windows Server 2003-based computer may not work with an alias name

Click Start, click Run, type regedit, and then click OK.

In Registry Editor, locate and then click the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

Right-click Lsa, point to New, and then click DWORD Value.

Type DisableLoopbackCheck, and then press ENTER.

Right-click DisableLoopbackCheck, and then click Modify.

In the Value data box, type 1, and then click OK.

Quit Registry Editor, and then restart your computer.

I did that one as it is simple and this is a development server.. DIDN'T
WORK

I can load up the SharePoint site itself on desktops and type the same
credentials I use in code and it lets me in.

But when it hits NetworkCredential(G_NCuser, G_NCpass, G_NCdomain); I get
un authorized.

This doesn't make sense being that they are the EXACT SAME CREDENTIALS used
to access the site in SharePoint.

If I already did Method 2 should I now also do Method 1?

Thanks,

Mike

From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
[mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of
SharepointDiscussions
Sent: Tuesday, June 12, 2012 3:31 PM
To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
Subject: RE: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Hi Peter,

This is a fully dedicated Windows 2008 server in my home. I setup the farm
and have complete control with Central Administration.

I have given the user full control in the web application so I do not know
why It fails authentication.

It will send the credentials in code here : SPlists.Credentials = new
NetworkCredential(G_NCuser, G_NCpass, G_NCdomain);

If I do this browsing the C# application like any other I have made it will
fail authorization.

I have a windows 7 Machine that I am using VS 2010 on to code this. If I run
debug and it opens up a local server and runs the site I get no problems at
all with authorization.

Not sure what is going on.

Thanks,

Mike

From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
[mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Peter
Brunone
Sent: Tuesday, June 12, 2012 9:58 AM
To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
Subject: Re: [sharepointdiscussions] Re: System.Net.WebException: The
request failed with HTTP status 401: Unauthorized. GetListItems

Do you know who set up SharePoint on this farm and what account(s) they
used?

On Tue, Jun 12, 2012 at 12:39 AM, SharepointDiscussions <
SharepointDiscussions@live.com <mailto:SharepointDiscussions%40live.com>
<mailto:SharepointDiscussions%40live.com>
<mailto:SharepointDiscussions%40live.com> >
wrote:

> Yeah some strange things.
>
>
> I also cannot log into central admin or secure sites on the windows 2008
> machine but I can on any other machine I have..
>
>
> not sure how to fix this thing.
>
>
>
>
>
>
> From: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> [mailto:sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com> ] On Behalf Of Knox
> Sent: Tuesday, June 12, 2012 12:57 AM
> To: sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> Subject: [sharepointdiscussions] Re: System.Net.WebException: The request
> failed with HTTP status 401: Unauthorized. GetListItems
>
>
>
>
>
> Looks like the infamous IIS loopback issue, where you get a 401.1 error
> browsing sites on the machine itself.
>
> See http://support.microsoft.com/kb/896861 for details, and the available
> solutions.
>
> --- In sharepointdiscussions@yahoogroups.com
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
<mailto:sharepointdiscussions%40yahoogroups.com>
> <mailto:sharepointdiscussions%40yahoogroups.com> , SharepointDiscussions
> <SharepointDiscussions@...> wrote:
> >
> >
> >
> > Hi All,
> >
> >
> >
> > I have a C# website where I am writing code to pull down a list using
> > SharePoint 2010 web services GetListItems.
> >
> > I have done this many times with 2007 and 2010 and it was easy but for
> some
> > reason this time it is not allowing me access. I can use site collection
> > administrators and other users that have full control in the list and I
> am
> > still getting denied.
> >
> >
> >
> > Here is the complete error:
> >
> >
> >
> > Server Error in '/' Application.
> >
> > The request failed with HTTP status 401: Unauthorized.
> >
> > Description: An unhandled exception occurred during the execution of the
> > current web request. Please review the stack trace for more information
> > about the error and where it originated in the code.
> >
> >
> >
> > Exception Details: System.Net.WebException: The request failed with HTTP
> > status 401: Unauthorized.
> >
> >
> >
> > Source Error:
> >
> >
> >
> > An unhandled exception was generated during the execution of the current
> web
> > request. Information regarding the origin and location of the exception
> can
> > be identified using the exception stack trace below.
> >
> > Stack Trace:
> >
> > [WebException: The request failed with HTTP status 401: Unauthorized.]
> >
> >
> >
>
>
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
> > Message message, WebResponse response, Stream responseStream, Boolean
> > asyncCall) +1538913
> >
> > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> > methodName, Object[] parameters) +221
> >
> > MaplargeSharepoint.SPWebReference.Lists.GetListItems(String listName,
> > String viewName, XmlNode query, XmlNode viewFields, String rowLimit,
> XmlNode
> > queryOptions, String webID)
> >
> > in C:\WWW\CWEB\SomeWebSite\Web
References\SPWebReference\Reference.cs:455
> >
> > MaplargeSharepoint.Test_LoadLists.LoadSimple_Click(Object sender,
> > EventArgs e) in C:\WWW\CWEB\somewebsite\Test_LoadLists.aspx.cs:79
> >
> > System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
> >
> > System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
> > +112
> >
> >
> >
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
> > stBackEvent(String eventArgument) +10
> >
> > System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> > sourceControl, String eventArgument) +13
> >
> > System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
> >
> > System.Web.UI.Page.ProcessRequestMain(Boolean
> > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +5563
> >
> >
> >
> > CODE THAT HAS PERMISSIONS:
> >
> > SPWebReference.Lists SPlists = new SPWebReference.Lists();
> >
> > SPlists.Credentials = new NetworkCredential("username", "password",
> > "domain");
> >
> >
> >
> > Error happens on this line:
> >
> > System.Xml.XmlNode nodes = SPlists.GetListItems(listName, viewName,
> query,
> > viewFields, rowLimit, null, null);
> >
> >
> >
> > Server Specs:
> >
> > Windows 2008
> >
> > SharePoint 2010 - setup on one server.
> >
> >
> >
> > The web application is also hosted on the same server.
> >
> >
> >
> > I can use stramit CAML viewer and U2U CAML query builder and
authenticate
> no
> > problems with the same credentials.
> >
> >
> >
> >
> >
> > Any Help is appreciated as this is holding me up :)
> >
> >
> >
> >
> >
> > UPDATE:
> > I found out something interesting.
> >
> >
> >
> > I am developing on my windows 7 ultimate machine using visual studio
> 2010.
> I
> > created the c# application from the template in C# > web "ASP.NET
> > WebApplication" and V4 framework.
> >
> >
> >
> > The windows 2008 server is next to me where the SharePoint server is
> hosted.
> >
> >
> >
> >
> >
> > Now when I view my web application in a browser like IE and run it I get
> the
> > 401 un-authorized.
> >
> >
> >
> > I just ran DEBUG where it runs the development server on my win7 machine
> > that im working off of and no error. I get no un-authorized and it runs
> > fine.
> >
> >
> >
> > So what could be the problem?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

6b.

Re: System.Net.WebException: The request failed with HTTP status 401

Posted by: "onewisegeek" 1wisegeek@gmail.com   onewisegeek

Wed Jun 13, 2012 9:10 am (PDT)



Mind filling us in on how?
It's good for future reference also

Recent Activity
Visit Your Group
Ads on Yahoo!

Learn more now.

Reach customers

searching for you.

Yahoo! Groups

Mental Health Zone

Bi-polar disorder

Find support

Y! Groups blog

The place to go

to stay informed

on Groups news!

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Create New Topic | Visit Your Group on the Web

No comments: