Problem when adding ascx user control in the MasterPage: Parser Error Message: The referenced file ... is not allowed on this page.
Hello,
I have to maintain a SharePoint 2010 project, in which a TopNavigation User Control for SiteCollection is registered in the MasterPage in this way:
<%@ Register TagPrefix="ABC" TagName="TopNavigation" src="~/_layouts/ABCApplication/MainSite/Navigation/TopNavigation.ascx" %>
<asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
<asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
<ABC:TopNavigation ID="TopNavi" XMLDataLocation="/_layouts/ABCApplicatopm/MainSite/TopNavigation.xml" IsRoot="true"
runat="server" />
</asp:ContentPlaceHolder>
</asp:ContentPlaceHolder>
When I deploy the SiteCollection, the TopNavigation user control is working correctly. Unfortunately when i modify the masterpage over SharePoint Designer, the following error message comes allways, regardless of the art of changes i did in the MAsterPage
( even if I open the MasterPage, add an space and do save/close the MasterPage).
"Problem when adding user control in my custom master page, Parser Error Message: The referenced file '/_layouts/Navigation/TopNavigation.ascx' is not allowed on this page."
Any ideas?
Hi Simon,
When we use UserControl in SharePoint Page or MasterPage, and the UserControl is kept in any folder other than ControlTemplates, we will got the error. Here is an article about this issue and provided the solution:
http://sharepoint-tina.blogspot.com/2009/07/referenced-file-pathxyzascx-is-not.html
The solution can also be used in SharePoint 2010.
Qiao Wei
TechNet Community Support
Similar Messages
-
The control type xyz is not allowed on this page. The type is not registered as safe.
Hi all,
I have a solution, say My.Solution, I have a project My.Project in that.In that project I have a few features.I added a visual webpart.In the properties of that, I can see that it has a safe control entry for that.I did not rename any namespace or class name.
I just added this webpart to a new feature(which has List Definition and instance) and deployed it.The class name of the visual webpart is Foo and this is in the namespace My.Solution.Foo.
I opened the sharepoint designer and edited the masterpage.I referenced this in masterpage as
<%@ Register TagPrefix="cus" Namespace="My.Solution.Foo" Assembly="My.Solution, Version=1.0.0.0, Culture=neutral, PublicKeyToken=87a45275f2ea36e3" %>
and I added this to the masterpage as
<cus:Foo runat="server" id="customvisualwebpart"/>
After I save in the designer and refresh the browser, I get the error,
The control type 'My.Solution.Foo.Foo' is not allowed on this page. The type is not registered as safe.
I checked the .webpart file and it has the namespace, My.Solution.Foo.Foo. The .spdata has a safecontrol entry too as
<SafeControl Name="SafeControlEntry1" Assembly="$SharePoint.Project.AssemblyFullName$" Namespace="My.Solution.Foo" TypeName="*" IsSafe="true" IsSafeAgainstScript="false" />
The assembly that contains the webpart is alread deployed to the GAC there.
The web.config for that in C:\inetpub\wwwroot\wss\VirtualDirectories\12345 does not have a safe control entry. I don't want to add it there manualy as I don't have access to web.config in prod
Can somebody tell me what is wrong and what I need to do to fix it?check you package file
http://sharepoint.stackexchange.com/questions/11524/the-type-is-not-registered-as-safe-when-trying-to-add-a-web-part-installed-by
Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010 -
I have downloaded a movie from ITunes. It shows up in my video app. When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded". Any advice on what I can do in order to watch this movie that I rented a couple of weeks ago?
Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.
-
I downloaded my CSDesignWebPremium and when I tried to mount the disk--an error message said "DesignWebPremium,_CS6_LS16.dmg" not recognized
(I am using a MAC 2.6 GHz Intel Core i7 (16GB 1600 MHz DDR3) OSX 10.7.5)Squasha9 it would appear that the DMG you downloaded is corrupted. Where did you download the installation files from? You can download a copy of the installation files from Download CS6 products.
-
emails in my 'trash' are being deleted after about 5 weeks, but I want to retain them. I have selected 'never' on the 'permanently erase deleted messages' option, so I'm not sure why this happening? any ideas?
iCloud emails in the Trash are deleted after 30 days on the website, and this over-rides the 'never' setting in Mail. There is no way of stopping this. (The Trash isn't really intended as a permanent storage area.)
Try this workaround. Go to http://www.icloud.com and go to the Mail page. In the sidebar, click on '+' to the right of 'Folders' to create a new folder; give it a suitable name.
Now click on the cogwheel icon at bottom left. At the bottom of the pane which opens, set the 'Move deleted messages to' drop-down menu to your new folder.
I'm not sure whether, when you delete messages in the Mail application, they will go to the Trash or your new folder - you'll need to experiment. I have a nasty feeling that Mail will simply move them to the Trash as before. If this is the case you will have to move them to your new folder manually - dragging messages directly to this folder rather than hitting the delete key will be the easiest way. -
Since I'd installed the new version of iTunes, iCal and Address book do not sync with my iPhone 3GS through iTunes anymore and I get an error message stating that iTunes can not sync with this iPhone. Was must i do to correct this issue and if i must, how dI reintall iTunes without loosing my content?
P.S. I am able to sync postcasts and music though!http://support.apple.com/kb/TS3694
http://support.apple.com/kb/TS3125
http://support.microsoft.com/kb/299357 -
Im trying to import a large amount of pictures to Iphoto. I have pleanty of space on my HD. But half way thru the transfer an error message comes up and says not enough disc space. How can I fix this?
I. I want to import 58.64 GB of Photos from an external HD
2. I have 278.28 GB space left on my HD
3. The exact error message goes like this......
Insufficient Disk Space
iPhoto cannot import your photos because
there is not enough free space on the
volume containing your iPhoto library
I Have researched this and most advice is to empty the iPhoto trash. I have already done this and it did not help.
Thank you for helping -
When trying to connect from iTunes to Airplay speakers I get error message “The network connection timed out” although some sort of connection is made as the speaker is turned on. Same thing with Apple TV. Is the distance between my PC and the speaker or the AppleTV the problem?
Hi whitwick,
If you are having issues with your network connection when attempting to use AirPlay, you may want to use the steps in this article to troubleshoot -
iTunes: Troubleshooting AirPlay and AirPlay Mirroring
http://support.apple.com/kb/TS5209
Thanks for using Apple Support Communities.
Best,
Brett L -
Attempted to update iTunes on January 23rd and it appeared to install properly. When I tried to open iTunes on January 24th, it would not open and gave me an error message that said "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 126)" I then tried to reintall iTunes and it again appeared to install properly but when it attempted to open, I was given the same error message.
Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
Let's try something relatively simple first. Restart the PC. If you're using Vista or 7,now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair". If you're using XP,head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (If you've got XP, although the procedure is for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever -
When trying to use MobileMe I am getting an error messgae: AppleSyncPref.exe - Entry Point not found Can anyone assist?
MobileMe no longer exists...that system was discontinued and merged into iCloud.
Your old MobileMe email addresses shoule still be valid, or convert into some form of user@ me .com or icloud . com. -
When i open firefox it comes up with an error message saying that it can not load the page
Any time I open Firefox an error message will appear saying that it's unable to connect. "Firefox can't establish a connection to the server at en-us.start3.mozilla.com."
== This happened ==
Just once or twice
== june 23, 2010 ==
== User Agent ==
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]] -
I had ITunes installed up n running last November. Few weeks ago I started getting error messages and said to reinstall ITunes to fix the problem. So I went to control panel and deleted all Apple related programs, quick time n Itunes and reinstalled them But I cannot down load Itunes I get another error message saying ITunes.Setup_exe. This file couldn't be downloaded. I have been trying for weeks now and I am desperated Please help me
See Troubleshooting issues with iTunes for Windows updates.
tt2 -
when trying to share my movie on Imovie i get the following error. "The project could not be prepared for publishing because an error occurred. (-108)"
any idea why this has happened? How do i rectify this?Hi
Error -108 memFullErr Ran out of memory [not enough room in heap zone]
Turn off - TimeMachine usually works - re-try.
(the Application down in the Dock - not the Device)
But this can mean many thing's - My first thought is
• Free Space on Start-Up hard disk. How much ? (other disks do not count)
Yours Bengt W -
Help !! I'm trying to un install and then re-install itunes. I get erroe message ~ the feature you are trying to use is on a network resource that is unavailable???? Any help would be great! TXs!
See if this previous discussion will help. It is markd as solved:
I am trying to uninstall itunes as it will not open error 7 (windows 126) so that I can reinstall but keep getting the message.. The feature you are trying to remove is on a network resource that is unavailable itunes.msi... Any suggestions anyone
It was the one with the green checkmark on the right side of this page. -
please help me i can open itunes because i get the error message above!!
hold down ALT + H click on check for updates, then update itunes, after that it will work.
Maybe you are looking for
-
Is there any way TODAY to download an iCloud Number document to use on my MacBook Pro's Numbers app? Yesterday (Wednesday, Sept. 17, 2014) I made some updates on an iCloud Numbers document that I use to share data between my Mac at work and my Mac a
-
The same Excel DATE.VALUE function in SQL
Hi, I need to convert a date in a number that Excel can recognize. I'm trying to do a SELECT (trunc(SYSDATE) - TO_DATE('1900-01-01', 'yyyy-mm-dd')) FROM dual And I retrieve this: 41014 But today in excel is 41016!! Why? There is a better solution tha
-
Down loaded Firefox but it won't connect to the internet
Hello I'm new to Apple, Safari is fine but it isn't recognised by an online application I need to use on a regular basis. I downloaded FireFox, my old browser, but it will not go online, it opens but the address bar says "Go to web site" I type in th
-
USB trouble on k8NGM2-NBP new build
board: msi k8NGM2-NBP cpu: amd 3800+ drives: single maxtor ide 80GB ram: OCZ platinum 2-3-2-5 PC3200 512MB x2 (1GB) (slots 1 &2) with the DDR voltage raised to 2.65+, detects at 400Mhz psu: Antec 450 from a Sonata II I get this board from www.m
-
My MacBook Pro DVD drive keeps spinning and looking for a disc when there isn't one.
My MacBook Pro disc drive keeps spinning and looking for a disc when there isn't one in there. The DVD application is closed and as far as I can tell, the eject button is not stuck. I've restarted, but the problem persists. Please help!