'My Application Page' is not allowed here because it does not extend class 'System.Web.UI.Page'

I have a custom SharePoint 2010 solution that includes an aspx page. The aspx page in is in the /layouts folder within the solution and I created it by just adding an application page to the solution. I am trying to create a parent-child relationship between
two different lists in SharePoint. From the parent I have a custom button on the ribbon that creates a child item with the ID of the parent stamped on it.
The page is just a processing page that forwards on parameters from the parent to the new child item. (i.e. the ID value)
The code generated when I add the aspx page is below:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server"> Processing Page </asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" > Processing Page </asp:Content>
The code behind is as follows:
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.Utilities;
using System.Reflection;
namespace MY.Solution.Layouts.MY.Solution
public partial class processingpage : LayoutsPageBase
protected void Page_Load(object sender, EventArgs e)
try
//Get a reference to the SPWeb object
SPWeb oWeb = SPContext.Current.Web;
//Use the Parameters That Are Passed In
SPList thisList = oWeb.Lists[new Guid(Request.QueryString["List"])];
SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"]));
sContentType = thisItem["ContentType"].ToString();
sContentTypeID = thisItem.ContentTypeId.ToString();
if (sContentType == "Some Content Type")
sContentTypeID = "";
sAIID = thisItem["ID"].ToString();
//Redirect to newform.aspx with the Appropriate parameters.
Context.Response.Redirect(oWeb.Url + "/Lists/Blist" + "/NewForm.aspx?AIID=" + sAIAuditID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
else if (sContentType == "Some Content Type")
sContentTypeID = "";
sAIID = thisItem["AIID"].ToString();
//Redirect to newform.aspx with the Appropriate parameters.
Context.Response.Redirect(oWeb.Url + "/Lists/AList" + "/NewForm.aspx?AIID=" + sAIID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
else if (sContentType == "Some Content Type")
sContentTypeID = "";
sAICID = thisItem["AICID"].ToString();
//Redirect to newform.aspx with the Appropriate parameters.
Context.Response.Redirect(oWeb.Url + "/Lists/CList" + "/NewForm.aspx?AICID=" + sAICID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
else
LoggingService.LogError("MY.Solution - Processing Page", "No Applicable Content Type Found.");
catch (Exception ex)
LoggingService.LogError("My.Solution - Processing Page", ex.Message);
finally
//DO SOME FINAL THINGS HERE WHEN REQUIRED.
In the page I need to use Request.QueryString to get the values from the URL. But when I deploy the solution and load the page I get the error:
'MY.Solution.Layouts.MY.Solution.processingpage' is not allowed here because it does not extend class 'System.Web.UI.Page'.
When I change the line:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
to inherit as follows:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" MasterPageFile="~/_layouts/application.master" %>
it does not work either.
If I change it to inherit like below:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="System.Web.UI.Page" MasterPageFile="~/_layouts/application.master" %>
it also does not work.
What does this error actually mean?  And why doesn't the default code generated by Visual Studio work?

@NadeemYousuf I have tried this too and it didn't work.  
What does the error even mean?  And why does the error appear with default Visual Studio code?  In my example I have just added a basic application page with no other code in it and it still does not work.

Similar Messages

  • Help!! Can someone help me with this message I keep getting before startup, please ?? Here it is: "/Library/Startupitems/Intego Backup Manager Pro" has not been started because it does not  have the proper security settings. Help!?!?

    Hello:
    I keep getting this message upon startup. Can't figure out how to address it. Here it is.
    "/Library/Startupitems/Intego Backup Manager Pro" has not been started because it does not have the proper security settings.
    Any suggestions?

    There's an invisible one name "Icon" according to the error message.
    Enable Finder to Show Invisible Files and Folders
    Open the Terminal application in your Utilities folder.  At the prompt enter or paste the following command line then press RETURN.
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall Finder
    To turn off the display of invisible files and folders enter or paste the following command line and press RETURN.
    defaults write com.apple.finder AppleShowAllFiles FALSE
    killall Finder
    Alternatively you can use one of the numerous third-party utilities such as TinkerTool or ShowHideInvisibleFiles - VersionTracker or MacUpdate.
    First, make invisible files visible. Find the invisible file in that folder and remove it. Please be sure you are looking in the /Library/StartupItems/ folder. There is another one in the /Home/Library/ folder. Be sure you look in the right one.

  • The list of extensions for InDesign now have a yellow triangle warning symbol in front of a good many of the extensions and when moused over i get one of two messages:  "Extensions may not function properly because it does not meet the dependency conditio

    The list of extensions for InDesign now have a yellow triangle warning symbol in front of a good many of the extensions and when moused over i get one of two messages:
    "Extensions may not function properly because it does not meet the dependency condition."
    OR
    Extension Status is not consistent with extension set configuration."
    The reason I opened the Extension Manager in the first place was to check to see if I had installed a third party extension.  And I was presented with these warning symbols.  I haven't added anything, I haven't done anything that would cause this.
    Does anyone know how to fix this???
    I am running OSX 10.9.5; Indesign CS6 version 8.0.2 And Adobe Extension Manager version  6.0.8.28.
    Thanks in advance!
    Nina

    Many InDesign pre-installed extensions (Those extensions you have immediately after InDesign installation) define dependency rules in their mxi files. Dependency means that one extension works well only if one or more other extensions are installed and enabled. If this condition is not met, the yellow triangle warning will be shown.
    You can select an extension with warning, click "Advanced" tag page in the lower right panel. You will see "This extension has dependency on: <extension name> ...". Check whether every extensions listed here are available and enabled. If not, enable them. Repeat these steps for all the extensions which have warning.

  • How do I deal with "StartUpItems if2k" has not been started because it does not have the proper security settings?

    Whenever I turn on or restart my MBP, a dialog box appears saying --> “/Library/StartupItems/if2k” has not been started because it does not have the proper security settings. 
    How can I fix this? 
    First, I searched online and found a site with a If2k_Remover_V2.zip file, but whenever I try to open the link, a page comes up saying,
    Forbidden
    You don't have permission to access /w/files/if2k/If2k_Remover_V2.zip on this server.
    Any thoughts on this?
    Also, I see the if2k folder in the Library/StartUpItems; is it something I can just drag into the Trash?  Or would that be a bad move?

    Did you ever figure this out? I just upgraded to Lion on my Air and I have the same issue.

  • Preview error message doc "can not be saved because it does not exist"

    I have had a long standing problem with Preview. I know it is odd but around closing time every day, two of my computers both running 10.6.8 get error message when trying to save a new document. The document will be open on my screen and when I go to save it I get the error message that the file can not be saved because it does not exist. Some background that may be relevent:
    The documents that I create all day long (for at least 6 years) are output from a 4D database. I generate a report from the db and it opens in Preview as a PDF file. All day long I have no issues with creating and saving these docs. Then around 4-4:30 when many people are getting ready to leave two of our computers (one iMac 3.06GHz Intel Core i3 and an older macMini) have this problem. All you have to do to fix it is quit Preview and regen the doc. Unfortunately we often lose a lot of work because of it. I've tried anticipating when it will happen and restart Preview before creating the new doc but that only works occasionally.
    I suspect that it has something to do with people logging out (I am usually the last to leave) and perhaps some shared application is effected. Everyone does have their own copy of Preview and we all use separate 4D clients. I have searched the internet many times. I have found some similar problems that people have had with this error but not related to my own. Unfortunately both Preview and "the file can not be saved because it does not exist" are very general terms that bring up all kinds of unrelated things.
    I was going to try to delete the Preview Prefs file and start again but I can not find a plist for preview or any other file that is clearly the prefs. Searched the internet for that too but did not find it.
    Does anyone have any ideas on this odd problem?
    Thanks for reading!
    Susan

    To answer your questions:
    Are you loading them by using Preview>File>Open, double clicking, or dragging the file? None of the above. I am loading them through 4D. I generate a report on 4D and it opens in Preview.
    When this happens can you Open another PDF from the same location? Yes, see details below.
    Are you loading these PDFs from the Server or another Mac? From the server. The file is created by a 4D client that resides on my disk but the 4D server which it references is on another computer. I am still shared to that computer and my connection to 4D has not changed as far as I can tell.
    I found today (details written in response to another question) that when this happens I can save the file to my own desktop but not to the server. It makes me think there may actually be something happening with my connection. I wonder does a server do any realigning (for lack of a better word) of connections as some connections are lost? While I had the document open (the one that I could not save to the server) I went to the server and opened a document that existed there. I saved the file back to the server with a different name. No problem, it worked just fine. Now I am really confused....
    1) A PDF file generated by 4D that has not ever been saved to the server can not be saved to the server via Preview around the time that other people are disconnecting from the server and shutting down their computers for the day. Quitting Preview and regenning the document fixes the problem.
    2) The same PDF file that can not be saved to the server can be saved to my own disk.
    3) Other files that are already existing on the server can be saved with a different name to the server at the same time as a new document can not.
    I wish I felt like I was getting closer to the answer...
    Thanks for thinking about it.
    Susan

  • Error message: ""/Library/StartupItems/IntegoCommon" has not been started because it does not have the proper security settings."

    I recently got a new Macbook Pro. I transferred my info from my old mac. Now when I startup my Macbook Pro, I get this error message "“/Library/StartupItems/IntegoCommon” has not been started because it does not have the proper security settings." I have run Disk Utility, but nothing has changed.
    Thanks!

    Uninstall any Intego junk according to its instructions and ensure that all its components have been completely eradicated from your Mac. You may need to download Intego's installer so that you can run its uninstaller.
    Intego will make your Mac run very poorly, unacceptably so. Never install such junk on a Mac.

  • When I turn on my computer I get the following error messages: Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings. Also for HP Trap Monitor.  How do I fix these?

    When I turn on my computer I get the following error messages:
    Insecure Startup Item disabled. "Library/StartupItems/HP IO" has not been started because it does not have the proper security settings.
    Insecure Startup Item disabled. "Library/StartupItems/HP Trap Monitor" has not been started because it does not have the proper security settings.
    How do I fix these?

    Library/LaunchAgents: com.promethean.activmgr.plist
    Library/LaunchDaemons: com.microsoft.office.licensing.helper.plist, com.promethean.activhardwareservice.plist
    Library/StartupItems: HP IO folder - HP IO, Resources, StartupParameters.plist
    HP Trap Monitor folder - HP Trap Monitor, Resources, StartupParameters.plist
    These are the system extension errors
    "/System/Library/Extensions/AppleGraphicsControl.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/AppleMux Control.kext"
    "/System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/ApplePoli cyControl.kext"
    "/System/Library/Extensions/BJUSBLoad.kext"
    "/System/Library/Extensions/EPSONUSBPrintClass.kext"
    I do not know what any of these do or how to fix them.  I have run multiple disk permission repairs & disk repairs.  The startup & system extension errors continue to come up.
    I even followed the directions to move HP IO & HP Trap Monitor to the trash, run disk permissions repair, put back in folder, then restart - and still am getting error message.

  • Everytime I start up my MacBook Pro, I get this message.  'Insecure Startup Disabled.'  "/Library/Startup items/HP Trap Monitor" has not been started because it does not have the proper security settings.

    Everytime I start up my MacBook Pro, I get this message.  'Insecure Startup Disabled.'  "/Library/Startup items/HP Trap Monitor" has not been started because it does not have the proper security settings.

    Update your HP Printer drivers/software at their website or uninstall using the developers method.

  • Chromedit will not be installed because it does not provide secure updates.

    Chromedit will not be installed because it does not provide secure updates.?
    what should i do to install this ?
    == This happened ==
    Just once or twice
    == i installing cromedit

    Did you install this version?
    ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • I can not download newer themes. It continues to say So and so could not be installed because Firefox does not have the needed files. Also.. For the newer version, where is the tools option?

    I am trying to download a new theme. Lava theme. However, it will not let me download that or any other theme for that matter.
    It continues to say, So and so could not be installed because Firefox does not have the needed files. What does this mean?
    Also, on the newer version.. I can not find the tools option..

    The Firefox versions which come with many Linux distros have the default Mozilla Firefox updater disabled and use the distros built-in updater.
    See this - http://linuxforums.org.uk/netbooks/install-firefox-6-on-an-acer-aspire-one-running-linpus-lite-linux/

  • Everytime I start up my macbook pro get error message Insecure Start Up Item Disabled /Library/Startupitems/HPTrapMonitor has not been started because it does not have the proper security settings

    everytime I start up my computer I get error message
    Insecure Start-Up Item Disabled
    "/Library/StartupItems/HPTrapMonitor" has not been started because it does not have proper security settings

    Hope info from this article helps.
    http://support.apple.com/kb/TS3493
    Best.

  • I am facing with the following problem whenever i start my laptop.Insecure Startup Item disabled."/Library/StartupItems/MobileBrServ" has not been started because it does not have the proper security settings.

    I am facing with the following problem whenever i start my laptop(Macbook Air,OSX 10.9.4).
    Insecure Startup Item disabled.“/Library/StartupItems/MobileBrServ” has not been started because it does not have the proper security settings.

    Open /Library/StartupItems/ folder and locate the file then remove it. You have installed incompatible software. If you don't believe this is correct, then determine what software installed the item and contact the developer for help.

  • What does the following message mean?"/library/startupitems/comapcpcpestart. has not been started because it does not have proper security settings."

    Often when I start up my computer I get the message that an item has not been started "comapcpcpstart" because it does not have proper security settings.

    "Insecure Startup Items folder" message appears after logging in

  • Can no longer message my friend,i do not get hers and she does not get mine

    I have been texting my friend always, since about a week, i can no longer send her a text on i message and i also do not receive the once she sends to me
    I can send messages to everyone else in my favorites,i tried everything I could think of, am  clueless and need help

    Thank you
    I tried that, did not work for me

  • ERROR ITMS-9000: "index_split_000.html(257): attribute "name" not allowed here; expected attribute "accesskey", "charset", "class", "coords", "dir", "href", "hreflang", "id", "rel", "rev", "shape", "style", "tabindex", "target", "title", "type" or "xml:la

    I have all these errors, can anyone help with this all means? trying to get my book published in iBooks. Nedd your help. Thanks, Jo
    ERROR ITMS-9000: "index_split_000.html(257): attribute "name" not allowed here; expected attribute "accesskey", "charset", "class", "coords", "dir", "href", "hreflang", "id", "rel", "rev", "shape", "style", "tabindex", "target", "title", "type" or "xml:lang"" at Book (MZItmspBookPackage)
    Use of the block quote element can cause ePubecheck to give the error "text not allowed here".  Text must not be alone inside of a body tag and if it is not enclosed in some other block level tag, this may lead to the error you are receiving.  

    I have all these errors, can anyone help with this all means? trying to get my book published in iBooks. Nedd your help. Thanks, Jo
    ERROR ITMS-9000: "index_split_000.html(257): attribute "name" not allowed here; expected attribute "accesskey", "charset", "class", "coords", "dir", "href", "hreflang", "id", "rel", "rev", "shape", "style", "tabindex", "target", "title", "type" or "xml:lang"" at Book (MZItmspBookPackage)
    Use of the block quote element can cause ePubecheck to give the error "text not allowed here".  Text must not be alone inside of a body tag and if it is not enclosed in some other block level tag, this may lead to the error you are receiving.  

Maybe you are looking for

  • Problem in PPOSE

    When I am executing PPOSE transaction I am getting 'GETWA_NOT_ASSIGNED_RANGE' dump.Detailed dump : Runtime Errors         <b>GETWA_NOT_ASSIGNED_RANGE</b> Date and Time          03/27/2006 17:40:38 ShrtText Field symbol has not been assigned. What hap

  • FORCED DATA PACKAGE WITH PHONE UPGRADE

    I have been a verizon customer since cell phones were cool.  I started with a bag phone in my car.   I have 5 verizon phones.   Four on a family plan and one through a work plan.   My son wanted to upgrade his phone today which is eligible for early

  • Problems With Zen Touch Turn

    After just recently purchasing a Zen Touch in December 2005, I already have problems with it. I have never dropped it or hit it. I plugged it in to re-charge one day after using it and when it was done charging I turned it on, used it for 5 minutes t

  • I just upgraded to Lion on my work computer.

    I just upgraded to Lion on my work computer. Can't connect to iCloud with my @me.com account. I go to system preferences iCloud and put in my email and password and tries to move my MobileMe account to iCloud. Which I had already done. And then show

  • Problem with Synchronized block

    Hi, For me synchronized key word is not working (?) :-( Here is the example : I have three classes package sample.test; public class TestThreadMain {      public static void main(String[] args) {           Thread t1 = new ThreadOne();           Threa