[急救]asp.net中的webpart通过网站访问的问题
在VWD里面调试 的可以运行,webpart 的各项功能也能使用。
但是我把它放到iis下面调用
Line 26: void LinkButton3_Click(object sender, EventArgs e)
Line 27: {
Line 28: this.WebPartManager1.DisplayMode = WebPartManager.CatalogDisplayMode;
Line 29: }
Line 30: void Page_Load(object sender, EventArgs e)
就会出现如下错误
The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. Parameter name: value
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.ArgumentException: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. Parameter name: value
请问如何解决
问题点数:100、回复次数:12Top
1 楼singlepine(小山)回复于 2005-04-23 23:13:37 得分 30
好像是你的访问用户没有权限,设置一下iis的权限看看Top
2 楼various(娃哈哈)回复于 2005-04-23 23:22:13 得分 0
我知道大概是web.config的问题,可具体怎么设呢?
singlepine(小山) 支支招Top
3 楼various(娃哈哈)回复于 2005-04-24 00:19:13 得分 0
顶一下Top
4 楼various(娃哈哈)回复于 2005-04-24 09:58:06 得分 0
大家给看看Top
5 楼happyRose(落魄书生)回复于 2005-04-25 11:44:01 得分 20
upTop
6 楼various(娃哈哈)回复于 2005-04-25 12:31:29 得分 0
目前在web.config里面使用windows验证。然后 在权限中添加一个用户,来访问。 如何使匿名用户能使用webparts呢?Top
7 楼various(娃哈哈)回复于 2005-04-25 23:28:50 得分 0
upTop
8 楼wd_terry(IQ+EQ=QQ)回复于 2005-04-26 03:18:34 得分 10
深夜路过,不顶就不厚道了Top
9 楼wd_terry(IQ+EQ=QQ)回复于 2005-04-26 03:22:53 得分 20
刚没看清楚问题,回头再顶!觉得这个提示很重要Make sure personalization is enabled for the current user.
在IIS中把允许匿名用户访问的复选框勾上,还有赋予ASP。NET或者IIS_WPG的写权限试试Top
10 楼various(娃哈哈)回复于 2005-04-26 07:40:27 得分 0
我去试试看看看,Top
11 楼wssmax(请叫我三角猫)回复于 2005-04-28 17:01:46 得分 20
顶一下。正好学习。Top
12 楼various(娃哈哈)回复于 2005-04-29 20:45:17 得分 0
顶一下。正好学习Top




