Security Pane

Hi,
Whenever I click on the Security Pane in the Project Designer, I get the following error. I am using Whidbey Betat 2 on Win XP SP2 machine. Is this a beta bug? I know i can configure it using Mage, but just wanted to see the Security Pane.
DataGridView Default Error Dialog

The following exception occurred in the DataGridView:

System.ArgumentException: Value does not fall within the expected range.

To replace this default dialog please handle the DataError event.

OK
Thanks,
Kunal

[529 byte] By [KunalYadav] at [2008-2-14]
# 1

I asked a few of my friends also to try it out on their machines. They are also getting the same error.

KunalYadav at 2007-9-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2
Hi Kunal,

Thanks for submitting this bug. It is the first I've heard of this issue with the Security page in Beta2.

Troubleshooting:
1. Did you have VS 2005 Beta1 previously installed on this machine? If so, you may have to follow the following instructions to be sure that the uninstall was complete: http://lab.msdn.microsoft.com/vs2005/uninstall/.
2. Does this occur in new projects that you created in VS 2005 Beta2? If you try to open projects created in Beta1, you may experience issues such as these due to changes in the project properties for the Security tab.

Any other info you can provide will help to debug.

Cheers,
-Patrick Darragh

PatrickDarragh at 2007-9-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 3

Hi Patrick,
I didnt have VS 2005 Beta1 previously installed.

Yes, it occurs with the new projects also. Since I didnt have Beta 1, so I dont have any old projects also.

Well there isnt anything much I can tell, because its just a simple click I do and I get this error dialog. I aint doing any meddling around Smile

Thanks,
Kunal

KunalYadav at 2007-9-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 4

Hi, my name is Mike Sampson and I'm the developer responsible for the security pane.

The DataGridView control on the page is populated by 3 data items from your project: the TargetZone property, the contents of your app.manifest file (located under the My Project node in your project), and the ExcludedPermissions property in your project file. Also, it grabs data from your system security policy (this is how it gets the list of permissions that your application needs). It sounds like something from one of these is messed up. You indicated that you aren't changing anything in the project file so a bad install of the framework is the first thing that pops into my head. Are you doing anything out of the ordinary on your machine (running as a non-admin, VPC, tweaked install settings)? I don't know of any bug that we knew of in Beta 2 that caused this (since we probably would have fixed an issue that locked you out of the Security page :)).

This issue seems to be resolved in recent builds of Visual Studio and won't ship with the final version. Let me know about the stuff I asked about above and hopefully we can figure out what's going wrong.

Sampy at 2007-9-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 5
Hi Mike,

I am not doing anything out of the ordinary on my machine, i am an admin and i am not running any VPC. I haven tweaked any install settings also. During the framework installation it did not give any error.

Theres no *.manifest file in My Project node for me. It is not there for any new project, nor is it there for any published project also. So is this the problem for me? I have the Dec 2004 CTP version of IDE.

Thanks,
Kunal

[Edit] Just came to know from Mark that the Beta 2 came out in Feb, so I still have Beta 1 though it says as Beta 2.

KunalYadav at 2007-9-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 6
I would reccomend upgrading to the Beta 2 release or a later CTP. They have a lot more bug fixes than the December release. This page on Channel 9 can help you find the build you are looking for.
Sampy at 2007-9-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...