loDialog.ShowDialog(false, false); in C#: error


Author
Message
Ralph Rutschmann
Ralph Rutschmann
StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)
Group: Forum Members
Posts: 69, Visits: 1.3K
Hi,



maybe I'm doing something stupid. Following the help files, I tried to include security into my application. This works so far as I don't try to use 'loDialog.ShowDialog(false, false);' which I copied from the help file. That gives me an error message: 'No overload for method 'ShowDialog' takes '2' arguments'. Opposite to that the help file is telling me: 'Showing the SecurityDialog without Permissions or Restriction Sets [C#]'.



I'm using StrataFrame 1.6.1.



Can someone have a look at this?



TIA and friendly greetings,



Ralph
Replies
Ralph Rutschmann
Ralph Rutschmann
StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)StrataFrame User (169 reputation)
Group: Forum Members
Posts: 69, Visits: 1.3K
Hello Trent,



thank you very much for your help. StrataFrame support is best! :-)



I did what you wrote and there wasn't any "new" constructor. So I opened the source code and there was all what should be there. Removed the reference and added it again, with no success. I did a clean solution and a rebuild solution, did run the afterbuild.bat, removed the reference to the StrataFrame Security from my own solution, added it again with no success again. I did all of that many times, restarted my machine between, restarted VS between, no success.



The dll is there, opened in VS it looks exactly like your screen shot. But as a reference added to my project, it lacks of the new construtors.



I don't know what's going on or what can I do.



Any hint?



TIA and friendly greetings,



Ralph
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Any hint?

It sounds like you have an older set of SF DLLs that are being built or loaded.  If you download the most recent source code from the website, build it.  Get out of Visual Studio, open your project again, remove the SF references, add the newly recompiled references, clean your solution, get out of VS again, then go back in and recompile do they show up?

I know this sounds like a long way around, but you have some old assemblies somewhere that are being loaded instead of the 1.6.1 assemblies.  Also, one other thing you could try it to manually delete the StrataFrame entries in the GAC before you rebuild the StrataFrame solution.   This way you know they are gone before you build them and then after you build the SF code they should be back in there.  You should only need to remove the four highlighted below....and any versions that are older than 1.6.0.  Just FYI, the GAC will show 1.6.0 for the 1.6.1 version of SF.  We did this intentionally to make it easier for developers to move to the 1.6.1 version.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search