Unable to create a page which deleted from pages library

hi,
I want to create a page from my site collec's pages library. i have already created the page say one.aspx and i have deleted the same. and  again    i am trying to create the same page one.aspx. but i am getting 
serevr error  in appln.

Paul,
thanks for your  reply.
i have confirmed from the recycle bin also. 
even i hav tested it with a console appln also : here is the code :
namespace TestingConsoleApplication1
public class myProgram
public static void Main(string[] args)
myProgram objmyprog = new myProgram();
objmyprog.deleteonepage();
public void deleteonepage()
PublishingWeb publishingWeb = null;
using (SPSite oosite = new SPSite("http://srvr1/sites/OPTC"))
using (SPWeb ooweb = oosite.OpenWeb())
if (PublishingWeb.IsPublishingWeb(ooweb))
publishingWeb = PublishingWeb.GetPublishingWeb(ooweb);
// get the pages collection
PublishingPageCollection pages = publishingWeb.GetPublishingPages();
if (pages[publishingWeb.Url + "/Pages/EditMetadataPage.aspx"] != null)
// page exists so delete it
PublishingPage page = pages[publishingWeb.Url + "/Pages/EditMetadataPage.aspx"];
page.ListItem.Delete();
can you pls help.
scrn shot is attached.

Similar Messages

  • I am unable to create an Action to Export from .ai to .psd. The OPEN and EXPORT steps in the Action

    I am unable to create an Action to Export from .ai to .psd.
    The steps in the Action such as Open and Export seem inextricably linked to the file from which the original Action was recorded.
    The steps in the Action do not seem to be generalized commands that I can apply to any folder of .ai files.

    I'd recommend to exactly describe what you're doing. How did you set up your action? Which settings did you choose in the Batch Process dialog? What exactly went wrong? What did you expect instead?
    Whatever issues you're suffering from, there is no way to provide a hasty answer and no way to give an elaborate answer without knowing the details.

  • HT201365 Hello Apple, I'm having a problem with activating my iPad 4. I created iCloud account which differs from Apple account but I now forget my iCloud password. How can settle it ? Thank you so much

    Hello Apple, I'm having a problem with activating my iPad 4. I created iCloud account which differs from Apple account but I now forget my iCloud password. How can settle it ? Thank you so much.
    Lydang
    <E-mails Edited by Host>

    Hello Apple, I'm having a problem with activating my iPad 4. I created iCloud account which differs from Apple account but I now forget my iCloud password. How can settle it ? Thank you so much.
    Lydang
    <E-mails Edited by Host>

  • 1 Page(s) Deleted 1 Page(s) Added...Why?

    Hi all,
    this is my first post in the forum and i hope someone can help me.
    I'm developing a tool in Objective-C which produce pdf digital signature in the PADES format. The signature is added as as revision, redefining/creating the opportune objects (Acroform, annot, SigField etc.).
    The original file is (One_Sign.pdf) signed using Acrobat standard 9.0
    The output file is (Two_Sign.pdf) signed using my tool
    The signature seems ok but Adobe reader invalidate the first signature telling that de document has modification between the signature (1 Page(s) Deleted 1 Page(s) Added)... obiusly i didn't any modification
    Can some one help me to understand this error?
    Maybe the original file is usig Cross-references stream instead of classic xref table while in the revision i use classic xref table?
    Regards
    Luigi
    http://dl.dropbox.com/u/3995257/PDF/One_Sign.pdf
    http://dl.dropbox.com/u/3995257/PDF/Two_Signs.pdf

    Hi lrosenth,
    thanks for the reply, i'm implementing PADES part 3 and 4 in objective C.
    As you suggest, to solve the problem the first step is to write the code for the cross-reference stream in the updates and not use the xref table.
    Concerning the pages, i had to redefine (17 0) and (21 0) in order to add the annotation. For other PDF documents that was not a problem. Why it is a problem with this file?
    Regards
    Luigi

  • If I am using pages and deleted my page bu mistake how do I go back? I have not saved or deleted the page.

    If I am using pages and deleted my page by mistake how do I go back? I have not saved or deleted the page.

    You have deleted your page, but you have not deleted your page?
    Which is it?
    If you never saved it it is gone. If you saved it in Lion (OSX 10.7) with Pages 09 v4.1, there should be versions available when you mouse overv the document name at the top of the window.
    Peter

  • Can we copy back songs from iPhone to iTunes library, once if deleted from iTunes library ?

    can we copy back songs from iPhone to iTunes library, once if deleted from iTunes library ?

    Have you not got a backup of your content ? iTunes will only copy back purchases that you made from Apple. For music from other sources you will need to find a program from another source which can copy them back from the phone - if you do a search on google you might find some. Or depending from where you got them from can you re-download them from those sites ?

  • I have just got iTunes match. It appears that since joining and starting it some tunes have been deleted from my library. They are shown in the listing but iTunes can no longer locate the files. Any suggestions?

    I have just got iTunes match. It appears that since joining and starting it some tunes have been deleted from my library. They are shown in the listing but iTunes can no longer locate the files. Any suggestions?

    If they are showing in the Videos app with a cloud then go into Settings > iTunes & App Store on your phone and set Videos (under the 'Show All') heading 'off' - you might (depending upon which country that you arein) have a similar button for music and the Music app.

  • Deleting from iTunes Library and Computer

    I have alot of music in my library that I would also like to remove from my computer. I know that when you select a song and press the delete key that i prompt pops up asking you if you want to delete the song from your computer as well as your library...for some reason i think i may have clicked the "don't show me this again tab" and now when i delete a song from my library it only gets deleted from the library. If I want to delete it from my computer I have to go and search for the file in the folder where it is stored...this is a royal pain in the butt because sometimes music files aren't labeled conveniently. So my question is : Is there some way that I can turn that prompt back on so that I can delete songs from my computer and iTunes library alot easier and faster? Any insight would be greatly appreciated.
    HP Tablet PC   Windows XP  

    Do you keep your songs in the iTunes Music folder or do you use another folder of your own making? iTunes will delete songs from the library and move them to Trash only if they are in the iTunes Music folder. (iTunes will ask if you want to trash the file if this is the case, it doesn't trash it automatically). If your songs are kept outside of this folder then deleting only removes the reference to the song from the library and you have to go to the folder they are located in to trash the file itself.
    Message was edited by: Zevoneer

  • With iOS 6 on my 4th gen iTouch I am finding I no have to delete the playlist from my iTouch, not the when I sync. Now the paylist is being deleted from my library as well. What am I doing wrong?

    With the new iOS 6 I have to use on my old iTouch (4th gen) instead of deleting a playlist thru the sync, I was instructed to delete it on the device. Now when I sync I am finding the playlist has been deleted from the library as well. I just want it off teh device, not erased. What am I doing wrong?

    See these previous discussions:
    Waiting applications: Apple Support Communities
    Downloading apps stuck on waiting...: Apple Support Communities

  • How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well?

    How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well, I keep deleting stuff from iTunes to try and free up some space only to find the file still in the library?

    It depends upon what preferences settings you use.  Most people use default settings so when you delete an item it asks you if you want to get rid of the file too.
    If iTunes absolutely refuses to get rid of the file (I have never heard of this by the way) you can always go to the media folder or wherever the file is located and drag it to the trash yourself.

  • I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not  delete them from the phone when deleted from the library.

    I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not delete them from the phone when deleted from the library. I have replayed the podcasts over and over and they still won't delete. Podcasts are WSJ Tech briefings.

    This happens to several of my podcasts whenever an updated iOS comes out. You can delete the episode directly from the phone by swiping it from left to right. That seems to fix the issue (they drop off the phone and dont reappear on iTunes). It's as if iTunes stops tracking the play count for some shows.
    Hope this helps!

  • Cant print from my usb HP 1050 printer can print a test page but nothing from pages, desktop  can print from iPhoto's, reset printer. reinstalled printer, this is with the latest 10.9.3, can't prnt all via network to a brother 3045cn?

    Tried all the printer uninstalled and re enstalled,, i can print test page but nothing from Pages , Or any text  from desk top, can print from iphoto's.
    Can print via Network to a Brother HL-3045cn from Pages and all Text, the Hp Prniter was working till i upgraded to 10.9.3?

    Reset your printing system, as per > OS X Mavericks: Reset the printing system

  • How do I restore purchased songs that I previously deleted from my library and icloud?

    How do I re-download purchased song that I previously deleted from my library and icloud?

    Go to the iTunes Store and click on "Purchased" then on the next screen click "Not in my library".   You should be able to select it from there.

  • Unable to create a Site Content in Web Page Composer

    Hi All,
    I am new to WPC and would like to explore more on the same. I tried following some blogs inorder to create and publish Web Pages.
    I was stuck at a point where we need to create a site content. I guess all the permissions required to access each folder is properly set.
    When I tried to create a content like for example an article... A window pops up which says please select a document type and I dont have any option to select whereas I have a cancel and next button at the bottom of the screen. When I click next nothing happens.
    Did anyone went through this issue? What am I doing wrong? Did I fail to set some role to the author creating content?? Author has wpc_editor_role though.
    Regards,
    Rekha Malavathu

    Hi Sandeep,
    The popup window (which I suppose is an XML Editor) doesnt have any UI Element to select when I try to create any content... may it be an Article, Linklist, etc...
    I am using WAS 2004S SP 14. As I mentioned, all the xml and xsl files are available in the folder and even in the KM Configuration.
    My problem is, I am unable to create a content as the popup window is blank... No UI Element to select or enter.
    Regards,
    Rekha Malavathu

  • Cannot use jstl tag for jsp page which generated from Human Task

    Hi
    Plz help me.
    I have tried to using jstl in jsp which generate from Human Task and I deploy it to server( by ant on Jdev ) to see task detail in Oracle Worklist application. But when i submit task and then I access to worklist to see task detail, the error has show in page that "OracleJSP: An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param debug_mode to "true" to see the complete exception message. " .
    I access server to see application.log to see error and I see error show "workflowform: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: /Header1.jsp: Line # 3, <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> "
    How do I fix this error?
    PS. I tried to us jstl because I need to connet to database which jstl tag(sql) if somebody has another solution for connect database in task detail page, Please help suggest me.
    Thanks
    user520932

    Is the jstl tag libray loaded in the appsserver?
    Can you use jdbc connection like
    DataSource ds = ic.lookup("java:comp/env/jdbc/myDB");
    Connection con = ds.getConnection();
    DataSource ds = (DataSource) org.apache.derby.jdbc.ClientDataSource()
    ds.setPort(1521);
    ds.setHost("localhost");
    ds.setUser("APP")
    ds.setPassword("APP");
    Connection con = ds.getConnection();
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html

Maybe you are looking for