~masterurl/default.master doesnt work?!

Hi,
i have a DocumentTemplate and store instances of this in a documentLibrary.
The DocumentTemplate has this Page def.:
<%@ Page Language="C#" CodeBehind="SimpleArticlePage.aspx.cs" Inherits="MyCustom.ArticlesManagement.SimpleArticlePage" MasterPageFile="~masterurl/default.master" %>
If i try to open one of those files the error "File not found" is displayes because he tries to find the masterPage here:
http://localhost/Lists/ArticleList/default.master
Why the page doesnt replace the "~masterurl/default.master" with the right url?
What do i need to do so the url will be replaced?
cheers

Hi,
According to your description, my understanding is that the error
 “File not Found” exists using dynamic code "~masterurl/default.master".
Please check the URL of the MasterPageFile about the system pages, such as AllItems.aspx. If it is different from yours, please change it.
Please create a new page via SharePoint Designer and check the URL of the MasterPageFile. If it is different from yours, please change it.
Please move the document template to another library or another library in another SharePoint site collection and test whether this issue occurs.
Please change the dynamic token to other formats “~site/ActualFileName.master, 
~sitecollection/ActualFileName.master” and test whether this issue occurs.
Best Regards,
Dean Wang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • What exactly does the MasterPageFile="~masterurl/default.master" in the page mean?

    Hi Everyone,
    I want to create a site definition that use my own master page in the homepage (VS2012 + SP2010). When the site definition is created, there are already codes in the default.aspx page that simply display a string in the body. And the page refers to a
    master page at ~masterurl/default.master.
    My question is, where exactly does ~masterurl point to? I want to use my own master page to replace it, but when I change it to any other location rather than
    ~masterurl/default.master, it gives me an error saying file not found.
    So could anyone tell me how can I use my own master page in the default.aspx page? I tryied to place my master page file in the LAYOUTS folder and refer to it using
    MasterPageFile="_layouts/site.master" but it does not work, either.
    Thanks in advance.
    Cavendish Feng

    Taken from http://msdn.microsoft.com/en-us/library/office/ms476046(v=office.12).aspx
    Dynamic token "~masterurl/default.master"
    This token references a master page from a content page by using the MasterPageFile attribute together with the value of the MasterUrl property.
    As an example, in the following page directive, <%@ Page MasterPageFile="~masterurl\default.master"%>, the token "~masterurl/default.master" is replaced at run time by the value in the MasterUrl property.
    This property contains the server-relative full path to the master page, including file name.
    Notice the article is talking about these dynamic tokens which are automatically substituted at runtime. Which is what you're seeing.
    Static tokens are explained here; http://rehmangul.wordpress.com/2009/12/15/master-pages-in-sharepoint/
    basically you have to be careful what path you're specifying, depending on the location of the page.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • TV@nywhere Master doesnt work on win98

    Hi
    When i start my InterVideo WinDVR 3 or 2  on win 98 i got each time this message while ots work fine win2000
    WINDVR caused an invalid page fault in
    module KERNEL32.DLL at 016f:bff9db61.
    Registers:
    EAX=c00301a8 CS=016f EIP=bff9db61 EFLGS=00010212
    EBX=0211ffbc SS=0177 ESP=0201ff7c EBP=02020218
    ECX=00000000 DS=0177 ESI=00000000 FS=38bf
    EDX=bff76855 ES=0177 EDI=bff79050 GS=0000
    Bytes at CS:EIP:
    53 8b 15 e4 9c fc bf 56 89 4d e4 57 89 4d dc 89
    Stack dump:
    plz help me
    Thanx

    the problem could be cauzed by some codecs ... do you have any codec packs installed ?
    also under no circumstance think about win me ... it`s the worse microsoft ever produced ...
    you could try win2k or xp ... they all work okay

  • Change default.master creates a mess

    Guys, I appreciate your thoughts and help in advanced.
    What I'm trying to accomplish here is to change the master page file for some SharePoint pages to a different .master
    file. I'm using SharePoint Designer 2010 to customize SharePoint 2010.
    Here are the steps that I did:
    1. Went to _catalogs/masterpage/Forms/AllItems.aspx and downloaded
    default.master page.
    2. Renamed the default.master to hes.master (Note:
    I haven't changed anything in the file, but the renaming)
    3. Uploaded the file back to _catalogs/masterpage/Forms/AllItems.aspx
    4. Went to SharePoint designer and opened the page I wanted to change the master page and found this declaration at the top of the page
    MasterPageFile="~masterurl/default.master"
    5. I changed it to be
    MasterPageFile="~masterurl/hes.master"
    When I did that I hoped that it will pick the new .master page but instead the designer gave me an error saying that the master page cannot be loaded and it offered an option to locate a proper master page file
    6. So I used the SharePoint option 'Attach a different Master Page' and I browsed the new master page (hes.master)
    7. This should suppose to attach the same master page (since it is only a copy of the
    default.master)
    8. The master page appeared BUT the structure is so messed up and not all the styles as they should be.
    9. I noticed that the new value for the property MasterPageFile is now like this:
    MasterPageFile="../../_catalogs/masterpage/hes.master"
    Now I have these questions:
    1. How can I fix this issue? and if possible someone can explain why did this happen?
    2. What is '~masterurl' that is in MasterPageFile
    property? and why SharePoint designer wasn't able to locate the file since both .master files were in the same location? and Why the value completely changed to something looks like a relative path instead of using the variable '~masterurl'?
    Appreciate your help in this.
    Regards, Himyar.

    Hi Himyar,
    ~masterurl/default.master---> means it will take master page which is set  by you as "set as default"
    ~masterurl/custom.master---> means it  will take master page which is set by you as "set as custom"
     So above file path doesn't locate physical path of any masterpage it is just a notation  of which kind of master page is applied to your page.
     because of  this only you are seeing different  path like below:
    MasterPageFile="../../_catalogs/masterpage/hes.master" 
     you just set your custom master page as custom  by clicking "set as custom" tab in designer  and change url in your desired page like 
    ~masterurl/custom.master
    For more clarity check this link.
    Hope it helps.:)
    Whenever you see a reply and if you think is helpful, click &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

  • Please help i can't share my project I did try in all of them and it doesnt work it apears like that........ The share operation Master File has failed The operation could not be completed because an error occurred when creating frame 608 (error -1). and

    I did try in all of them and it doesnt work it apears like that........
    The share operation Master File has failed
    The operation could not be completed because an error occurred when creating frame 608 (error -1).
    and i dont know what to do plese hlp me....
    Re: when i try to share my project to quicktime aroun 50% appears error -1 and i can't share it what to do please help 

    Double post…

  • I purchased master collection cs6 in december 2013, but it reverted back to trial and serial number doesnt work anymore

    i purchased master collection cs6 in december 2013, but it reverted back to trial and serial number doesnt work anymore

    CS6 or Creative Cloud Reverts to Trial Mode
    http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • MSI GF4 Ti-4200 doesnt work with WindowsXP

    I can't get the MSI display tools to work - it crashes,
    the vbios.dll doesnt load, it also crashes.
    the tv in doesnt work ,it crashes
    the tv out doesnt work ,it crashes.
    all the supplied software also crashes "application has encountered an error and cannot continue. sorry for any inconvenience"
    the intervideo software (windvr, wincoder, winproducer) and MSI PVI software all crashes as well.
    what's the deal with this stuff?  ?(
    I have a Dual AMD athlon Tyan thunder k7 motherboard,
    MSI Ti-4200-VTD video card and MSI tv anywhere card.
    is there any resolution for this?

    I'm sorry gfilitti if I don't have my system listed, but I thought my question was pretty simple...
    Has ANYONE been able to make the InterVideo WinProducer 2 software, that comes with the retail version of the MSI G4Ti4200-VTD64 card, work successfully under the Windows XP Home or Pro operating system?
    If the answer is YES, then I will begin investigating why my system can't.
    If the answer is NO, then I only ask for other people's recommendations of what software WILL work in place of that. I NEED those functions to work. That's why I paid extra for the VIVO.
    All we've heard so far in this thread are NO votes. I would like to see just how widespread this is. If I can find ONE person who claims it works fine on his/her computer under Windows XP, then my NEXT question would be if they had to do anything different to make it run, or was it just a straight install? Did they add the program patch available from the MSI website? See where I'm going with this?
    If you would REALLY like my system details, here ya go...
    ========================================
    CASE - ANTEC SX1000II with 4 internal 8cm fans
    POWER SUPPLY - ANTEC 400W "True Power" w/dual fans
    MOTHERBOARD - MSI 645E MAX (MS-6547 Ver 2.0)
    BIOS - AMI Ver 3.2 (10/21/02)
    PROCESSOR - PENTIUM 4 2.0aGHz (Rev/Step 2/4(9) )
    MEMORY - 1 Corsair 512MB DDR RAM (Winbond chips)
    DISABLED IN CMOS - FLOPPY Controller, AUDIO Device, MODEM Device, Serial Port B, MIDI Port, and GAME Port
    AGP SLOT - MSI G4Ti4200-VTD64 - IRQ 16
      DRIVER: MSI 31.00
      CAPTURE DRIVER -  nVidia 1.08
    SLOT 1 - Creative SB0090 Audigy Sound Blaster - IRQ 17
      DRIVER - Creative 3.0.0.18 9/20/02
    SLOT 1 - Creative SB1394 FireWire Controller - IRQ 18
      DRIVER - MS 5.1.2535.0 7/1/01
    SLOT 2 - NIC #1 D-Link DFE-530TX Ethernet - IRQ 18 (LAN)
      DRIVER - REALTEK RTL8139 5.396.0530.2001
    SLOT 3 - Adaptec 29160N Ultra160 SCSI Controller - IRQ 19
      DRIVER - Adaptec 6.2.0.0 3/19/2002
    SLOT 4 - EMPTY
    SLOT 5 - MSI SYSTEM D-Bracket
    SLOT 6 - NIC #2 NetGear FA312 Ethernet - IRQ 18
      DRIVER - Windows XP Pro native driver
    NOTE:
    NIC #1 is for home LAN
    NIC #2 is for Alcatel SpeedTouch External DSL modem
    SCSI DRIVES:
    ID 0 - COMPAQ (Seagate) ST318451LW, 18GB, 15K RPM
    ID 1 - QUANTUM Typhoon Atlas II, 18GB, 10K RPM
    ID 2 - Seagate ST39103LW, 9G, 10K RPM
    ID 3 - Plextor CD-RW PX-W1219S
    ID 4 - Toshiba DVD-ROM SD-M1201
    ID 5 - EPSON Perfection 1640SU Flatbed Scanner
    ATA/ATAPI DRIVES:
    Primary Master - No Connection
    Primary Slave - No Connection
    Secondary Master - MATSHITA LS-120 Ver F523
    Secondary Slave - No Connection
    USB DEVICES:
    DIAMOND SupraMAX 56K V.92 Model:SUP2920
    Generic Flash Memory programmer and other assorted USB devices on occasion.
    MONITOR - HITACHI SuperScan Pro 21 w/5-BNC input
    ========================================
    BTW, I would think when investigating a program's FLAT refusal to run, that the MOST important things aren't listed in these signature files. It has to do with what ELSE is running at the same time. Which services are running and which are NOT? What memory resident programs are loaded at boot-up? Any service packs installed? How about any security patches from Microsoft? Which anti-virus software (if any)? Which DirectX version? Personal firewall? Etc., etc.
    Granted, the hardware DOES have a factor, but I feel all of these are MORE important factors than the speed or brand of a persons hardware. I look at the signitures more as bragging rights than anything else.
    Now, this is just my opinion and may not reflect the feelings of the more sane people around me.  
    Cheers!

  • Canon Scan to Folder (Server 2008 R2) suddenly doesnt work

    Canon Scan to Folder (Server 2008 R2) suddenly doesnt work
    We have a few Canon Multi Functionals who have been able to Scan to Folder to our Server 2008 R2 File Server.
    Since last Windows Updates(13 sep 2012) it doesnt work anymore...
    Nothing has changed to the folders or shares. Shares are like:
    \\fs01\scans\IT
    Shared folder is \\fs01\scans
    Share permissions are Full for Everyone
    On the folder IT, only the IT department and the Canon Scan user have full conrol...
    When I turn off the Windows Firewall on the FS01, it works.
    Then i get a SMB = OK on the Multi Functional.
    When I turn on the WIndows Firewall, i get a SMB = NG on the multifuntional
    I checked the rules, and everthing concerning File and Printer Sharing is allowed...
    Can anyone please think what to do?
    Because  really don't want to go on with the Windows Firewall Disabled.
    The Endpoint Protection 2010 Anti Virus is installed on the FS01, but since disabling the Windows Firewall works, i don't think the Anti Virus has anything to do with it.
     Update: I just tried it to two other  Servers 2008 R2 (with also the Windows Firewall on) and it works! So there is something wrong with that one Server... But as far as I can see, the firewall has all File and Printer Sharing things open...
    And when i log on with the Canon Scan user on a PC i can browse to them locations just fine. I also reset the firewall setting to default and reopened the printers and sharing settings

    The canon surelly do a check on another port that is not allowed in your firewall.
    Run a wireshark on that server. Filter ip.src == ip of a canon.
    Check on what port the canon talk to your server and open it.
    Last option, does your printer are in another vlan/lan ? Maybe a firewall rule that does not see the printer in your local lan. Thus the rule might block it now.
    MCP | MCTS 70-236: Exchange Server 2007, Configuring
    Want to follow me ?  |  Blog:
    http://www.jabea.net | http://blogs.technet.com/b/wikininjas/

  • Airport setup asst. doesnt work.  Is there way to use Windows to add airpor

    Airport setup asst. doesnt work. Is there way to use Windows to add airport express to my current linksys network so that my iTunes will play through my stereo?
    Previously the air-assit recognized the air-exp unit but kept asking for a password to continue. I tried passwords like admin and public but nothing worked. Then Windows network connections kept trying to connect my laptop to the internet using the air-exp. Don't remember what I did to fix that problem but now my laptop doesn't try using it to connect me to internet anymore.
    However, now air-asst. doesn't read the air-exp anymore. Windows network connections DOES read it now but doesn't try to use it anymore to connect me to the internet.
    I have a linksys WAP and separate linksys router. If memory serves, when I firt got the air-exp about 6 months ago I could not connect either and Apple tech support had to help me. I think, but not sure, they had me use Windows to add the air-exp to my wireless network. Also if my memory serves me, but not sure, I had to type in either some IP or MAC addresses in order to get the air-exp to connect to my existing network. I DO remember thinking after it was finally working that "Wow, this is definately NOT a plug and play thing." It wasn't very easy to set up.
    I lost my laptops wireless connection last week and couldn't connect to my network and had to call linksys tech support. They had me input a new IP and DNS address because somehow my laptop "lost" the previous ones. Since then I have not been able to use my air-exp to connect to my stereo.
    I have called Apple tech support but since my 90 days is up they want to charge me $49.95 for up to five days worth of tech support. Which I think is a rip off becau linksys will help you out at anytime for fee but that's a topic for another discussion group. Common Apple, how about a $10 charge for one day of tech support, or even just 15 minutes worth to get my gear working again?
    Anyway, if anyone knows of any on-line walkthroughs of how to deal with these airport express set-ups or problems please let me know. Or, of course if anyone can walk me through this that would be even better. THANKS

    Thank you for your help.
    When I run air-util a window called base station chooser comes up and all the fields are blank. When I push "re-scan" nothing happens. When I push "other" a window pops up asking for IP address and password. I typed in the IP address given to me from Linksys tech and tried to move on but it came back asking me to fill in the password. I tried the default linksys password "admin" but it came back with an error.
    Do I hard (factory) reset the air-express by simply pushing the reset button or do I have to hold it in while I plug it in or simply push the button for a certain length of time?
    Thanks again.

  • ITunes doesnt work with my iPod!!! Help please!

    ok...i have tried to plug my iPod into my computer lately, and iTunes doesnt recongnize that my iPod is plugged in!!! i have pretty much de-bugged the problem...its not any of my USB ports b/c other hardware (digital camera etc...) work in them...and its not the computer...but it could possibly be iTunes. if i delete and re-install my iTunes software do i loose all my songs? and w/out loosing all my songs etc is there anything i can do to fix this?
    i have also tried resetting my iPod multiple times, but that doesnt work so...the only other thing i can think that could have happened is: i got an iHome a few months ago, and ever since that i have had the problem...so that could have messed something up...can u help?

    Does the text on your iPod show up grey in iTunes? Grey text when you look at the content and lock symbol at the bottom of the screen simply shows that your iPod is set to "automatically update songs and playlists". . If you want to access your iPod directly, play it through your iTunes, connect it to a second computer etc. you just need to change the update method to "Manually manage songs and Playlists" in the iPod preferences. For more detail see this tutorial: Managing Your Songs Manually
    One thing to be aware of with manually updating is that the iPod also has to be manually ejected before the "Do Not Disconnect" message will go away. Safely disconnect iPod
    For info: iPod 101
    The iPod offers three ways to transfer music from your computer. You can select one of the following update modes from the iPod Preferences menu in iTunes (Edit=>Preferences=>'iPod' tab):
    1) Automatically update all songs and playlists. This is the default mode, in which your entire music library, including playlists, is automatically synced to your iPod. If the music library on your computer exceeds the iPod storage capacity, you are prompted to select a different update method.
    2) Automatically update selected playlists only. With this option, iTunes automatically copies the playlists you have selected to the iPod when you connect it to the computer.
    3) Manually manage songs and playlists. You can also choose to transfer music to the iPod manually. This allows you to drag and drop individual songs and playlists from iTunes to the iPod.

  • My enter key doesnt work

    heyy!! my issue is abit different. Before I used to hold alt down and use the character that i needed. Now i have to let go of the key and type. Its very annoying. I have tried wipe and master reboot!! Nothing works.. Also to top it all.. my enter key doesnt work... im constantly texting and bbm'in but i cant use enter i have to use the centre button!!! im soo frustrated. my phone is out of warranty...  .. im very upset.. i used to be inlove with my phone!! its a curve 8520 

    Just plugged my wired keyboard in and it works. very strange, seems very unlikely that the only broken key is the enter key mhm. expect the unexpected. will contact the apple support on monday cause i live in germany and they dont work 24/7

  • Enter key doesnt work in SQL developer

    enter key doesnt work in sql developer so cant creat new line in code.
    enter key works fine when use word etc
    Can I fix this in the SQL developer settings somewhere.?
    thanks in advance.

    Hi Sue,
    Just to let you know, your solution worked... My SQL Developer got into a state again where the backspace key stopped working... doing 'load preset, default' on the accelerators did fix it. Strange, because I don't use/configure the accelerators at all. Thanks for that, and hopefully this will be permanently fixed in the next version.
    To echo what I think someone else was trying to say... I also have the issue that sql developer will 'lock up' or get bogged down sometimes, when i'm just typing away in the worksheet. Any keystrokes I entered in though will always get entered into the worksheet, once sqldeveloper 'unfreezes' itself. Of course, this issue is an annoyance factor only (little bit of impact on productivity though), but hopefully it gets fixed as well.

  • [gnome-unstable] ibus doesnt work

    The new intergrated ibus in gnome-shell (which is one of my favorite features of 3.6) doesnt work. I can add the ibus keyboard (ibus-pinyin or Chinese (Pinyin)) in the system settings, but the settings opiton is grayed out (even though I know it has them), and when I switch to it and type all that comes out is qwerty (my default layout is dvorak)
    this is relevant entries from  my .cache/gdm/session.log
    (gnome-settings-daemon:649): keyboard-plugin-WARNING **: Couldn't set IBus engine: Operation was cancelled
    (gnome-settings-daemon:649): keyboard-plugin-WARNING **: Couldn't set IBus engine: Operation was cancelled
    (gnome-settings-daemon:649): keyboard-plugin-WARNING **: Couldn't set IBus engine: Operation was cancelled
    (gnome-settings-daemon:649): keyboard-plugin-WARNING **: Couldn't set IBus engine: Operation was cancelled
    (gnome-settings-daemon:649): keyboard-plugin-WARNING **: Couldn't set IBus engine: Operation was cancelled
    when runing ibus-setup (after installing python2-xdg which it requires, but doesnt pull in from pacman, I get)
    nathan@obadiah> ibus-setup                                                    ~
    Traceback (most recent call last):
      File "/usr/share/ibus/setup/main.py", line 545, in <module>
        setup = Setup()
      File "/usr/share/ibus/setup/main.py", line 75, in __init__
        self.__init_ui()
      File "/usr/share/ibus/setup/main.py", line 238, in __init_ui
        self.__init_hotkey()
      File "/usr/share/ibus/setup/main.py", line 84, in __init_hotkey
        values = dict(self.__config.get_values("general/hotkey"))
    AttributeError: 'NoneType' object has no attribute 'get_values'

    ibus-anthy from the community repo doesn't work with ibus from gnome-unstable, either.
    i copied some ibus PKGBUILD files from the aur and changed them to use the new ibus/anthy 1.4.99.20121006 from http://code.google.com/p/ibus:
    ibus: http://pastebin.com/aSUSJmQj
    ibus-anthy: http://pastebin.com/mP15BunH
    seems to works fine now (using gnome 3.6 btw).

  • Copied webtemplate doesnt work

    Hi
    I have copied default webtemplate 0ANALYSIS_PATTERN  to ZANALYSIS_PATTERN. I have made ZANALYSIS_PATTERN as my default web template in the RSCUSTV27 and restarted J2EE sever from SMICM . but still  I can't see the changes being reflected in the web report after I made the change.I still see that the default template 0ANALYSIS_PATTERN is being used.
    how ever it works in the DEV system and when i transported to QA system it doesnt work . does anyone have any solutions. or suggestions.
    we are currently on SAP BW -701 level 8 ; SAP BI Cont- 704 level 8.
    Thanks

    Hi,
    Please correct the supportdesk tool RED signal and restart the system it should resolved your issue.
    This issue is may be related to user mapping to down properly with portal.
    Thanks,
    Venkat

  • Volume button doesnt work

    well my volume doesnt work on my 4th generation ipod touch.
    nothing happens when i press on the volume button, it doesnt do anything, the volume doesnt go up or down,
    i go to the music app and theres no volume slide option, its just not there, only the play/pause button and previous and next are there
    what should i do? cz theres no volume????? =(
    plzz help

    sorry but i actually need to use the volume buttons Jujusoccer11
    i've tried resetting already and restoring from back up already but still has the same problem lllaass,
    i'll try restoring to factory defaults now, i hope  it works

Maybe you are looking for

  • App store wont let me install "Pages" onto my macbook pro

    I brought an app recently from the app store called "pages". I am trying to install this app onto my MacBook Pro but whenever i try and install it, it comes up as "An error as occurred" How do i fix this?

  • I updated to Acrobat Pro 9.5.5, now I want to delete the bad update.

    I updated to Acrobat Pro 9.5.5 and it won't print a pdf, all it does is stall at the very beginning of the printing and hangs up. Adobe: How Do I Delete this bad update? I need to use this as a pdf maker. Thanks for your help.

  • Link to network file

    Alright, i am gonna be as brief and clear as i can be with this one: We have a file on a windoze server (the file is accessible and shared through windoze) that i need all of us to get to and modify. This has been done on the windoze pc's now i want

  • Issue while mail triggering using function module SO_NEW_DOCUMENT_SEND_API1

    Hi all, I have requirement to send mails from BADI.For that i used following function modules-SO_NEW_DOCUMENT_SEND_API1 and SO_NEW_DOCUMENT_ATT_SEND_API1, Both of these two function module requires to use COMMIT WORK statement. But if we use COMMIT W

  • How to use Russian fonts?

    Hello everybody! Is there any change to use russian fonts in Labview 7. I am using Windows XP+SP1. I know that it's possible, somehow, but not managed to solve problem yet. Neuvos