The Resource Cannot Be Found

feeling pretty foolish and frustrated at the moment. In CF Builder 2 I started a new project and placed it in a new directory under wwwroot.
A very simple hello world html file will run in Builder's preview but not in a browser. Another very simple cfm file will not run in either the Builder preview or in a browser. In any case where the page doesn't load I get "The resource cannot be found" error.
Other directories I have created off the webroot folder work fine but I don't know what is different here.
Using IIS in Windows 7, CF 9.
Any ideas?

ReadPDF rPDF = new ReadPDF();
Class myClass = rPDF.getClass();
ClassLoader loader = myClass.getClassLoader();
URL myURL = loader.getResource("PreviewForm1210.pdf");
String path = myURL.getPath();
path = path.replaceAll("%20", " ");
// Create a PdfReader instance
PdfReader r = PdfReader.fileReader(path);
// Create a PdfDocument instance with the reader
PdfDocument d = new PdfDocument(r);
// Get page count and display on console
System.out.println("Number of pages in PreviewForm1210.pdf is " + d.getPageCount());

Similar Messages

  • Server Error in '/' Application - The resource cannot be found

    Using VS 2008 with Framework 3.5, I built a web-service that runs perfectly on the development PC.  When I build and run the web service, it runs in a virtual port as "ASP.Net Development Server Port 49259".  All the methods will
    invoke no problem.  However, if I try bring up this web-service asmx page on another PC or the mobile app that is cradled to the development PC via USB, I get: Server Error in '/' Application. The resource cannot be found.  HTTP 404... 
    This app ran just fine back in October13 but I opened for further development over the weekend and I cannot work because of this.  I have updated PC and VS with latest updates (problem before & after updates).  Using 3.5 because I am using
    Windows Mobile 5.0 Clients.  I have searched the forum universe for the solution and have found many people with this error but with other platforms.
    I am using the DefaultApplicationPool and I made sure that the local security has READ access on the web service file folders. I hope this is something simple that I am missing.
    And help - grateful!

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    If you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET
    WCF, ASMX and other Web Services forum for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • When I try to log in to my BC account I get a message that says this"Server Error in '/' Application.  The resource cannot be found.  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its nam

    When I try to log in to my BC account I get a message that says this"Server Error in '/' Application.  The resource cannot be found.  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.   Requested URL: /Admin/Index2.aspx"
    Any ideas???

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.

  • The resource cannot be found in the classpath

    Hi All,
    I have a Java class and a PDF file in the same folder
    But the PDF file is not accessible by ClassLoader.getResource(), it returns null.
    What should I change to access the PDF file from within the Java class by ClassLoader#getResource() ?
    Any help is really appreciated.
    ReadPDF rPDF = new ReadPDF();
    Class myClass = rPDF.getClass();
    ClassLoader loader = myClass.getClassLoader();
    URL myURL = loader.getResource("PreviewForm1210.pdf");
    String path = myURL.getPath();
    path = path.replaceAll("%20", " ");
    // Create a PdfReader instance
    PdfReader r = PdfReader.fileReader(path);
    // Create a PdfDocument instance with the reader
    PdfDocument d = new PdfDocument(r);
    // Get page count and display on console
    System.out.println("Number of pages in PreviewForm1210.pdf is " + d.getPageCount());

    ReadPDF rPDF = new ReadPDF();
    Class myClass = rPDF.getClass();
    ClassLoader loader = myClass.getClassLoader();
    URL myURL = loader.getResource("PreviewForm1210.pdf");
    String path = myURL.getPath();
    path = path.replaceAll("%20", " ");
    // Create a PdfReader instance
    PdfReader r = PdfReader.fileReader(path);
    // Create a PdfDocument instance with the reader
    PdfDocument d = new PdfDocument(r);
    // Get page count and display on console
    System.out.println("Number of pages in PreviewForm1210.pdf is " + d.getPageCount());

  • ALSB XQuery resource cannot be found

    Hi!
    I have a problem, that for no apparent reason, my ALSB environment "crash".
    All of a sudden the Xquery resource cannot be found. You cannot export jar from resource and
    you cant do a XT transformation, because of the resources cannot be found. The typed show empty.
    This have occurred before, and I solved it by deleting my workspace and starting a new from scratch. But
    i feel that this is not the right way to solve it every time it appears. I have tried doing a clean, build and everything.
    Have some one ever got this problem, or have I missed something?
    Using Eclipse based BEA Workshop Studio version: 1.1 (build: 1090602)
    Edited by: user12665375 on 2010-feb-23 13:21

    Hi!
    Thanks for the fast reply.
    We are using the Eclipse based BEA Workshop Studio , version 1.1 (build: 10900602)
    Regards
    Afram
    Edited by: user12665375 on 2010-feb-23 13:18

  • HT201210 When I try to restore my ipod, I get a dialogue box that pops up that says the restore has failed because the requested resource cannot be found. What is the problem, and how can I fix it?

    When I try to restore my ipod, I get a dialogue box that pops up that says the restore has failed because the requested resource cannot be found. What is the problem, and how can I fix it?

    Hi IG viper,
    Placing your iPod into recovery mode should allow you to successfully restore the device.
    You might see these error messages if any of these are true:
    Your device has a beta version of iOS.
    You're trying to install an earlier version of iOS (downgrading).
    Your device has unauthorized modifications to iOS, also called "jailbreaking."
    Use recovery mode to restore your device to the latest version of iOS.
    Resolve iOS update and restore errors
    http://support.apple.com/en-us/TS3694
    Sincerely,
    Allen

  • PL/SQL reporting problem -  "The webpage cannot be found" error

    Dear All Expert,
    I'm here having a problem on generating apex report using PL/SQL. "The webpage cannot be found" error appear when "Search" button pressed.
    I'm appreciating if anyone can give their idea on this issue.
    PL/SQL will be fired when "Search" button pressed.
    My PL/SQL code as below;
    DECLARE
    lv_desc CLOB:='';
    lv_note_desc varchar2(4000);
    lv2      CLOB;
    lv_title varchar2(2000);
    lv_ti          varchar2(10);
    lv_tg          varchar2(10);
    lv_tr_cnt     integer:= 0;
    lv_ti_code     varchar2(6);
    lv_age          number(6):= 0;
    lv_note_flag     varchar(1);
    fv_note_flag varchar2(6);
    fv_ti_code varchar2(6);
    ti_code varchar2(20);
    ti_name varchar2(50);
    ti_tm_code varchar2(6);
    ti_test_grp varchar2(6);
    note_desc varchar2(4000);
    ti_unit varchar2(20);
    ti_insurance_code varchar2(20);
    ti_price number(14);
    ti_sex varchar(1);
    ti_age varchar(10);
    ti_tr_desc varchar(30);
    ti_lolimit number(10);
    ti_uplimit number(10);
    ti_plolimit number(10);
    ti_puplimit number(10);
    lv_hkey          number(10):= 0;
    lv_found     varchar2(1):= 'N';
    lv_itpv     varchar2(4000);          
    lv_lolimit     char(15);
    lv_uplimit     char(15);
    lv_tr          char(15);
    lv_tc          char(30);
    CURSOR READ_C1_REC IS
    select ti_code, ti_name, ti_tm_code, ti_test_grp,ti_unit, ti_itpv_flag,ti_attached_cmt
    from test_item
    where ti_code like NVL(:P11104_TI_CODE,'%')
    and ti_test_grp like NVL(:P11104_TG_CODE,'%')
    and ti_code not like '0MB%'
    order by ti_code;
    C1_REC READ_C1_REC%ROWTYPE;
    CURSOR READ_C2_REC IS
    select tr_sex_code,tr_ageto,tr_agecode,tr_range_desc,tr_mrr_desc,tr_normal_lolimit,tr_upper_uplimit,tr_panic_lolimit,tr_panic_uplimit
    from tr_range
    where tr_ti_code = lv_ti_code
    order by tr_ageto asc,tr_sex_code desc;
    C2_REC READ_C2_REC%ROWTYPE;
    cursor READ_C3_REC is
    select tivh_key
    from test_itpvh
    where tivh_ti_code = ti_code
    order by tivh_efd desc;
    C3_REC READ_C3_REC%ROWTYPE;
    cursor READ_C4_REC is
    select tivd_lolimit,tivd_uplimit,tivd_value,tivd_rr_desc
    from test_itpvd
    where tivd_hkey = lv_hkey
    order by tivd_seqno;
    C4_REC READ_C4_REC%ROWTYPE;
    BEGIN
    lv_title := '<div style="overflow: auto;height: 500px; width: 1000px;"><table style="width: 500px" cellpadding="0" cellspacing="0"><thead><tr><th>Code</th><th>Name</th></tr></thead>';
    htp.p(lv_title);
    OPEN READ_C1_REC;
    LOOP
    FETCH READ_C1_REC INTO C1_REC;
    EXIT WHEN READ_C1_REC%NOTFOUND;
         lv_note_flag := 'N';     
    fv_note_flag := 'N';
         fv_ti_code := c1_rec.ti_code;
    ti_code := c1_rec.ti_code;
    ti_name := ' '||c1_rec.ti_name;
    ti_tm_code := c1_rec.ti_tm_code;
         ti_test_grp := c1_rec.ti_test_grp;
    lv_desc := '<tbody><tr><td><input type="hidden" name="f01" value="'||fv_ti_code||'" /></td>'||
    '<td><input type="text" name="f02" size="20" maxlength="20" value="'||ti_code||'" /></td>'||
    '<td><input type="text" name="f03" size="50" maxlength="50" value="'||ti_name||'" /></td>'||
    '<td><input type="text" name="f04" size="6" maxlength="6" value="'||ti_tm_code||'" /></td>'||
    '<td><input type="text" name="f05" size="6" maxlength="6" value="'||ti_test_grp||'" /></td>';
    if c1_rec.ti_itpv_flag = 'Y' then
         lv_note_flag := 'Y';
         open read_c3_rec;
         loop
              fetch read_c3_rec into c3_rec;
              exit when read_c3_rec%notfound;
              lv_hkey := c3_rec.tivh_key;
              lv_found := 'Y'; exit;
         end loop;
         close read_c3_rec;
    if lv_found = 'Y' then
              lv_lolimit := 'Lower limit'; lv_uplimit := 'Upper limmit';
              lv_tr := 'Result'; lv_tc := 'Comment';
              lv_itpv := 'INTERPRETED TEST RESULT'||chr(10)||'-----------------------'||chr(10)||lv_lolimit||lv_uplimit||lv_tr||lv_tc||chr(10);
              open read_c4_rec;
              loop
              fetch read_c4_rec into c4_rec;
              exit when read_c4_rec%notfound;
              lv_lolimit := to_char(c4_rec.tivd_lolimit,'999990.999');
              lv_uplimit := to_char(c4_rec.tivd_uplimit,'999990.999');
    lv_tr := c4_rec.tivd_value;          
              lv_tc := c4_rec.tivd_rr_desc;
              lv_itpv := lv_itpv||chr(10)||lv_lolimit||lv_uplimit||lv_tr||lv_tc;
              end loop;
              close read_c4_rec;
         end if;
    note_desc := lv_itpv||chr(10)||chr(10);
         end if;
         if ltrim(rtrim(c1_rec.ti_attached_cmt)) is not null then
         lv_note_flag := 'Y';
         note_desc := note_desc||'ATTACHED COMMENTS'||chr(10)||'-----------------'||chr(10)||ltrim(rtrim(c1_rec.ti_attached_cmt))||chr(10);
         end if;
    begin
         select unit_name into ti_unit
    from unit_tbl
    where unit_code = c1_rec.ti_unit;
         exception when no_data_found then
    ti_unit := null;
         end;
    lv_desc := lv_desc ||'<td><input type="text" name="f06" size="20" maxlength="20" value="'||ti_unit||'" /></td>';
    begin
         select imh_insurance_code, imh_curr_p1 into ti_insurance_code, ti_price
         from item_masterh
    where imh_code = c1_rec.ti_code;
         exception when no_data_found then
         ti_insurance_code := null; ti_price := null;
         end;
    lv_desc := lv_desc ||'<td><input type="text" name="f07" size="20" maxlength="20" value="'||ti_insurance_code||'" /></td>'||'<td><input type="text" name="f08" size="14" maxlength="14" value="'||to_char(ti_price)||'" /></td>';
    lv_ti_code := c1_rec.ti_code;     
    lv_tr_cnt := 0;
    lv2 := '<table width="100%" border="0" bgcolor="#009900" cellspacing="0">';
    OPEN READ_C2_REC;
         LOOP
         FETCH READ_C2_REC INTO C2_REC;
         EXIT WHEN READ_C2_REC%NOTFOUND;
         lv_tr_cnt := lv_tr_cnt + 1;
    if c2_rec.tr_agecode = 'Y' then                    
    lv_age := c2_rec.tr_ageto / 365;
         elsif c2_rec.tr_agecode = 'M' then
              lv_age := c2_rec.tr_ageto / 30;
         else
              lv_age := c2_rec.tr_ageto;
         end if;
         ti_sex := c2_rec.tr_sex_code;
    ti_age := lv_age||c2_rec.tr_agecode;     
    ti_tr_desc := ' '||c2_rec.tr_range_desc;
         ti_lolimit := c2_rec.tr_normal_lolimit;
         ti_uplimit := c2_rec.tr_upper_uplimit;
         ti_plolimit := c2_rec.tr_panic_lolimit;
         ti_puplimit := c2_rec.tr_panic_uplimit;
    if c2_rec.tr_range_desc = 'MRR' then
         lv_note_flag := 'Y';
         note_desc := 'MRR DESCRIPTION'||chr(10)||'---------------'||chr(10)||c2_rec.tr_mrr_desc||chr(10)||chr(10)||note_desc;
         end if;
    if lv_note_flag = 'Y' then
    fv_note_flag := 'Y';
    end if;
    lv2 := lv2 || '<tr><td><input type="text" name="f09" size="1" maxlength="1" value="'||ti_sex||'" /></td>'||'<td><input type="text" name="f10" size="10" maxlength="10" value="'||to_char(ti_age)||'" /></td>'||'<td><input type="text" name="f11" size="30" maxlength="30" value="'||ti_tr_desc||'" /></td>'||'<td><input type="text" name="f12" size="10" maxlength="10" value="'||to_char(ti_lolimit,'99990.999')||'" /></td>'||'<td><input type="text" name="f13" size="10" maxlength="10" value="'||to_char(ti_uplimit,'99990.999')||'" /></td>'||'<td><input type="text" name="f14" size="10" maxlength="10" value="'||to_char(ti_plolimit,'99990.999')||'" /></td>'||'<td><input type="text" name="f15" size="10" maxlength="10" value="'||to_char(ti_puplimit,'99990.999')||'" /></td></tr>';
         END LOOP; lv2 := lv2||'</table>';
         CLOSE READ_C2_REC;
    if lv_tr_cnt = 0 then
         if lv_note_flag = 'Y' then
    fv_note_flag := 'Y';
    end if;
         end if;
    lv_desc := lv_desc||'<td><input type="hidden" name="f16" value="'||fv_note_flag||'" /></td>'||'<td><input type="hidden" name="f17" value="'||note_desc||'" /></td>';
         lv_desc := lv_desc||'<td>'||lv2||'</td></tr></tbody>';
    htp.p(lv_desc);
    END LOOP;
    CLOSE READ_C1_REC;
    htp.p('</table>');
    END;
    Thanks you very much in advance!

    First thing I'd say is that you're code doesn't compile:
    lv_title := '   //  <----Secondly, does no-one use comments anymore? Isn't this drilled into people in programming classes at colleges? There's a whole bunch of code there but not much in the way of explanation as to what you are trying to achieve. It might make perfect sense to you now but try going back to it in a year and see if you can untangle it's purpose.
    Thirdly, is there a specific reason why you've chosen to manually generate a report in PL/SQL, rather than delegating it to a report region? I understand that for particular formatting requirements (denormalised data, cells-within-cells etc), it is occasionally necessary to go to these lengths but I can't help but feeling a well-written query could simplify a lot of this, particularly the references multiple cursors.

  • "Cannot open Help. The file cannot be found." Error on Treo Pro

    I can see a support item listed on my phone when I try to search the Help files, but when I click on that item, it gives me an error message, "Cannot oepn Help.  The file cannot be found."
    I am trying to block telemarketer calls, and it looks like there is a way to do it.  Two help references come up - "Setting Options for rejecting calls" and "Blocking Calls."  I just can't access them.
    Thanks in advance!
    Shan
    Post relates to: Treo Pro T850 (Sprint)

    From the Owners Guide http://www.palm.com/us/support/handbooks/treopro/t​reoproT850E_UG.pdf But I dont think its what your looking for.
    Setting options for rejecting a call  By default, when you reject an incoming
    call, the caller is sent to voicemail. You can
    change this setting so that, in addition to
    sending the caller to voicemail, a text
    message opens. This message contains
    default text and is addressed to the caller
    so that you can send the message right
    away. You can also change the default text
    of the message.
    1 Press Start and select Settings.2 On the Personal tab, select Phone .3 Select the Advanced tab.4 To turn on the text message feature, check the Reject call with text
    message box.
    5 (Optional) To change the content of the message, select the text in the box and
    enter the text you want.6 Press OK . 

  • I deleted iTunes when it said "iTunes could not back up iPhone because the backup could not be saved on the computer"and now it wont let me install it again and keeps saying "itunes cannot be installed because the file cannot be found in the cabinet "

    iTunes told me to delete my backup folder when I was having problems syncing my phone to my computer. After that it wouldn't work at all. After trying and trying I deleted iTunes when it said "iTunes could not back up iPhone because the backup could not be saved on the computer"and now it wont let me install it again and keeps saying "itunes cannot be installed because the file cannot be found in the cabinet ". What the **** itunes? Nothing is working!!
    I wanted to update my iTunes so I could sync my phone to my computer and update my phones software so I can use the latest apps that need a 4.2 or higher.
    This is not fun for me so if anyone knows what I can do to fix this please help. Is it possible to download the "cabinent file" with the lastest iTunes?
    Thank you.
    -Kait
    My phone is the iPhone4 and my computer is a Windows Vista

    I doubt that corrupt files are the problem. It is more likely a space or permissions issue. Is the hard-drive on which iTunes is stored close to capacity? Do you (or the particular user profile you have logged on with) have the requisite permissions to save to that drive?
    Otherwise, do you get an error code? This might point us in the right direction.

  • Message'there was an error opening this document.The file cannot be found'

    Using xp home and when I click to download the pdf file, it will give 3 options been 'open'/'save'/?. When I choose the 'open' option, it will give me the above message "there was an error opening this document.The file cannot be found"
    owever if I choose to "save" and I will be able to open the file and read it. In this pc its using Adobe Reader 8.1.2 with a patch. It was working fine prior to this sudden occurance of the error.
    Strangely I have another pc with the same specification, I was able to choose "open" and be able to read the file. Can anyone help to resolve the issue by using the "open' option instead of "save, then open". Greateful for your prompt response.

    Fyi, in addition to my earlier post, the other pc is using Adobe 8.1.1 and no other patch. I was trying to find 8.1.1 version but could not find a trust worthy site to load from. Do you think the error caused by using the 8.1.2 version? Thanks

  • Safari cannot open the page because the server cannot be found

    Trying to open Outlook Webmail App from Ipad 2 and am receiving the Error Message "Safari cannot open the page because the server cannot be found.
    I have tried resetting my ipad 2 to no avail.  Internet connection is working and am able to get into other apps/sites.  Read older posting that this could be a DNS issues???
    Help?

    The only other thing I can think of is to try a device reset (be sure and also close off all running apps beforehand):
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.

  • HT201343 My MBP is Early 2011 but dunno why cant use mirroring with apple TV, the icon cannot be found

    My MBP is Early 2011 but dunno why cant use mirroring with apple TV, the icon cannot be found. So cannot use mirroring.
    I have follow trouble shooting , they recommend to go system preference -> display , thus can find out the mirroring icon if no mean it doesnt support. But according to the web, Early 2011 MBP should be able to use, dunno why.

    Just realise I havent updated my OS to mountain lion and this is the reason why I cannot use mirroring before ^^
    Thanks all

  • IPod cannot be updated because the file cannot be found

    Just purchased a new 5th gen. 30gb iPod, and when plugged into my laptop & iTunes, I get the error message that "so and so's iPod cannot be updated - the file cannot be found." Then the iPod drops out of itunes, but stays in My Computer. Any way to fix this?

    I just dealt with the same problem. None of the answers people gave to the problem worked!
    Whatever it is that you're trying to put into your iPod... make sure that the file is located in your "My Music" file first.
    Basically, when you get that message double check and if what you selected isn't in "My Music" drag and drop into it and try again.
    I hope that helped!
    I know... so frustrating.

  • "The file 'Acknowledgements.rtf' cannot be installed because the file cannot be found in the cabinet file 'iTunes.cab'.  Is there something wrong with the latest installer? (11.3.1)

    Getting error message as shown: "The file 'Acknowledgements.rtf' cannot be installed because the file cannot be found in the cabinet file 'iTunes.cab'.  Is there something wrong with the latest installer? (11.3.1)

    Installs fine for me, so I'd guess you got an incomplete or corrupt download. See the Further Information area of Troubleshooting issues with iTunes for Windows updates for direct links and download a fresh copy of the installer.
    tt2

  • Safari cannot open the page because the server cannot be found (Cellular Data)

    Hi there.
    I'm having some trouble loading a website (that I've built) from Safari on my iPhone via cellular/4G, as the topic states, it comes up with the error:
    Safari cannot open the page because the server cannot be found
    All other websites load normally, it just seems to be my specific site that won't load.
    The website opens in Safari on my phone if I'm connected to wifi but it doesn't load when using cellular data. It opens from computers and I've tested it on different phones/networks (for instance, it works in Chrome on a friends Samsung Galaxy Ace 3 using EE 4G). I have an iPhone 6 with iOS 8.1.2. I'm on EE 4GEE.
    I think it might be something to do with DNS either from EE's side, or the DNS settings I've used in cPanel for the website...
    Any thoughts / suggestions on how I can fix this issue?
    Thank you in advance for your help!
    Rob.

    Thanks for the update. You might also consider using iTunes and Internet Radio:
    Not all radio stations are available though, since they want you to see advertisements in addition to listening to them

Maybe you are looking for

  • Need help Please can't upload videos on facebook

    I'm try to up load video on facebook for 3 days now and it shows that My video was encoding, but now it's gone , every time video is 48.5 MB , 1 min and 40 sec it's small formate (.m4v) the problem with my macbook not facebook as i tried to upload wi

  • Unknown Computer in shared area

    I'm probably posting this in the wrong place, so forgive me. I took my MBP into the Apple store to be repaired, and now I notice that when I look at the shared pane when I click on my macintosh HD, i see a computer there that wasn't there before. Whe

  • How to transfer photos between albums?

    I am a new user, I loaded many old photos and want to move them into smaller albums,

  • Save non flash based data using Lifecycle DataServices ES2

    I currently have some automation setup, where I need to write some data to the database. This is done outside of the Flash project.  Is there a way to tie into Lifecycle Data Services to save a value object to the database by just using Java? Thanks

  • Billing Type is not picked up in Intercompany Invoice

    Hi, The scenario is Intercompany STO. Here the flow is Purchase Order-Outbound Delivery- Invoice.  No sales order. I have two billing types, proforma invoice and Intercompany invoice. Both are copy of standard types. I have maintained copy control fo