The web application at [URL] could not be found.

Hi,
I am trying to run a simple code like finding all the users in the SharePoint site.
But I am seeing this error constantly no matter what I do!!
The Web application at [https://xxxxxx] could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
I've looked into all the answers on the forums but still stuck with this error.
I am a beginner in SharePoint, and I am really not sure about the AAM and IIS settings that needs to be set inorder to get rid of this error.
If someone could point me in right direction that targets beginners that would be really helpful.
Also, I noticed that my IIS is blank on the dev server that I am working on with Visual Studio and SharePoint installed on it. 
Is this something that is causing this error?
Thanks

Note: you need to enter the SharePoint site URL 
To authenticate:
f you are connecting to office 365 then use the following code:
using (srcContext = new ClientContext(txtUrlFrom.Text))
SecureString passWord = new SecureString();
foreach (char c in txtPasswordFrom.Text.ToCharArray()) passWord.AppendChar(c);
srcContext.Credentials = new SharePointOnlineCredentials(txtUserNameFrom.Text, passWord);
if you are using on premise SharePoint 2013 use this code:
using (srcContext = new ClientContext(txtUrlFrom.Text))
NetworkCredential credentials = new NetworkCredential(txtUserNameFrom.Text, txtPasswordFrom.Text);
Example to retrieve data:
Web srcWeb = srcContext.Web;
List srcList = srcWeb.Lists.GetByTitle(srcLibrary);
ListItemCollection col = srcList.GetItems(new CamlQuery());
srcContext.Load(srcList.RootFolder);
srcContext.Load(srcList.RootFolder.Folders);
srcContext.Load(col);
srcContext.ExecuteQuery();
to retrieve users:
Private void GetData(object obj)
MyArgs args = obj as MyArgs;
try
if (args == null)
return; // called without parameters or invalid type
using (ClientContext clientContext = new ClientContext(args.URL))
// clientContext.AuthenticationMode = ClientAuthenticationMode.;
NetworkCredential credentials = new NetworkCredential(args.UserName, args.Password, args.Domain);
clientContext.Credentials = credentials;
RoleAssignmentCollection roles = clientContext.Web.RoleAssignments;
ListViewItem lvi;
ListViewItem.ListViewSubItem lvsi;
ListViewItem lvigroup;
ListViewItem.ListViewSubItem lvsigroup;
clientContext.Load(roles);
clientContext.ExecuteQuery();
foreach (RoleAssignment orole in roles)
clientContext.Load(orole.Member);
clientContext.ExecuteQuery();
//name
//MessageBox.Show(orole.Member.LoginName);
lvi = new ListViewItem();
lvi.Text = orole.Member.LoginName;
lvsi = new ListViewItem.ListViewSubItem();
lvsi.Text = orole.Member.PrincipalType.ToString();
lvi.SubItems.Add(lvsi);
//get the type group or user
// MessageBox.Show(orole.Member.PrincipalType.ToString());
if (orole.Member.PrincipalType.ToString() == "SharePointGroup")
lvigroup = new ListViewItem();
lvigroup.Text = orole.Member.LoginName;
// args.GroupsList.Items.Add(lvigroup);
DoUpdate1(lvigroup);
Group group = clientContext.Web.SiteGroups.GetById(orole.Member.Id);
UserCollection collUser = group.Users;
clientContext.Load(collUser);
clientContext.ExecuteQuery();
foreach (User oUser in collUser)
lvigroup = new ListViewItem();
lvigroup.Text = "";
lvsigroup = new ListViewItem.ListViewSubItem();
lvsigroup.Text = oUser.LoginName;
lvigroup.SubItems.Add(lvsigroup);
//args.GroupsList.Items.Add(lvigroup);
DoUpdate1(lvigroup);
// MessageBox.Show(oUser.LoginName);
RoleDefinitionBindingCollection roleDefsbindings = null;
roleDefsbindings = orole.RoleDefinitionBindings;
clientContext.Load(roleDefsbindings);
clientContext.ExecuteQuery();
//permission level
lvsi = new ListViewItem.ListViewSubItem();
string permissionsstr = string.Empty;
for (int i = 0; i < roleDefsbindings.Count; i++)
if (i == roleDefsbindings.Count - 1)
permissionsstr = permissionsstr += roleDefsbindings[i].Name;
else
permissionsstr = permissionsstr += roleDefsbindings[i].Name + ", ";
lvsi.Text = permissionsstr;
lvi.SubItems.Add(lvsi);
// args.PermissionsList.Items.Add(lvi);
DoUpdate2(lvi);
catch (Exception ex)
MessageBox.Show(ex.Message);
finally
DoUpdate3();
Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

Similar Messages

  • How to solve Error SPSite - The Web application at address could not be found

    Hello,
    I am trying to find out the internal name of a custom SharePoint list columns, for this I have used following code snippet in my
    console application but getting below error. The site I am accessing is a public SharePoint web site. This code is working
    well with my local host site and i am able to get the internal names of any list columns but don't understand why this is failing with
    public SharePoint site
    For avoiding this issue I have done following steps:
    1.Rebuild the application
    2.changed the  platform target as "Any CPU"
    3.Visual studio and this public site is working in my admin account, but still I am getting the error!
    I use visual studio 2010 and SharePoint 2010
    please note the error I am getting
    Error : The Web application at https://public.sp.a5-group.com/ could not be found. Verify that you have typed the URL correctly.
    If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application
    Code Snippet
    static void Main(string[] args)
    using (SPSite Site = new SPSite("https://public.sp.a5-group.com/"))
    using (SPWeb web = Site.RootWeb)
    SPList splst = web.Lists["ListCard"];
    foreach (var field in splst.Fields)
    bool isHidden = splst.Fields[field.ToString()].Hidden;
    if (!isHidden)
    string internalName = splst.Fields[field.ToString()].InternalName; //This will give you the internal column name.
    Console.WriteLine(internalName);
    Console.ReadLine();

    I thin you need to have sharepoint installed on same computer and URL should be working on this computer.
    If this URL WEB APP is in your IISsite try to create disableloopbackcheck registry which should be help
    When you use the fully qualified domain name (FQDN) or a custom host header to browse a local Web site that is hosted on a computer that is running Microsoft Internet Information Services (IIS) 5.1 or a later version, you may receive an error
    message 
    http://support.microsoft.com/kb/896861

  • Err 404 The URL could not be found on the server

    I attempted to purchase a song and got this error message, error 404 the URL could not be found on the server. Now every time I download any song, it attempts to find the song and gives me the same error message. I don't care if I lose the song. I would just like to make it stop trying to download it.
    Any ideas?

    I've the same problem, and I've reported for the problem, but I received an non-reply, such as "do you have a good internet connection?", etc...
    When I start iTunes, it ask me for my iTunes Store password, then it try to download the missing file I have buyed, but always with the same error message: There was a problem downloading "Fool to Cry / Sucking In the Seventies / The Rolling Stones". The URL "http://a438.phobos.apple.com/r10/Music/y1969/m12/d31/s06.dwrnogas.a.mp4" could not be found on the server.

  • I was trying to watch a music video on my iPhone 4s and it said that the URL could not be found

    What does it mean that the URL could not be found for music videos that I paid for on iTunes

    Hi, When you download, a big app udate like Tom Tom The other Tom Tom maps will be still on iphone until new update is complete That i why you need a lot of space until old updates Delete. So you will need to delete Apps & photos to make space. How much Gig has your iphone 4 s got? Cheers Brian

  • The specified user domainname\user1 could not be found;

    hi,
     am writing script for adding the users into site collec admin group.till last week this code was working fine. but from yesday onwards, am getting this error. this user already exists in the farm and AD. etc... 
    thanks to Simon Doy,. i took refer.from his code: 
    http://blog.ithinksharepoint.com/2014/05/30/powershell-script-add-user-as-site-collection-admin-to-all-sites-in-web-application/
    Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
    $MasterUsernames =  "in\userB#in\userC#in\userA;
    $UsersNamesArray= $MasterUsernames.Split('#')
    $siteCollection = Get-SPSite  "http://srvr1:123/sites/engg/"
    Write-Host "Setting up user $MasterUsernames as site collection admin for $siteCollection.Title  " -ForegroundColor White; 
       foreach($singleUserName in  $UsersNamesArray)
             #$userToBeMadeSiteCollectionAdmin = $siteCollection.RootWeb.EnsureUser($Username); 
             $userToBeMadeSiteCollectionAdmin = $siteCollection.RootWeb.EnsureUser($singleUserName); 
             if($userToBeMadeSiteCollectionAdmin.IsSiteAdmin -ne $true)
                       Write-Host "$singleUserName is not site admin"
                      #pause
                       $userToBeMadeSiteCollectionAdmin.IsSiteAdmin = $true;
                       $userToBeMadeSiteCollectionAdmin.Update();   
                      Write-Host "User is now site collection admin for $siteCollection" -ForegroundColor Green;
           else  
                Write-Host "User is already site collection admin for $siteCollection" -ForegroundColor DarkYellow; 
     Write-Host "Current Site Collection Admins for site: " $siteCollection.Url " " $siteCollection.RootWeb.SiteAdministrators;
    can anyone pls  point me  why am getting this error suddenly.this is working code and am getting this error only for a particular user.
    am getting this error.
    Exception calling "EnsureUser" with "1" argument(s): "The specified user domainname\userA;
     could not be found."
    At C:\powerscripts\AddUsers_SiteCollecAdmin.ps1:20 char:10
    +          $userToBeMadeSiteCollectionAdmin = $siteCollection.RootWeb.EnsureUser($ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : SPException

    Hi Sadomovalex,
    am using Windows Claims only, not FBA.the issue started only 2 days back. it was working fine till last week.
    note: i was creating site collections with dedicated content db through powershell and adding metadata , contents types, doc libs, association etc etc kind of jobs. After end user found some bugs in my site collec .we thought of dropping the site collec
    and db and recreate it again. this was repepated multiple times. 2 days back i was performing this - recreatng the  same sitecollec and content db - [ after deletion ] it recreated. and end user came to me for adding few members as sitecollec
    admin.s since this is a routine task, i wrote this powershell. 

  • "The page you have requested could not be found. (404)"

    Used iWeb to create a website. Personal domain. Was working fine. Made a minor change to the copy on the site and republished. Now I get the message "The page you have requested could not be found. (404)" on every page of the website.
    What's going on?

    Made a minor change to the copy on the site and republished.
    You probably changed something in the url which breaks your link. For help you need to provide your personal url so someone can see what the exact problem is.
    I assume your site is this?
    http://web.me.com/rdhaynes

  • The dependency 'BusinessObjects.Enterprise.Sdk' could not be found.

    Hi,
    Can anyone help me solve this problem, its my first time using crystal reports
    i have installed VS 2003 and Crystal report XI professional Edition, i am trying to run the system but it is complaining about the BusinessObjects.Enterprise.Sdk not found, I read from another post where they say crystal report XI comes with BOE sdk so i dont have to install it separately, so i was advised by someone to reinstall Crystal report but it didnt solve my problem.
    i also have another error "The dependency 'CrystalDecisions.Enterprise.PluginManager' could not be found." which im assuming its caused by the sdk error.
    Does anyone have an idea how to solve this problem?

    Hello,
    The Professional editions of Crystal Reports XI (v11.0) and Crystal Reports XIR2 (v11.5) are not development level products. This means your VS IDE didn't get updated to stand alone versions of the various Crystal assemblies. I would expect that the Crystal references in your VS2003 application are v9.1.5000 because CR XI/XR2 Professional doesn't update your IDE.
    If you're trying to develop an application that interacts with a BusinessObjects Enterprise (BOE) system then you need to install the BOE .NET SDK onto your development machine. The BOE .NET SDK (for CR XI (v11.0) and CR XIR2 (v11.5)) has to be installed from the Enterprise installer media. It can not be downloaded.
    You can install the BOE .NET SDK using the u201CServer Installu201D path after launching the BOE installer. Just choose Server Install u2013 you will need your BOE keycode. Next choose Custom install.  You'll be presented with a drop down list for the Enterprise components.  Deselect everything and then look for the Developer Components option.  You may have to drill down into one of the levels to find it.  Under Developer Components you'll see the BusinessObjects Enterprise .NET SDK.  Select it to install to the development machine.  This should allow you to work with the Enterprise .NET SDK.
    When you are ready to deploy your .NET application you will also need to install the .NET SDK onto the Web application server (assuming it's not also your Enterprise server). This is because we are not fully managed by the .NET Framework.
    Sincerely,
    Dan Kelleher

  • I cannot log into facebook. I get the following message: 404 Error - Not Found The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request,

    I am not able to go to the facebook site. www.facebook.com is not working. I get the following error message. 404 Error - Not Found
    The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request, or the file is not accessible in the requested directory. Please verify that:
    * You have used the proper case; requests ARE case-sensitive!
    * You have entered the URL correctly. (i.e. proper directory/filename)
    * You used the FULL URL. (i.e. proper file type: .html, .gif , .jpg, etc.)
    * You use a tilde (~) before user directories. (i.e. www.furcen.org/~jurann/ )
    * The user/file still exists on this server.
    I also get redirected to "Busca Google" when typing www.facebook.com in the address bar.
    == URL of affected sites ==
    http://facebook.com; buscagoogle.com

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

  • Time capsule error: Time Machine could not be configured. The built-in network interface could not be found.

    Trying to install a new time capsule. I get access to the time capsule via Finder and I am able to surf the web. When trying to chose backup disk, it allows me to chose the Time Capsule from the list and type my password. I then get the following error message:Time Machine could not be configured. The built-in network interface could not be found.
    What now?

    iblastoff wrote:
    glad im not the only one with this issue...
    i've been able to do one single time machine back up. tried to backup today and i am getting the "time machine could not be configured. the built-in network interface blah blah blah" crap.
    Besides this "me, too" complaint with no information, what have you done about it?
    Have you tried this: http://support.apple.com/kb/HT3275#5
    What is your backup destination?
    What sort of Mac do you have (please update your profile)?

  • The Image viewer flash element could not be found

    The image viewer flash element could not be found. What
    should I do? Any plug in exists or is it mistake in program? Help
    me, please. Thx Joe

    Hi,
    The issue here is the mapping of the interface to the service in question, and usually points to a possible mistype or rename of something within your service architecture.
    You need to make sure your namespace and service name here match your service name itself.
    For detailed information, you could refer to:
    https://haddicus.wordpress.com/2011/06/06/service-attribute-value-not-found-wcf-services/
    http://stackoverflow.com/questions/9557221/the-type-restservice-weddingservice-provided-as-the-service-attribute-value-i
    Regards

  • Does anyone have a cure for the following error running on Windows, "The procedure entry point sqlite3_wal_checkpoint could not be found located in the dynamic link library SQLite.dll.

    Does anyone have a cure for the following error running on Windows, "The procedure entry point sqlite3_wal_checkpoint could not be found located in the dynamic link library SQLite.dll.

    I have searched my computer for that file SQlite3.dll and also file QTCF.dll and I cannot find either one when I search my whole computer for it.  I cannot fix this!  I deleted Itunes and every time I try to download it, it goes through all this download till the end when it says that iTunes.exe-entry point now found and that Procedure entry point message comes up.  HELP!  This is driving me crazy.  How can I get itunes to work again when I can't find the danged .dll file to remove, move or rename!?!?!??

  • How can I bulk delete songs from the playlist, if original file could not be found.

    I deleted the original files from the Library iTines. The songs are still in the playlist. How can I bulk delete songs from the playlist, if original file could not be found. Thank.

    Take a look at my FindTracks script. Download it and test it out on a few tracks first. Use the No option first time around to manually confirm each path that it wants to fix so you can see how it works. When you're happy it does what you want select a larger group of tracks to process automatically.
    tt2

  • PRCD-1120 : The resource for database dwhpd1 could not be found.

    OEL 5.1
    11.1.0.6 Oracle database RAC
    11gR2 Grid
    Hi,
    I have installed 11gR2 grid with ASM and restored/recoverd a 11gR1 database. The 1st node is up using asm but when I check with svrctl I get errors :
    [oracle@avgrac01 admin]$ /u01/app/11.2.0/grid/bin/srvctl status database -d dwhpd1
    PRCD-1120 : The resource for database dwhpd1 could not be found.
    PRCR-1001 : Resource ora.dwhpd1.db does not exist
    I have read that it's something to do with SCAN and the remote listeners.
    Please can someone point me in a direction/document/help, please

    798188 wrote:
    OEL 5.1
    11.1.0.6 Oracle database RAC
    11gR2 Grid
    Hi,
    I have installed 11gR2 grid with ASM and restored/recoverd a 11gR1 database. The 1st node is up using asm but when I check with svrctl I get errors :
    [oracle@avgrac01 admin]$ /u01/app/11.2.0/grid/bin/srvctl status database -d dwhpd1
    PRCD-1120 : The resource for database dwhpd1 could not be found.
    PRCR-1001 : Resource ora.dwhpd1.db does not exist
    I have read that it's something to do with SCAN and the remote listeners.
    Please can someone point me in a direction/document/help, pleaseHi,
    This error means database is not registered in OCR
    If the database was not registered in the OCR, after restoring the database you must manually add the database in the OCR (add database and instances)
    http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/srvctladmin.htm#RACAD5011
    http://download.oracle.com/docs/cd/E11882_01/rac.112/e16795/srvctladmin.htm#i1008526
    About integrate 11.1 with SCAN 11.2 you must use note below:
    How to integrate a 10g/11gR1 RAC database with 11gR2 clusterware (SCAN) [ID 1058646.1]
    Hope this helps,
    Levi Pereira

  • Why i receive errors: "The procedure entry point longjmp could not be found in the dynamic link lib. orauts.dll" and "Error ORA-12560"

    Hello,
    "C:\app\xps\product\11.2.0\dbhome_1"  where is my installation of database oracle enterprise 11g; I use Windows 7 Pro.
    I have in System PATH : C:\app\xps\product\11.2.0\dbhome_1\bin
    I have in HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > SYSMAN > OracleDBConsoleorcl : "ORACLE_HOME" value "C:\app\xps\product\11.2.0\dbhome_1"
    When i execute "sqlplus / as sysdba" command, i receive error: "The procedure entry point longjmp could not be found in the dynamic link lib. orauts.dll" and "Error ORA-12560"
    If i execute
    set ORACLE_HOME=C:\app\xps\product\11.2.0\dbhome_1
    C:\>set PATH=%ORACLE_HOME%\bin;%PATH%
    sqlplus "/ as sysdba"
    I don't receive Error.
    Why?

    You don't mention which specific version of the operating system that you are using - Windows XP, Vista, or 7 and whether you're using a 32-bit or 64-bit version.
    FWIW, kernell32.dll is a Windows system-level module, so it's possible that you have some corruption in your Windows installation which is preventing FM from launching.
    Also, 2Gb of RAM is a bit lean for FM.

  • "The built-in network interface could not be found"

    I'm trying to do a new setup of time machine on my wife's macbook air running 10.5.6 to a hard disk connected via USB. When I try to configure Time Machine (previously unconfigured) to use the disk I get the error "Time Machine could not be configured. The built-in network interface could not be found."
    A quick google found only fixes for hackintoshes adding .kext's which I'm not going to try. Any suggestions.

    Never mind, the fix is,
    1. from the finder menu GO to /Library/Preferences/SystemConfiguration
    2. copy the file NetworkInterfaces.plist to your deskop as a backup
    3. Delete the file NetworkInterfaces.plist in /Library/Preferences/SystemConfiguration. You will need to authenticate as an administrative user.
    4. Reboot.
    5. Now you should be able to configure Time Machine to use the disk

Maybe you are looking for

  • Regarding Reading contents in classical ALV

    Hi Experts, I have a problem in Classical ALV Grid Display. I donot know how to read the contents of  modified fields after the grid is displayed.ie. i will modify some cells and press a button which is defined by me then the modified contents need t

  • Using save_text to change long text of sales

    Hi All, I am trying edit the long text on sales order header using FM save_text , But it does not work , the fm is returning subrc  value 0 but the long text does nnot change i have also used commit_text . data td1 type thead . data : tdlin1 type tab

  • How to make the Keynote Turntable Smart Build work properly?

    I've created a single slide presentation using the Keynote's Turntable Smart Build and inserted it in iBooks Author (Insert>Widget>Keynote), but when previewed at iPad, the effect does not work properly. The images used on the presentation just chang

  • How to Merge the Asset Data....

    Hi, we have many subsidiary companies which are maintaining separate books of accounts.out of which now one of the organization which was following separate accounting package (not sap) is getting merged with group Co & we need to merge thier data of

  • DDE server window:  iTunes.exe- No Disk

    When I open itunes I get this window that's labeled DDE Server Window: iTunes.exe-No Disk and it reads "There is no disk in the drive. Please insert a disk into drive \Device\Harddisk2\DR4" This happens with or without the ipod plugged in. I also hav