views:

92

answers:

2

Hello everyone,

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 asp.net), 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)
{
    Response.Redirect("http://www.google.com");
}
</script>
<html>
<body>
</body>
</html>

thanks in advance, George

+1  A: 

Check out the end of this article: Redirection options in SharePoint

Gonzalo
I want to check by default, to access aspx pages by anonymous users in layout folder, there should not be any authorization issues?
George2
"end of this article" -- which could let me know which specific part do you mean?
George2
The part where figure 6 is.
Gonzalo
+1  A: 

Make sure that the Windows security permissions are set appropriately for the folder where your Web page is stored. The IIS user for the AppPool (most likely the default, but may not be) will need to have read rights to this folder.

Jeremy McGee
I want to check by default, to access aspx pages by anonymous users in layout folder, there should not be any authorization issues?
George2
Find out the user identity under which the AppPool is running, then make sure they have appropriate permissions.
Jeremy McGee
Thansk, question answered!
George2