| Author |
Message |
Guest
|
Posted:
Mon Jan 17, 2005 12:50 am Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Stefan,
Channels/www.domain.com has /default.aspx as the Channel Rendering
Script URL.
Channels/www.domain.com/foo1 has has (first page) set as the Default
Page in Channel Rendering. There is no channel rendering script here.
I am getting an error at www.domain.com/foo1 saying that "The current
user does not have rights to the requested item." |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Mon Jan 17, 2005 3:13 pm Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Han,
is this a .NET error message?
Please post the complete error message or better attach a screen print.
Thanks,
Stefan.
<han_chung@hotmail.com> wrote in message
news:1105919250.550945.147790@z14g2000cwz.googlegroups.com...
| Quote: | Hi Stefan,
Channels/www.domain.com has /default.aspx as the Channel Rendering
Script URL.
Channels/www.domain.com/foo1 has has (first page) set as the Default
Page in Channel Rendering. There is no channel rendering script here.
I am getting an error at www.domain.com/foo1 saying that "The current
user does not have rights to the requested item."
|
|
|
| Back to top |
|
 |
Guest
|
Posted:
Mon Jan 17, 2005 5:39 pm Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Stefan,
Thanks for your help on this. The error is below:
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The
current user does not have rights to the requested item.
Line 6: <a href="<%=
foo1.Helper.GetPostingUrl(ConfigurationSettings.AppSettings["URLHome"])
%>"><img src="../images/hdr_archive.gif" width="650" height="87"
border="0"></a><br>
[COMException (0x80041bff): The current user does not have rights to
the requested item.]
Microsoft.ContentManagement.Interop.Publishing.CmsHttpContextClass.Initialize(String
currentUrl, String httpHostName, Int32 serverPort, Boolean
isSecureServer, Int32 iisInstanceId, String remoteMachineAddress,
String authenticationType, String authenticationToken, Int32
windowsUserHandle, String ClientAccountName) +0
Microsoft.ContentManagement.Publishing.CmsHttpContext.initialize(IntPtr
windowsToken, String cmsAuthToken, String clientUserName, String
clientAccountType) +299
Microsoft.ContentManagement.Publishing.CmsHttpContext.getCmsHttpContextFromIdentity(HttpContext
httpContext) +1105
Microsoft.ContentManagement.Publishing.CmsHttpContext.get_Current()
+57
[CmsAccessDeniedException: The current user does not have access to the
requested item.
If you are seeing this exception when a CMS template is executing, it
means that you have removed the CmsAuthorizationModule from the
<httpModules>...</httpModules> section of your web.config. You can
only remove this module if:
1. All requests for every CMS template in the web application will only
be accessed by anonymous users
2. Guest access is enabled in CMS (via the SCA)
3. The CMS guest user has access to all postings based on templates in
the web application
Han. |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Mon Jan 17, 2005 6:14 pm Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Han,
it seems the CmsAuthorizationModule cannot be loaded.
Maybe the way you setup your web.config files interacts badly with the
web.config MCMS accesses?
Please double check.
Cheers,
Stefan.
<han_chung@hotmail.com> wrote in message
news:1105961964.713206.78630@z14g2000cwz.googlegroups.com...
| Quote: | Hi Stefan,
Thanks for your help on this. The error is below:
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The
current user does not have rights to the requested item.
Line 6: <a href="<%=
foo1.Helper.GetPostingUrl(ConfigurationSettings.AppSettings["URLHome"])
%>"><img src="../images/hdr_archive.gif" width="650" height="87"
border="0"></a><br
[COMException (0x80041bff): The current user does not have rights to
the requested item.]
Microsoft.ContentManagement.Interop.Publishing.CmsHttpContextClass.Initializ |
e(String
| Quote: | currentUrl, String httpHostName, Int32 serverPort, Boolean
isSecureServer, Int32 iisInstanceId, String remoteMachineAddress,
String authenticationType, String authenticationToken, Int32
windowsUserHandle, String ClientAccountName) +0
Microsoft.ContentManagement.Publishing.CmsHttpContext.initialize(IntPtr
windowsToken, String cmsAuthToken, String clientUserName, String
clientAccountType) +299
Microsoft.ContentManagement.Publishing.CmsHttpContext.getCmsHttpContextFromI |
dentity(HttpContext
| Quote: | httpContext) +1105
Microsoft.ContentManagement.Publishing.CmsHttpContext.get_Current()
+57
[CmsAccessDeniedException: The current user does not have access to the
requested item.
If you are seeing this exception when a CMS template is executing, it
means that you have removed the CmsAuthorizationModule from the
httpModules>...</httpModules> section of your web.config. You can
only remove this module if:
1. All requests for every CMS template in the web application will only
be accessed by anonymous users
2. Guest access is enabled in CMS (via the SCA)
3. The CMS guest user has access to all postings based on templates in
the web application
Han.
|
|
|
| Back to top |
|
 |
Guest
|
Posted:
Tue Jan 18, 2005 6:03 am Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Stefan,
I believe the error is occuring because I am not logging in before
attempting to view the www.domain.com/foo1 channel. Currently, I do
not get redirected to the login page before it attempts to load
www.domain.com/foo1.
Before I added the Channel Rendering Script URL '/default.aspx' at the
www.domain.com channel (this was to get the non-CMS parts of the site
working), I was able to get redirected to the login page when I typed
in www.domain.com in the URL and I was then able to browse through to
www.domain.com/foo1 without errors.
Now that I have added the Channel Rendering Script URL, when I type
www.domain.com/foo1 as the URL, I do not get redirected to the login
page as indicated in my www.domain.com/foo1/web.config file and instead
see the error message in my previous post.
I've extracted some parts of my web.config file and have included it
below:
<authentication mode="Forms">
<forms name="foo1" path="/" loginUrl="Admin/Login.aspx"
protection="All" timeout="30" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
<httpModules>
<add
type="Microsoft.ContentManagement.Web.Security.CmsAuthorizationModule,
Microsoft.ContentManagement.Web, Version=5.0.1200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" name="CmsAuthorizationModule" />
<add type="Microsoft.ContentManagement.Web.CmsEndRequestModule,
Microsoft.ContentManagement.Web, Version=5.0.1200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" name="CmsEndRequestModule" />
<add
type="Microsoft.ContentManagement.Publishing.Events.PostingEventsModule,
Microsoft.ContentManagement.Publishing, Version=5.0.1200.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="CmsPosting" />
<add
type="Microsoft.ContentManagement.Web.Caching.CmsCacheModule,
Microsoft.ContentManagement.Web, Version=5.0.1200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" name="CmsCacheModule" />
</httpModules>
Does this provide any clues?
Regards,
Han. |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Tue Jan 18, 2005 5:16 pm Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Han,
what kind of authentication did you configure in the project holding the
channel rendering script?
You should automatically be authenticated using the authentication method
defined there.
Cheers,
Stefan.
<han_chung@hotmail.com> wrote in message
news:1106006581.608639.8100@c13g2000cwb.googlegroups.com...
| Quote: | Hi Stefan,
I believe the error is occuring because I am not logging in before
attempting to view the www.domain.com/foo1 channel. Currently, I do
not get redirected to the login page before it attempts to load
www.domain.com/foo1.
Before I added the Channel Rendering Script URL '/default.aspx' at the
www.domain.com channel (this was to get the non-CMS parts of the site
working), I was able to get redirected to the login page when I typed
in www.domain.com in the URL and I was then able to browse through to
www.domain.com/foo1 without errors.
Now that I have added the Channel Rendering Script URL, when I type
www.domain.com/foo1 as the URL, I do not get redirected to the login
page as indicated in my www.domain.com/foo1/web.config file and instead
see the error message in my previous post.
I've extracted some parts of my web.config file and have included it
below:
authentication mode="Forms"
forms name="foo1" path="/" loginUrl="Admin/Login.aspx"
protection="All" timeout="30" /
/authentication
authorization
allow users="*" /
/authorization
httpModules
add
type="Microsoft.ContentManagement.Web.Security.CmsAuthorizationModule,
Microsoft.ContentManagement.Web, Version=5.0.1200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" name="CmsAuthorizationModule" /
add type="Microsoft.ContentManagement.Web.CmsEndRequestModule,
Microsoft.ContentManagement.Web, Version=5.0.1200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" name="CmsEndRequestModule" /
add
type="Microsoft.ContentManagement.Publishing.Events.PostingEventsModule,
Microsoft.ContentManagement.Publishing, Version=5.0.1200.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="CmsPosting" /
add
type="Microsoft.ContentManagement.Web.Caching.CmsCacheModule,
Microsoft.ContentManagement.Web, Version=5.0.1200.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" name="CmsCacheModule" /
/httpModules
Does this provide any clues?
Regards,
Han.
|
|
|
| Back to top |
|
 |
Guest
|
Posted:
Wed Jan 19, 2005 6:48 am Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Stefan,
There's no authentication on the project holding the channel rendering
script. How do I go about forcing authentication?
Regards,
Han. |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Wed Jan 19, 2005 3:47 pm Post subject:
Re: Part CMS, Part ASP.NET site |
|
|
Hi Han,
in the web.config needs to be a configured authenticaton method.
The authentication is forced by removing the guest account from the channel.
Cheers,
Stefan.
<han_chung@hotmail.com> wrote in message
news:1106100588.899548.52700@c13g2000cwb.googlegroups.com...
| Quote: | Hi Stefan,
There's no authentication on the project holding the channel rendering
script. How do I go about forcing authentication?
Regards,
Han.
|
|
|
| Back to top |
|
 |
|
|
|
|