Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7002081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:53:01+00:00 2026-05-27T20:53:01+00:00

I am trying to create Lists in Sharepoint site from my ASP.NET code using

  • 0

I am trying to create Lists in Sharepoint site from my ASP.NET code using the webservice (http://test.sharepoint.com/_vti_bin/Lists.asmx.The) code i use is as follows.I am sure i have enough access to that sharepoint site.

sharepoint.enhanced1.Lists wsLists = new SharePoint_Test.sharepoint.enhanced1.Lists();
        wsLists.PreAuthenticate = true;
        wsLists.Credentials = System.Net.CredentialCache.DefaultCredentials;
        wsLists.AddList("Test_Code", "testing", 103);

This Code gives me the error:-
The request failed with HTTP status 401: Unauthorized.
Can anyone help me with this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:53:02+00:00Added an answer on May 27, 2026 at 8:53 pm

    It’s Working now..
    i was using somewhat wrong asmx URL.
    the one i was using was http://test.sharepoint.com/Lists/_vti_bin/Lists.asmx
    but the correct URL Shud be
    http://test.sharepoint.com/_vti_bin/Lists.asmx (**NO /Lists/).
    Strange thing is that both URL’s open up in browser without any problem,but fail in code.

    Thanks…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to retrieve list data from a Sharepoint 2010 server using the webservice
I am trying to create a dictionary from 2 lists where one list contains
Using extension syntax I'm trying to create a left-join using LINQ on two lists
edit updated with new information I've been trying to configure a ASP.Net site to
I'm trying to create a C# program using a Sharepoint Web Service reference that
I am trying to create 3 different lists (1,2,3) from 2 existing lists (A,B).
I am trying to create a list template in SharePoint Feature using CAML. I
I've been trying to create a list definition based on the SharePoint Discussion Board
I'm trying to create a list of tasks that I've read from some text
I'm trying to generate a new SharePoint list item directly using SQL server. What's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.