SMP 2.3 sp4 Synchronization in the native application on HTTPS

Hi I have a big problem with synchronization on port 443 / https.
This is the architecture.
At the Relay Server I have installed a trusted certificate in IIS.
I do not know what I need to use the certificate in SMP and application code.

My code looks like this:
SMP101DB.java
_profile.getSyncProfile().setProperty("packageName","smp101:1.0" );
        com.sybase.persistence.ConnectionProfile initProfile = new com.sybase.persistence.ConnectionProfile();
        initProfile.setServerName("company.com");
        initProfile.setPortNumber(443);
        initProfile.setNetworkProtocol("https");
        initProfile.setNetworkStreamParams("trusted_certificates=;url_suffix=;custom_header=\"X_SUP_APPCID:" + com.sybase.mo.MessagingClientLib.getInstance().getDeviceID()+ "\"");
        initProfile.setDomainName("default");
        getSynchronizationProfile().setServerName("company.com");
        getSynchronizationProfile().setPortNumber(443);
        getSynchronizationProfile().setNetworkProtocol("https");
        com.sybase.persistence.NetworkStreamParams streamParams = getSynchronizationProfile().getStreamParams();
        Log.e("DJAR", streamParams.toString());
        streamParams.setUrl_Suffix("/ias_relay_server/client/rs_client.dll/rbs.farm");
        streamParams.setTrusted_Certificates("/storage/sdcard0/download/certificate_company.crt");
        getSynchronizationProfile().setDomainName("default");
        DELEGATE.setInitialSyncProfile(initProfile);
        DELEGATE.init("smp101:1.0", "com.test.smp101.android.mbo", META_DATA, _profile, getDSI());
SMP101SampleActivity.java
private static final int REQUEST_DETAIL = 99;
    private static String USERNAME = "yyyy";
    private static String PASSWORD = "xxxx";
    private static String HOST = "company.com";
    private static int PORT = 443;
    private static int TIMEOUT = 600;
    private static String networkStreamParamsRBS = "trusted_certificates=/storage/sdcard0/download/certificate_company.crt;url_suffix=/ias_relay_server/client/rs_client.dll/rbs.farm/";
    private static String networkStreamParamsMBS = "url_suffix=/ias_relay_server/client/rs_client.dll/mbs.farm/";
    private CustomerListAdapter adapter;
    private static volatile boolean initializationDone = false;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        initializeApplication();
    protected void onActivityResult(int requestCode, int resultCode, Intent data)
        if (requestCode == REQUEST_DETAIL)
            if (resultCode == RESULT_OK)
                SMP101SampleActivity.this.adapter.refreshUI(true);
    private void initializeApplication()
        final ProgressDialog dialog = new ProgressDialog(this);
        dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
        dialog.setTitle("on boarding ...");
        dialog.setMessage("Please wait while download initial data...");
        dialog.setIndeterminate(false);
        dialog.setProgress(100);
        dialog.setCancelable(true);
        dialog.show();
        new Thread()
            @Override
            public void run()
                try
                    int count = 0;
                    while (!initializationDone)
                        dialog.setProgress(++count);
                        Thread.sleep(500);
                        if (count == 100)
                            count = 0;
                    dialog.cancel();
                catch (Exception e)
                    dialog.cancel();
        }.start();
        Application app = Application.getInstance();
        app.setApplicationIdentifier("SMP101");
        app.setApplicationContext(SMP101SampleActivity.this);
        new Thread(new Runnable()
            private void startLogon() {
                Application app = Application.getInstance();
                ApplicationCallback appCallback = new MyApplicationCallback();
                SMP101DB.registerCallbackHandler(new CustomerDBCallback());
                app.setApplicationCallback(appCallback);
                SMP101DB.setApplication(app);
                // Connection Profile
                ConnectionProfile connProf = SMP101DB.getConnectionProfile();
                connProf.setCacheSize(102400);
                connProf.setNetworkProtocol("https");
                Application.getInstance().getConnectionProperties().setFarmId("mbs.farm");
                connProf.save();
//                Application app = Application.getInstance();
//                SMP101DB.registerCallbackHandler(new CustomerDBCallback());
//                SMP101DB.setApplication(app);
//                SMP101DB.getSynchronizationProfile().setServerName(HOST); // Convenience only
                // Synchronization Profile
                ConnectionProfile connProps = SMP101DB.getSynchronizationProfile(); //app.getConnectionProperties();
//                LoginCredentials loginCredentials = new LoginCredentials(USERNAME, PASSWORD);
//                connProps.setLoginCredentials(loginCredentials);
                connProps.setServerName(HOST);
                connProps.setPortNumber(PORT);
                connProps.setNetworkProtocol("https");
                connProps.enableTrace(true);
                connProps.setMaxDbConnections(6);
                connProps.setNetworkStreamParams(networkStreamParamsRBS);
                connProps.save();
            @Override
            public void run()
                try
                    Application app = Application.getInstance();
                    // ConnectionProperties
                    ConnectionProperties prop = app.getConnectionProperties();
                    prop.setServerName(HOST);
                    prop.setPortNumber(PORT);
                    prop.setNetworkProtocol("https");
                    prop.setFarmId("mbs.farm");
                    Log.i("SMP101","Starting Application Registration");
                    if (app.getRegistrationStatus() != RegistrationStatus.REGISTERED) {
                        startLogon();
                        try {
                            app.getConnectionProperties().setLoginCredentials(new LoginCredentials(USERNAME, PASSWORD));
                            app.registerApplication(3600);   
                        catch (Exception e)
                            Log.e("SMP101","Cannot register " + e.getMessage());
                    } else {
                        app.startConnection(TIMEOUT);
                    Log.i("SMP101","Application REGISTERED");
                    if (!SMP101DB.isSynchronized("default")) {
                        Log.i("SMP101","Starting Initial Sync");
                        SMP101DB.disableChangeLog();
                        SMP101DB.synchronize(); // Initial Synchronize
                        SynchronizationGroup sg = SMP101DB.getSynchronizationGroup("default");
                        sg.setEnableSIS(true);
                        sg.save();
                        SMP101DB.synchronize();
                        Log.i("SMP101","Initial Sync COMPLETED");
                    SMP101DB.enableChangeLog();
                catch (Exception e)
                    e.printStackTrace();
                finally
                    initializationDone = true;
                SMP101SampleActivity.this.runOnUiThread(new Runnable()
                    @Override
                    public void run()
                        adapter = new CustomerListAdapter(SMP101SampleActivity.this);
                        ListView listView = (ListView) findViewById(R.id.listView1);
                        listView.setAdapter(adapter);
                        listView.setOnItemClickListener(new OnItemClickListener()
                            @Override
                            public void onItemClick(AdapterView<?> a, View v, int position, long id)
                                Intent intent = new Intent(SMP101SampleActivity.this, DetailActivity.class);
                                intent.putExtra("sk", adapter.getSK(position));
                                SMP101SampleActivity.this.startActivityForResult(intent, REQUEST_DETAIL);
        }).start();

Similar Messages

  • Different CONFIG in the same application

    Hi,
    I am quite new on Forms World and I am having some problems on using the
    Forms configuration below listed. Can anyone help me on this issue?
    I have:
    * http://mydomain.com/forms/frmservlet?config=application1
    This address open my application without any problems!
    * http://mydomain.com/forms/frmservlet?config=application2
    This address also open my application without any problems!
    But, I need, from the first application string (http://mydomain.com/forms/frmservlet?config=application1), to call one particular FORM using the config=application2 .
    How can I do that?
    Thanks a lot,
    Paulo.

    I don't believe there is a native way to do this in Forms.
    Please correct me if I am wrong but I think:
    You can use the web.show_document method but this would not be the same as using call_form or any of the other built-ins. As long as you don't need access to any :global's created by the calling form inside the called form and vice versa you should be ok. This will also require you to login a second time if the username isn't specified in the 2nd config unless you have programmed the form to not require a database connection or it connects on it's own.

  • How to view *.eml files in Lotus Notes as native application?

    Using Desktop Integration for Lotus Notes, and using Contribution Folders via Notes:
    I can drop-and-drag an e-mail from lotus notes inbox to the contribution folder (in Notes) ok. I can view the *.eml file in Contribution Folder (Notes and Explorer), when I select "View" from the Contribution Folder it first attempted to open the file in outlook, I then changed the "view with" attribute,to Notes. Notes attempts to open the file and throws an error message: Invalid Directory Name or device not ready.
    Has anyone come across this before? If so, how did you ensure application consistency that e-mails declared as "documents" are accessed again via the native application (Lotus Notes not Outlook)?
    Many thanks,
    A.

    Not entirely. At least we came to the conclusion it doesn't make (much) sense to block the save option of PDFs if you want to allow printing them
    Anyway; there is of course another possibilty: you could always write your own java bean PDF reader; there are plenty of java PDF libraries available:
    Open Source PDF Libraries in Java
    The easiest way would be to choose one which can open a PDF from a URL and render it; I would retrieve the image via mod_plsql using WPG_DOCLOAD and simply use the PDF library to render the PDF. No tempfiles anyway, and if you don't implement it there is also no save button.
    cheers

  • Retrieving documents using native applications

    Dear
    While retrieving content from content server, the content is usually launched as a web page or pdf files -regardless of the original native file-
    Can ECM automatically launch the native application to enable viewing of any retrieved document? If the native application is not available on the workstation, the ECM then should ask the user to choose another application that could open the retrieved document.
    Please advise

    1. If the web viewable file is configured to be conversion to pdf using IBR then when the user clicks the web viewable link it will open a pdf.
    2. If the user clicks on the native file the browser will ask open or save and if they select open it should spawn the OS to use the application mapped to the file format (has nothing to do with UCM at that point)
    Things like the Search Results page are set up by default to use the WebViewable link mentioned in 1 above but can be changed to Native file if desired. Also IBR can be skipped and Native only file is what is passed through to the web location or only a single file can be saved if the UCM server is set up that way instead of the same Doc file in both Vault and Weblayout.
    Does that answer your question?

  • Native application creating files

    Hi everybody,
    I need a hero
    I'm working on a Air app calling a native application in C++, so it is not a .app or .cmd it's an executable file. For now it's a "dummy" application like below:
    #include <iostream>
    #include <string>
    #include <fstream>
    using namespace std;
    int main(int argc, char ** argv)
              ofstream myfile;
        myfile.open ("test.txt");
        cout << "Hello "<<  argv[1]<< " its a new world!"<<endl;
        myfile << "Writing this to a file.\n";
        myfile.close();
        return 0;
    I launch this native application thanks to the NativeProcess API :
                file = file.resolvePath("./application/Marlin/mac/hello");
                var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                nativeProcessStartupInfo.executable = file;
                var processArgs:Vector.<String> = new Vector.<String>();
                processArgs.push("rela");
                nativeProcessStartupInfo.arguments = processArgs;
                process = new NativeProcess();
                process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA,onOutputData);
                process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA,errorDataHandler);
                process.start(nativeProcessStartupInfo);
    I can see intthe standart output that my native application is running. I have in the trace : hello rela its a new world!
    First question, the native application doesn't pop up, I mean that the console doesn't show up and execute the C++ code. Is it normal or is there a configuration to change that?
    Seconde question, my native application creates a file but when I launch with the Air app, the file is not created. Is it possible to launch a native application creating a file? Is there any security or confifuration to set up?
    Thanks a lot.

    Nevermind, I've found out.
    Needed to add the working directory.
    nativeProcessStartupInfo.workingDirectory = File.createTempDirectory();

  • Reading contents of another (windows native) application

    Hi everyone!
    I would like to read some contents from another application, native to Windows, with my Java app.
    I have found the Jawin project (http://jawinproject.sourceforge.net/), but I have no idea how to find out the CLSID of the native application, which I need for creating a COM object handler... (through Jawin's DispatchPtr) ... if I understand this.
    Does anyone know how to do that, maybe?
    I would much appreciate it if someone could point me in the right direction or provide some code samples - either in Jawin or in some other way. Thank you for your help.
    Best regards,
    David

    Hi,
    The idea of my application is exactly the same that Kiran has mentioned in the 'Aim' of her post.
    i.e
    1 reading from a text file,
    2 parsing the contents,
    3 converting it into byte-array and
    4. adding these as records to an RMS record store.
    Ive been quiet successful in implementing these four steps. However, i face a problem now.
    Problem:
    So far the size of the text file was small i.e around 6 Kb and the app ran as expected.
    But now i need to read a much bigger file of around 50 kb.
    Bcoz the file size is huge, i have tried reading the file in chunks (i.e using delimiters in the file, reading small amounts of data via InputStream and storing in rms....)
    However, the whole file is being loaded at a strech and i get an OutOfMemoryException :(.
    Am i right when i say getResourceAsStream() loads the entire file in memory?? Is there no way for reading a huge .txt file in chunks without loading the entire file in memory?
    Kindly help.
    We gotta get thru! :)
    Smita.

  • System.IO.FileNotFoundException: The Web application at ..not found - when getting document versions in a doc lib

    i have created a    asmx file using vs 2012 4.5 framework, and published to my d:\  drive  and mapped to a  iis  web site
    but when i trued to consume this from a another web appln, it throws me the below error:
     System.IO.FileNotFoundException: The Web application at http://srvr:4000/sites/mysitecollec 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.
       at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId,
    Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String&
    appSiteDomainId, Uri& primaryUri)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.<>c__DisplayClass1.<FetchLatestDocVer>b__0() in d:\PublishWSFetchLatestDoc6Jan.asmx.cs:line 41
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
       at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
       at FetchlatestDocDet6Jan.FetchLatestDoc6Jan.FetchLatestDocVer(String fileName, String processID, String subProcessId) in d:\PublishedWS\FetchLatestDoc6Jan.asmx.cs:line 35
    [WebMethod]
            public DataTable FetchLatestDocVer(string fileName,string processID,string subProcessId)
                DataTable dtFiles = new DataTable("File Details");
                dtFiles.Columns.Add("File Name");
                dtFiles.Columns.Add("File Version");
                dtFiles.Columns.Add("File Url");
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    // implementation details omitted       
                //using (SPSite mySite = new SPSite(siteUrl))
                using (SPSite mySite = new SPSite("http://srvr:4000/sites/mysitecoll"))
                    using (SPWeb myWeb = mySite.OpenWeb())
                        SPList oList = myWeb.Lists["TEST DOC LIB "];
                        SPView oView = oList.Views["All Documents"];                  // SPQuery oQuery = new SPQuery(oView);
                        SPQuery oQuery = new SPQuery();
                        string query = "<Query><Where><And><Eq><FieldRef Name=Title/>" + "<Value Type=Text>" + fileName + "</Value></Eq>"
                                        +"<Eq><FieldRef Name=ProcessID /><Value Type=Text>"+processID+"</Value></Eq>"
                                        +"<Eq><FieldRef Name=SubProcessID /><Value Type=Text>"+subProcessId+"</Value></Eq>"
                                        +"</And></Where></Query>";
                        oQuery.Query = query;                    
                        oQuery.ViewAttributes = "Scope=\"Recursive\"";
                        SPListItemCollection collListItemsAvailable =
                         oList.GetItems(oQuery);
                        foreach (SPListItem oListItemAvailable in collListItemsAvailable)
                           // Console.WriteLine(oListItemAvailable["Name"].ToString());
                            SPFileVersionCollection versions = oListItemAvailable.File.Versions;
                            // If the file has versions, loop through all of the versions
                            if (versions != null)
                                if (versions.Count > 0)
                                    foreach (SPFileVersion version in versions)
                                     //   Console.WriteLine("Version Info:: {0}, {1}", version.VersionLabel, version.Url);
                                        DataRow dr = dtFiles.NewRow();
                                        dr[0] = oListItemAvailable["Name"].ToString();
                                    //Added data to the datatable
                                else
                                  //  Console.WriteLine("Version Info:: {0}, {1}", oListItemAvailable.File.UIVersionLabel, oListItemAvailable.File.Url);
                                    DataRow dr = dtFiles.NewRow();
                                    dr[0] = oListItemAvailable["Name"].ToString();
                                    dr[1] = oListItemAvailable.File.UIVersionLabel;
                                    dr[2] = oListItemAvailable.File.Url;
                                    dtFiles.Rows.Add(dr);
                return dtFiles;

    "The Web application at http://server:port/ 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"
    Here are the most common reasons this error can occur:
    The code is executed on a different machine - The SharePoint object model (except the Client API) requires to be run on the SharePoint server itself. It is not possible to run the application on a server which is not within the same
    SharePoint farm the code is trying to access.
    Insufficient Rights on the site collection - The code is executed in context of an account which does not have read permission on the site collection
    Incorrect Url being used - Verify that the site works correct in a browser and double check that the server is correct registered in the AAM settings
    Incorrect bitness - The SharePoint object model needs to be executed with the same bitness as the operating system. That means you cannot use the SharePoint object model in a 32-bit application if the Operating System and SharePoint
    are installed as 64-bit version. Ensure to compile the project using the correct bitness (64-bit on a 64-bit machine vs. 32-bit on a 32-bit machine)
    Incorrect .NET framework version -  Ensure that the project is configured to use .NET 3.5. .NET 4.0 cannot be used with the current versions of SharePoint
    from Mr.Stefan's post, i have checked with my code : as per the first reason: (1)
    i am running the code from my  SP 2013 machine only. but the only difference is that, i am using a  asp.net web appln and have added a SP references of 15 hive and trying to make a  lists.asmx file.
    also checked the reasons
    2,3 ,4 ,5 all are  fine from my end.
    here just wanna know: abt the below approach : whether its Correct or NOT.
    create a plain GetDocsWebService.asmx file from asp.net 3.5 framework and  write the code for retrieving items from doc.lib using SPSite, spweb, splists, xmldocument and retrieve a datatable . [[[ i have added a web reference of sp 2013 microsoft.sharepoint
    dll from  isapi folder, in this GetDocsWebService.asmx project ]]
    i deployed this web service on my SP server's  new iis site, c:\inetpub\wwwroot\GETDOCSPUBLISH  site
    now, at present , am adding a  normal asp.net 4.5 web appln and add the  web reference of this custom web service and trying to consume.
    at this point am getting mulitpl errors: like
    1) platform not supported : am stuck with this error!!
    2) sometimes, am getting document not valid...<html> <head> document not valid........</html>
    for the above 2 errorrs, i still could not able to find a solution!!
    is it because, lists.asmx is not supported in sp 2013? we need to depend on rest-api/ecma/csom ?? 
    so my question is ,  what should be the correct ad most recommended approach  for reading doc lib/ splist  records/items from a  remote macihne.

  • 10g webgate not protecting the IIS application but protecting base IIS page on the same Default website

    Hello Gurus,
    I have an 10g webgate installed on the IIS server application that I am trying to protect using OAM 11g which is running on a separate server. There is OHS as well running on a separate server which I have set as a proxy to the OAM access server.
    My problem is:
              Whenever I try to access the http://IIS-server-host/ url, the webgate intercepts the request and shows me the OAM SSO login page. Once I provide correct credentials, I can see the basic Windows IIS 7.5           welcome page.
              But whenever I try to access the protected application page http://IIS-server-host/abcd/** where abcd is the protected application, then the OAM SSO login page doesn't show up and the application directly           throws an error. When I see in Fiddler trace the webgate does intercepts the request but then since I have OHS server setup as a proxy to the OAM server, the request stops at the OHS server URL.           http://ohs-server:ohs-port/.
              The /abcd application is hosted on the "Default Web Site" iitself. I can see in the IIS manager that, there is a separate sub-branch just below default website /abcd.
    What could cause this issue? and how should I resolve it? Please advise to the earliest as this is holding up my other activities!!
    Thanks.

    if request stops at OHS server url then issue must be at OHS level   ideally you should see two urls in Fiddler trace before login page is loaded one is /oam/server/obrareq.cgi and then /loginPage .. you see these URL in Fiddler trace ? anything you can gather from IIS / OHS / OAM Server logs ?
    whats error application is throwing ? is it Webgate error (Oracle Access Manager Operation Error) ?

  • 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

  • The Web application could not be found

    Hello,
    I have a machine that has s share point portal .
    I create WCF on the same machine and set it on IIS and the identity of application pool is the administrator of machine 
              PlatformTarget : 64 bit ,  Framework : .net 4.5
    I have added sharepoint.dll as refrenece in WCF project.
    The identity 
    I have a method on the WCF :
              public void Test(string siteCollectionURL)
                    SPSite siteCollection = new SPSite(siteCollectionURL);
    When I call this method , I get the following Error :
             The Web application at http://[servername]:9090/sites/Dhofar 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.
    Iam sure the url is correct  . So how can I solve it
    ASk

    Hi,
    For a better trouble shooting, I suggest you do as the followings:
    You can recreate a new WCF Service for SharePoint to test whether it works.
    More information about how to create WCF Service for SharePoint:
    http://www.thesharepointblog.net/Lists/Posts/Post.aspx?List=815f255a-d0ef-4258-be2a-28487dc9975c&ID=64
    http://msdn.microsoft.com/en-us/library/ff521584(v=office.14).aspx
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • 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

  • For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on?

    For multiple users on a computer, will Firefox Sync synchronize all the users on a computer or only the one logged on? For instance my spouse and I will share a laptop and I want to sync my Firefox when I log on there also but do not want to sync her data.

    Curt
    how do you know if your using the
    Central cache all distributed cache ?
    and are they both stored in the same place ?

  • Is there a note app that syncs with the native iphone notes app

    Looking for a feature rich app to pull notes from the native iPhone app.   I Like holding down the home button to tell Siri to take a note but want to do more with the note after she has taken it.  Is there a note app that pulls from the basic iPhone notes app?

    You Both can Add one email Account on Both Phones and then sync the Calender With Email - This way when one will add a reminder or event it will automatically synced to the other
    Regards Eree - Follow me on Twitter - Facebook - Google+
    For More visit My Blog

  • Getting error while submitting application (Windows Phone 8.1 Silver Light Application).The native API api-ms-win-core-synch-l1-2-0.dll:OpenEventA() isn't allowed in assembly . The Assembly is WindowsPhoneSilverLight 8.1 Runtime Component.

    1028: The native API api-ms-win-core-synch-l1-2-0.dll:OpenEventA() isn’t allowed in assembly AnylyncRuntimeComponent.dll.
    Update it and then try again. 
    1028: The native API api-ms-win-core-synch-l1-2-0.dll:CreateEventA() isn’t allowed in assembly AnylyncRuntimeComponent.dll.
    Update it and then try again.
     1028: The native API api-ms-win-core-synch-l1-2-0.dll:CreateEventExA() isn’t allowed in assembly AnylyncRuntimeComponent.dll.
    Update it and then try again.
     Can please help to fix this issue . 

    Are you calling OpenEventA, CreateEventA, or CreateEventExA? Those look like legitimate errors: OpenEventA, CreateEventA,
    and CreateEventExA are not supported in Windows Store or Windows Phone apps. OpenEventW and CreateEventExW are allowed so you can use those instead.
    And is this a Windows Store app or a Windows Phone Silverlight app? You gave different details on StackOverflow than you
    do here.

  • How do I make type with effects appear the same in a .pdf as it does in the native InDesign file?

    The type I am referring to is the words "What to do next" above.
    On the left is what they look like in the native InDesign CS5 file they were created in. This is how I would like them to appear.
    On the right is how they appear when I try to save the brochue as a .pdf.
    My question is how can I get the words "What to do Next" to appear the same in the .pdf as they do in the native InDesign file?
    Thanks for your help!
    SM66

    Effects are usually using some type of blending mode - you should preview your InDesign file using View>Overprint Preview
    That will show you what they look like when they blend with the background.

Maybe you are looking for

  • Where to find assigned FORMS related to FI account statements

    Hi Friends, This is regarding FI account statements, here i'm having Company code and related Correspondence type and at SPRO, i could able to find the path for assigned driver program, but not the FORM, could you please help me out in finding the as

  • Need help connecting external monitor

    My brother needs help with connecting an external monitor to his 20" iMac G5. He has the adapter with the standard monitor port, and when plugged in, the monitor duplicates the iMac screen. His question is, how can he set it so that the desktop is ex

  • Mapped drives

    Help needed please :( Recently I had to revert back to using a file share on a server (using Windows server 2k12 standard) that had not been used for a few weeks. Users normally just map a drive to the shared folders using their credentials and are a

  • How to intercept the InCopy 'Save' button action?

    Hi, I have an InCopy plug-in that can successfully intercept 'Save' actions from the File->Save menu (using an Action Filter). But in InCopy there is also a Command Bar that contains a 'Save' button. The problem is that I cannot work out how to inter

  • Micro Sim is not detected in BlackBerry 10 Alpha.

    I have got BB10 alpha in Blackbeery 10 JAM. Problem is here, I want use internet through Mobile Network. But this is not working. What is problem here, could you please help me?  My service provider is Vodafone , India. I have contact to service prov