Getting 'File not found' error while using server object model code

Hi,
I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
Code I am using:
string strURL=http://servername/sites/sitename;
SPSite siteObj=new SPSite (strURL); //getting error here.
I have already checked the below,
1. Framework being used is 3.5.
2. I have proper access to site.
3. Running visual studio as admin.
Any help is much appreciated.
thanks
Tarique
thanks and regards Tarique Aslam

Hello Tarique ,
Couple of pints need to check:
1. User running the console application needs to have at least read permission to the SharePoint databases
2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
Also refer this similar thread:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • Get file not found error when I try to sync

    I get file not found error when I try to sync Iphone.

    SteveDVD,
    The use of the .WMV was because that was part of the Library .EM template. I would not anticipate problems with other formats, so long as they are supported and the same for all of your Menus in the Project.
    If you have done several Motion Menu Renderings, you might want to clear Encore's Media Cache, just in case it is still referencing previous Render files.
    And yes, the re-Importation should yield the same result as Linking/re-Linking.
    Unfortunately, I do not have CS4, so I can't test this for you. There do seem to be a few real Bugs in the various CS4 programs, and maybe this is one?
    That "File Not Found" rings a bell in my feeble brain. Seems that there was a post on that, but I do not remember it being related to Motion Menus. Maybe search will yield something of use.
    Good luck,
    Hunt

  • When I call VI on Linux from Teststand on Windows using TCP/IP I get "file not found error".any sugeestions?

    I am trying to execute a VI running on Linux from Teststand running on windows 2000 prof ,both running on two different machines.I used TCP/IP for the interface using the following steps on Labview VI:tools>options>VIserver>TCP/IP and gave the ip address of both the machines.When I gave the file path as c:\home\test.vi in Edit labview Vi call window(the Vi in linux is stored in /home/test.vi)and also in remote vi path:/home/test.vi,I get a file not found error.The teststand version is 3.0 and labview is 7.0.Any idea why this is happening and any solutions?

    priya guru,
    Here is a knowledge base that addresses your question: �How do I call test VIs that reside on a non-Windows platform from TestStand?�
    You also need to set TCP/IP Access found in Tools->Options->'VI Server: TCP/IP Access'. Make sure that you list the IP address in the Access List to allow TCP/IP access to that machine. Finally you need to specify which VIs are accessible to remote applications. Open up Tools->Options->'VI Server: Exported VIs' and provide paths to the VIs you wish to be remotely accessible.
    I have attached an example VI that demonstrates VI Server in action. Please post back if you are still having problems. Good luck!
    Cr
    aig H.
    National Instruments
    Attachments:
    Remote_Run_--_VI_Server.zip ‏88 KB

  • FILE NOT FOUND ERROR WHILE INSTALLING ORACLE EM GRID CONTROL 10.2.0.1

    FILE NOT FOUND ERROR ON FILES: generalstup, seedstup during the setup phase and when i click ignore from a list of cancel, retry and ignore it moves to the configuration phase and rapidly moves from 63% to 100% and gives the error OUI-10133 invalid staging area. i have tried the install 3 times and dont know what the problem is. i am doing the oracle EM GC INSTALL WITH NEW DATABASE OPTION. i downloaded the full version disks 1-3 from the website:http://www.oracle.com/technology/software/products/oem/index.html
    Enterprise Manager 10g Grid Control Release 2 (v10.2.x)
    Full Installers (Agent, Repository, OMS, and Management Packs)
    Oracle Enterprise Manager 10g Grid Control Release 2 (10.2.0.1) for Linux x86
    when this is extracted it leaves me with Disk1, 2, and 3
    install started from 1, then it later asks for two whick happens to instead be but under Dist 3-but there are two disk2's under Disk 3- one under oms and one under rdbms folder. i have tried both and alas same errors
    i even triwd the same download from edelivery.oracle.com and gives the same madness
    am stuck.

    i followed the link and all the instructions things seemed to go well: it still asked for two files i did not have or could not locate: first its asked for generalstub, then it asked for seedstup and then generalstup again. at this point the installation was at 67% and had passed the link succesful stage and was at the setup succeful stage. when i clicked ignore on generalstub, seedstup and then generalstup again it quicly moved to 100% and never took me to the stage for me to run oraInstroot.sh and allroot.sh
    the configuration assistant stage never cameup and it skipped to the page Specify Repository Database Configuration
    where it asked for repository database hostname port, service/sid and SYSMAN password and also manament service security password. whe i input all the infor mation it will give errors. i have tries deleting all oracle 3 or 4 times and all files that oracle has and repeated the process and am always stuck here.
    error reads :
    -error cheching the existence of the SYSMAN user in Management repository
    -exception occured while connecting to database . please check the connection details you specified and retry
    -io exception connection refused: (DESCRIPTION=(TMP=)(VSNUMM=168821760)(ERR=12514)(ERRO_STACK=(ERROR=(CODE=12514)(EMFI=4))))
    REP DB HOSTNAME:SA-OMS-01
    PORT:1521
    SERVICE/SID:OMSDB01
    SYSMAN PASSWORD:PASS
    THE REST I PUT PASS AS PASSWORD
    NOT SURE WHAT TO DO NEXT.

  • CS5 opening file from file server through explorer gets file not found error

    Hi There,
    Has anyone come across an issue with CS5 where they open an ai file through Windows Explorer and gets an error file not found after CS5 has started? Opening through CS5's file > open option does not produce the same error and seems to only error when opening by double clicking on the ai file. Is this a possible issue with shellex open handler registry key?
    Any help would be greatly appreciated.

    Opening files directly from the server can produce errors and damage files. It is generally not advised.
    http://kb2.adobe.com/cps/327/327749.html

  • File not found error while trying to generate stub using wsdl2java

    Hi
    I am facing this peculiar problem while generating the stub thru the wsdl2java command.
    It shows series of file not found exception.
    What all thing need to be set or taken care while we execute the command . anybody having window script for doing this please share it with me.
    Your help is higly appreciated
    Thanks
    Ottran

    It could be that the wsdl file is not found if you are invoking this command for a wsdl which is locally existing
    Could you send the command and the exception msgs that you are getting
    Regards
    Mari

  • File Not Found Error while installing

    I am using Win 7- 64, downloaded Oracle 11g R2.
    my problem is while i am installing i am getting this error dialogue boxes repeatedly
    File Not Found
    F:\app\Poojaries\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMLRSVCApp.ear
    Giving options with
    Abort          Retry           Continue
    i proceeded with Continue, i got many errors like that , even i completed with clicking continue.
    Installation completed.
    While i am trying to login with Username and Password, it giving an error
    ORA - 12560 TNS : Protocol adapter error.
    Even i tried login with DBA also it not working
    Waiting for solution..
    Thank you

    94ca1f3c-5ca1-4c06-9858-513a0c7e2e15 wrote:
    I am using Win 7- 64, downloaded Oracle 11g R2.
    my problem is while i am installing i am getting this error dialogue boxes repeatedly
    File Not Found
    F:\app\Poojaries\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMLRSVCApp.ear
    Giving options with
    Abort          Retry           Continue
    i proceeded with Continue, i got many errors like that , even i completed with clicking continue.
    Installation completed.
    While i am trying to login with Username and Password, it giving an error
    ORA - 12560 TNS : Protocol adapter error.
    Even i tried login with DBA also it not working
    Waiting for solution..
    Thank you
    Why would you expect logging on to work when the fundamental installation failed and you chose to ignore the failure?
    As pointed out, there were two zip files, and the contents of them have to be 'merged'.  There was a comment about the on the page from which you downloaded those two files.  And here's a hint:  If you are wedded to the Windows GUI, when you click on a zip file and choose to unzip it, it will be unzipped into a newly created folder with the same base name as the zip file.  Thus zip file 1 unzips into folder 1 and zip file 2 unzips to folder 2, leaving you with copy all of the contents of one into the other.
    There is a cleaner way, and that is to learn to use a command line.
    - open a command prompt (cmd.exe)
    - change directories to the directory where your two zip files are located.
    - issue the 'unzip' command, specifying file 1  ('unzip V17530-01_1of2')
    - issue the 'unzip' command, specifying file 2  ('unzip V17530-01_2of2')
    Done.  You will have two directories, one named 'database' and one named 'grid'.  The 'database directory will be the 'merged from two directories' directory.

  • Getting 'Page Not Found' error while launching the Workbook

    Hi,
    When the user is trying to launch a particular workbook in Discoverer Viewer by clicking on the Workbook name in the List of Workbooks page of E-Business Suite, he is getting the 'Page Not Found' error.
    Did anyone faced similar issue?
    Please let me if anyone knows the cause and solution.
    Thanks,
    Lokesh.

    Hi Michael,
    Thanks for your response, Actually the user is getting this error in E-business Suite.
    The user will do the following before getting this error.
    1) Logs into the E-business Suite with appropriate login credentials.
    2) User will see the HTML Page which will show all his Responsibilities.
    3) User clicks on the 'XXXXX GL Discoverer Viewer' responsibility
    4) The HTML Page gets refreshed and the user will see the menu 'Discoverer Viewer' on the right side of the HTML Page.
    5).User clicks on the menu item 'Discoverer Viewer'
    6).A new HTML page gets generated which will display all the Workbook names to which the user(Responsibility) has the access.
    6).Now the user clicks on a specific Workbook name to launch the Workbook.
    7).User gets the 'Page Not Found' error.
    The user is getting this error only for one Workbook,other Workbooks are not causing any problem, the user is able to launch other Workbooks from the same page.
    I believe that E-business Suite generates the HTML Page with all the Workbook names and wondering why only one workbook is giving error.
    Thanks,
    Lokesh.

  • File not found error on testing server [subject edited by moderator]

    The requested URL /www/first.php was not found on this server.  Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
    Using adobe dreamweaver with wamp server and getting this message while checking any file.Saved all file in ( c:wamp/www/ ) with php extention

    Have you checked to see if first.php file is in the www folder in WAMP?
    Have you aso tried:
    http://localhost/first.php
    or
    Create a folder in the 'www' folder named 'test' and then put the 'first.php' file in the 'test' folder:
    http://localhost/test/first.php
    Do any of those combinations work?

  • Getting 404 not found error-while creating classic report - after sql query

    my work space - upgrade
    while iam trying to develop a page today in work space - under classic report - after i provided the query and when pressed next to go to report attribuites section - iam facing 404 not found issue.,
    this is happening just today.
    and all teh other pages are working fine - do not know what ios the issue - can anybody help me here please..
    query used for classic report
    select DISTINCT cust.customer,prod.ebs_team
    from
    CUSTOMER_11i@upgrade Cust
    ,BUG_PRODUCTS@upgrade PROD
    where 1=1
    and cust.product_id = prod.product_id
    and prod.prodline = 'EBS'
    and IS_CUST_11 = 'YES'
    and NVL(IS_CUST_121,'NO') = 'NO'
    and NVL(IS_CUST_12,'NO') = 'NO'
    order by 1;
    with regards
    Shiva Prasad.k
    Edited by: user759720 on Feb 14, 2012 5:00 AM

    Hi Shiva,
    to diagnose a 404 error please have a look at http://www.inside-oracle-apex.com/oracle-apex-got-404-not-found-2/
    This should give you sufficient information to find out what is actually failing.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Class not found error while using ikvm error code IKVMC0100: class "javax.b

    hi iam writing a java application which uses bluetoth i.e. javax.bluetooth;
    now i need to create exe for c# i.e. my GUI is C# and business logic is java,
    so these are steps i have followed
    * created a java project (iam using netbeans 6.1)
    * after build i used command prompt and travesed to dist of my project location which contains jar
    * here i typed ikvmc my.jar
    but now it says the following it also contains others but one of such is
    Warning IKVMC0100: class "javax.bluetooth.LocalDevice" not found
    it also creates exe but if use that in my c# then raises the exception...
    so please help me.. what is the solution for this....

    If you have the SDKPanel sample, you have a Flex sample and debugging information. Please let me know (off-forum) what you're buildng, and we'll make sure your dev environment is configured correctly.

  • Getting File not found error when trying to preview in Captivate 8. Have used this before without an issue, so not sure why it's happening now.

    Please help me troubleshoot this. I cannot preview in either Chrome or IE. Thanks.

    Hello,
    Welcome to Adobe Forums !
    Try to run Captivate as Admin and then test the same behavior (Right click on Cp icon and click run as admin) .
    Is it possible for you to post a screenshot of your General preferences , GO to EDIT > Preferences> General.
    It seems that your project cache folder is located on a network drive.
    Thanks
    Himanshu

  • Getting file not found exception in managed server

    Hi,
    Working on jdev 11.1.1.3.0, ADF BC with Rich faces.
    I am downloading file from network file system, i am successfully download file in integrated weblogic server, the same application when i am trying to run with my managed server(DEV Server), i am getting error like
    ####<Aug 10, 2010 5:39:02 PM EDT> <Notice> <Stdout> <sunt2000-10.wfs.com> <wld1_ms1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <21291a4e37aed913:-38a2f9a1:12a5d38d756:-8000-0000000000000275> <1281476342286> <BEA-000000> <downloadLetters file name*://bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc*>
    ####<Aug 10, 2010 5:39:02 PM EDT> <Notice> <Stdout> <sunt2000-10.wfs.com> <wld1_ms1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <21291a4e37aed913:-38a2f9a1:12a5d38d756:-8000-0000000000000276> <1281476342313> <BEA-000000> <<Aug 10, 2010 5:39:02 PM EDT> <Warning> <org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener> <BEA-000000> <
    javax.el.ELException: java.io.FileNotFoundException: */bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc* (No such file or directory)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
    my file location is://bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc, i am getting the correct file location while reading in the managed bean, but the error is showing as /bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/ONDEMAND/Xyz.doc one / is missing, why it was happening in managed server.
    Can any one help me, what is the issue here.

    Thanks for your reply, Timo, and John, the same file downloading is working fine with my Integrated weblogic server, but the same application when i deployed in my DEV server i am getting the error.
    Code which i am trying to download file is
    public void downloadCardInserts(FacesContext facesContext,
    OutputStream outputStream) throws FileNotFoundException,
    IOException {
    // Add event code here...
    UploadedFile filename=(UploadedFile)browseFile.getValue();
    String fname=filename.getFilename();
    String fname1="//bwi-wfp-v01/Apps/SCII/TEST/LOG/Cards/RENEWAL/"+fname;
    System.out.println("file name11111:"+fname1);
    FileInputStream in = new FileInputStream(new File(fname1));
    byte[] buffer = new byte[1024];
    int bytes = in.read(buffer);
    while (bytes >= 0) {
    outputStream.write(buffer, 0, bytes);
    bytes = in.read(buffer);
    }

  • File Not Found error in Citrix Server

    I have a client who is running an application through Citrix that uses Crystal Reports, and the application is erroring out when trying to load a report, ONLY when the user does not have anything mapped as their C:\ drive.
    The default setup at this client was to have a P: drive as the main drive, and a Q: data drive for the users when they log into the Citrix box.
    When the users were tried to launch the application with this setup, they got the following error:
    System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
    System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load()
    If we have a drive mapped to C:\ for the user, the issue goes away.  I've looked through the Crystal Reports engine code, and with an embedded report in a .NET application (as is the case here) Crystal Reports writes the embedded report out to the temp directory before reading it back in again.  The failure seems to be either with reading or writing that temporary file.
    Anyone run into this before, or seen a solution?

    Hi, Craig;
    It sounds like you are running into this issue: [CitrixDrive|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333933383338%7D.do]
    You do not say which version of Crystal Reports you are using, so the registry key may be different for whichever version you have.
    Regards,
    Jonathan

  • Class Not Found Error while using dcm 9.0.3 jar

    I am getting the following exception while trying to stop an application deployed in oracle 10g app server using dcm utility.Can anyone please help me how to resolve this because it is very urgent for my work to progress
    Thanks in Advance
    04/10/18 07:34:37 A problem has occurred accessing the Oracle9iAS
    infrastructure
    database.
    Base Exception:
    java.lang.NoClassDefFoundError:oracle/ias/repository/SchemaManager
    04/10/18 07:34:37 Please, refer to the base exception for resolution, or
    call Or
    acle support.

    Hi Sujith,
    You should post that question here: Oracle Application Server - General
    - Don

Maybe you are looking for

  • How to know if an equipmnt is the highest of a given func. location

    Hello experts, Is there a way to know if a certain equipment is the highest in a given functional location. Also, is there an function module that gets the asset of a given equipment number. Again, thank you guys and take care!

  • Finding count of duplicates in a table

    Hi All, I want to know the count of duplicate rows in a table ? below is a sample for your reference. DB is oracle 10G 10.2.0.1 col A    col B    col C   col D 1         2        3       null 1         2        3       null 3         4        5      

  • Wrong Description in the sales Deal

    Hi Gurus, when VB23  executed after sales deal is created using VB21, we are getting wrong description for region at the customer level . On debugging we found that the standard program is passing only zone value into the table whereas it should also

  • IIS Plug for WLS 6.1 SP2: The specified procedure could not be found.

    I get an the following error message "The specified procedure could not be found." in my browser when trying to use the IIS-proxy plugin on WLS 6.1 sp2 Windows 2000 Has anyone else encountered this message? Any solutions? Regards, Jonas Klemming

  • Why I'm still using Chrome

    There are a few reasons, but the biggest is that search is still easier on Chrome than Safari.  On Chrome to search wikipedia, I type w+tab+foo+enter.  On Safari, I type foo... wait for a second+down arrow a few (but not consistent number of) times.