Authorization error when accessing an aspx page

  • Authorization error when accessing an aspx page George2

    I am using SharePoint Server 2007 Enterprise with Windows Server 2003 R2 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5 + IIS 6.0.

    I have put a simple aspx page into layout folder (the code is very simple, just redirect to another page, and I write inline script code in, here is my code, and I met with unauthorized error (403) when I select to browse the page from IIS 6.0 manager.

    I am not in Active Directory or Windows domain environment. I have enabled permission to anonymous users for the whole SharePoint site. Any ideas what is wrong?

    <%@ Page Language="C#" AutoEventWireup="true" %>
    <script runat="server" type="text/C#">
    protected void Page_Load(object sender,EventArgs e)

  • Possibly a permissions thing on the file system as a result of moving the file from some other location, which might have moved the original Access Control List along with that.

    Try this:

    1. open notepad
    2. paste page contents into notepad
    3. save in layouts as a .aspx file

publishing-site 403
Related questions and answers
  • Possible Duplicate: How to use JavaScript and CSS in a web part? I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. I have the following code which works correctly in ASP.Net (aspx) and I want to implement the same function in a WebPart and deploy into a page of SharePoint publishing portal site. Any ideas how to implement? My major confusion is how to deal with the code in the head part of the following code? Any reference code or document? Here is the aspx code I am using, &lt;!doctype

  • (I have also asked this question on Stack Overflow) I have a SharePoint feature I'm using to add some custom aspx files to the Pages Library. When I activate the feature, I can visit the pages in-browser and they are visible in SPDesigner, but when I "View All Site Content" they are not there. Why is this the case? The Feature's Elements File: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt...;/Module> &lt;/Elements> The Aspx File: &lt;%@ Page language="C#" Inherits="System.Web.UI.Page,System.Web,Version=,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" MasterPageFile

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + JavaScript (jQuery). I met with the following...." The function I developed works fine besides the security warnings. I am using IE 8. Any ideas why there is security warnings and how to resolve? Here is the code I added to BlueBand.master to refer the js/css files in head section. I am developing a webpart which such script files will impact (i.e. my webpart will generate a div called "tabs" which such below scripts will impact). Any security issues

  • Hiding Left Nav user1155

    ; &lt;/tr> &lt;/table> &lt;/asp:ContentPlaceholder> On the pagelayouts I don't want this on I have this: &lt;asp:Content ContentPlaceHolderId="LeftNavTableCell" runat="server"&gt...-quickLaunch"&gt; &lt;asp:ContentPlaceHolder id="PlaceHolderQuickLaunchTop" runat="server"&gt; &lt;SharePoint:UIVersionedContent UIVersion="3" runat="server"&gt; &lt;ContentTemplate> &lt;h3 class="ms-standardheader"&gt;&lt;label class="ms-hidden"&gt;&lt;SharePoint:EncodedLiteral runat="server" text="&lt;%$Resources:wss,quiklnch_pagetitle

  • Hello I really need help with this... , I am using Sharepoint 2007. I have the 'collect data from user' action in a workflow - which generates a custom form within the workflow folder. The form...:EcmaScriptEncode($ListName),'};'))}"&gt;&lt;/input>&lt;/td> I need to add javascript within the DataFormWebPart so I can update another form field when the user clicks the 'Complete Task' button. I... on this? I have pasted the form's DataFormWebPart below for reference: Many Thanks! &lt;WebPartPages:DataFormWebPart runat="server" IsIncluded="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="0

  • I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working correctly for the Content Editor Web Part (based on sample code), however when I replace the Content Editor Web Part definition with one for my own web part I get the following error... --------------------------- Things I have tested: I can successfully upload my .webpart definition to the web part gallery, and the web part works. I can successfully add the web part to the page

  • I am using Microsoft Search Server 2008 (based on SharePoint Server 2007) + C# + .Net 3.5 + VSTS 2008 + ASP.Net to develop a web application which invokes Search Server 2008 Web Services when a button in the html page is pressed. I am using the following code to query content from Microsoft Search Server 2008. My question is how to display the search results from the DataSet retrieved? I did... = "Microsoft"; //The XML string containing the query request information //for the Web service string qXMLString = "&lt;QueryPacket xmlns='urn:Microsoft.Search.Query'&gt

  • Has anybody upgraded an old custom field type to use the new XSL transform in SharePoint 2010? I have a multi-column field type, and want the Display pattern to render the 2nd "column", which..., but that ends up rendering the actual anchor tag, as opposed to a clickable hyperlink: &lt;a href=""&gt;;/a> So then I tried creating a XSL transform, since that is supposed to be the new and improved way of doing this. Unfortunately, I can't get that to work either. I am getting the same thing I got using the RenderPattern. I'm no XSL expert, so can anyone

  • I have an odd thing happening that I can't explain and I wondered if anyone could offer some insight. I have a site with x number of Picture Libraries, and I'm using a DVWP to display a list of all of the libraries with links to them, call it an automatic navigation list so that when you make a new one it automatically shows up on the list. The issue I have is that the ListProperty.Title value is coming back, but the ListProperty.Description value isn't; it's always blank. Here's the CAML and the datafields declaration I'm using: &lt;DataSources>&lt;SharePoint:SPDataSource runat="server

Data information