Win 7 IIS 7.5 weird behavior with System.ComponentModel.BrowseableAttribute

我的梦境 提交于 2019-12-06 05:58:15
dcp

Ok, I found a hack to make this work. Added these attributes to VirtualItemCount:

[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[EditorBrowsable(EditorBrowsableState.Always)]
[Bindable(true)]

Now I no longer get the parser error. I don't understand why I had to add these to make in work on my Win 7 machine, but on the server I tested it on these extra attributes aren't needed (both my Win 7 machine and the server are on IIS 7.5). I guess that will remain a mystery.

Many thanks to the person who answered this question, as it steered me in the right direction.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!