﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Role Based Security  » Type or namespace name 'SecurityDialog' could not be found</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 04:38:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Type or namespace name 'SecurityDialog' could not be found</title><link>http://forum.strataframe.net/FindPost17824.aspx</link><description>Hi All,&lt;br&gt;
&lt;br&gt;
I am a rank novice with .NET so please bear with me if I ask completely stuid questions.  I guess the only really stupid question is the one you don't ask...&lt;br&gt;
&lt;br&gt;
I have been evaluating StrataFrame today by working my way through the tutorials and spending some considerable time delving into the forum.  I have just started going through the user contributed sample, specifically the StrataFrame Windows Application with Security by Charles Thomas Blankenship, thanks Charles.&lt;br&gt;
&lt;br&gt;
I have just added the button that calls the following:&lt;br&gt;
&lt;br&gt;
        private void LaunchSecurityEditor()&lt;br&gt;
        {&lt;br&gt;
            //-- Establish Locals&lt;br&gt;
            SecurityDialog loForm = null;&lt;br&gt;
            //-- See if the current user has rights to the security dialog&lt;br&gt;
            if (SecurityBasics.CurrentUser.GetPermission("Application Security").Action == PermissionAction.Grant)&lt;br&gt;
            {&lt;br&gt;
                loForm = new SecurityDialog();&lt;br&gt;
                loForm.Show();&lt;br&gt;
            }&lt;br&gt;
            else&lt;br&gt;
            {&lt;br&gt;
                MicroFour.StrataFrame.Messaging.MessageForm.ShowMessage("Access Denied", &lt;br&gt;
                    "Security Editor access has been denied.", "", &lt;br&gt;
                    MicroFour.StrataFrame.Messaging.MessageFunction.OK, &lt;br&gt;
                    MicroFour.StrataFrame.Messaging.MessagingIcon.Forbidden,&lt;br&gt;
                    MicroFour.StrataFrame.Messaging.MessagingSounds.Warning);&lt;br&gt;
            }&lt;br&gt;
&lt;br&gt;
and get the error:&lt;br&gt;
&lt;br&gt;
Error1The type or namespace name 'SecurityDialog' could not be found (are you missing a using directive or an assembly reference?)C:\Projects\Visual Studio Projects\SFSecurity\SFSecurity\frmMain.cs3113SFSecurity&lt;br&gt;
&lt;br&gt;
Is this just because I only have the evaluation version of StrataFrame or am I missing something simple?  I have attached a screen image of the code, compile error and references.&lt;br&gt;
&lt;br&gt;
Any help is appreciated and I have to say I am impressed with what I have seen of StrataFrame so far.&lt;br&gt;
&lt;br&gt;
Cheers, Keith</description><pubDate>Tue, 15 Jul 2008 10:35:14 GMT</pubDate><dc:creator>Keith Gordijn</dc:creator></item><item><title>RE: Type or namespace name 'SecurityDialog' could not be found</title><link>http://forum.strataframe.net/FindPost17853.aspx</link><description>Good answers, Greg! :)</description><pubDate>Tue, 15 Jul 2008 10:35:14 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Type or namespace name 'SecurityDialog' could not be found</title><link>http://forum.strataframe.net/FindPost17844.aspx</link><description>Cool! :cool:</description><pubDate>Tue, 15 Jul 2008 00:01:03 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Type or namespace name 'SecurityDialog' could not be found</title><link>http://forum.strataframe.net/FindPost17843.aspx</link><description>I sorted out my SQL issue and your suggestion number 3 did the trick so I'm back into it. :D&lt;br&gt;
&lt;br&gt;
Thanks Greg.</description><pubDate>Mon, 14 Jul 2008 23:08:16 GMT</pubDate><dc:creator>Keith Gordijn</dc:creator></item><item><title>RE: Type or namespace name 'SecurityDialog' could not be found</title><link>http://forum.strataframe.net/FindPost17842.aspx</link><description>I'm with ya...I've always like hill climbing myself :w00t:&lt;br&gt;
&lt;br&gt;
If you have any more trouble/issues/questions, post 'em!</description><pubDate>Mon, 14 Jul 2008 19:47:15 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Type or namespace name 'SecurityDialog' could not be found</title><link>http://forum.strataframe.net/FindPost17840.aspx</link><description>Hi Greg,&lt;br&gt;
&lt;br&gt;
Thanks for the reply.  &lt;br&gt;
&lt;br&gt;
Last night I purchased StrataFrame the role based security an the database deployment package. :D&lt;br&gt;
&lt;br&gt;
I then saw your reply but by then I had installed the trial version then reinstalled the licensed version and now I am getting an SQL Server connection error that I need to sort out.:unsure:  Did I mention that I am also a complete SQL newbie so I am now climbing two learning curves at once and actually looking forward to it.  I purchased StrataFrame personally, away from work, but am hoping one of our SQL Server gurus at work can give point me in the right direction.&lt;br&gt;
&lt;br&gt;
Regards, Keith</description><pubDate>Mon, 14 Jul 2008 17:53:27 GMT</pubDate><dc:creator>Keith Gordijn</dc:creator></item><item><title>RE: Type or namespace name 'SecurityDialog' could not be found</title><link>http://forum.strataframe.net/FindPost17835.aspx</link><description>Keith,&lt;br&gt;
&lt;br&gt;
You'll need three things to make this work.&lt;br&gt;
&lt;br&gt;
1. You need the role based security module. Since you in trial, I believe this is included, so you should be good to go. If you need this going forward, this is a separate purchase than the framework.&lt;br&gt;
&lt;br&gt;
2. You need to reference the security library. Just right click the project in the solution explorer and click on properties (or somehow open the properties for the project).  Make sure there is a reference to the Microfour StrataFrame Security module. If not, click the add button and scroll down until you find it.&lt;br&gt;
&lt;br&gt;
3. You will need to use the correct names space or fully qualify the name (Microfour.StrataFrame.Security.SecurityDialog).  Just put a using statement at the top:&lt;br&gt;
[codesnippet]using Microfour.StrataFrame.Security[/codesnippet]&lt;br&gt;
&lt;br&gt;
Or in VB&lt;br&gt;
[codesnippet]Imports Microfour.StrataFrame.Security[/codesnippet]&lt;br&gt;
&lt;br&gt;
Hope that helps!  ...and don't worry about asking questions.  Many of us were/are in you shoes, so by asking you help both yourself and anyone else who is in the same boat (I was a bit over a year ago myself)!&lt;br&gt;</description><pubDate>Mon, 14 Jul 2008 14:29:26 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>