Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 824
  • Last Modified:

.net framework configuration, activex control...tried and tried...but no luck

Good Day Experts,

I'm in extreme agony trying to resolve this issue...

I've developed an active x control using windows forms, Included it in my web project.
The control displays perfectly, but when i try click anything on it i get the
"The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer"

error, I have changed and reset and changed all the settings under the configuration wizard and the mmc...giving everything full trust...

below is the snippet of the full error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Security.SecurityException: System.Security.Permissions.SecurityPermission
   at UareU.Main.btnStart_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
UareU
    Assembly Version: 1.0.2516.1045
    Win32 Version: n/a
    CodeBase: http://localhost/PivotBio/UareU.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Interop.DPSDKOPSLib
    Assembly Version: 1.1.0.0
    Win32 Version: n/a
    CodeBase: http://localhost/PivotBio/Interop.DPSDKOPSLib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
0
skrombeen
Asked:
skrombeen
  • 8
  • 7
1 Solution
 
Bob LearnedCommented:
May I ask what the ActiveX control does?

Bob
0
 
skrombeenAuthor Commented:
Hi Bob,

Sure, i've written an inteface to the digital persona biometric (Finger Print) reader...
0
 
Bob LearnedCommented:
Would it be possible to create a web control, instead of Windows control?

Bob
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
skrombeenAuthor Commented:
Hi Bob,

I have never written a web control before...
I see it doesn't have a form for me to place images and so forth to capture the finger print...would that be possible?

tx a mil
0
 
Bob LearnedCommented:
Anything is possible ;)

You can create a custom web control, with JavaScript/AJAX support, than can display images.

Bob
0
 
skrombeenAuthor Commented:
thanks, lemme give that a bash...

any other suggestions to my initial error?
0
 
Bob LearnedCommented:
Using a WinForms control with ASP.NET is very flaky at best, and only if you are using a very limited set of instructions.  

Bob
0
 
skrombeenAuthor Commented:
Hi Bob,

I've been trying to get this right, since your last response...
but im getting all sorts of errors...

This is the latest error im getting:
COM object with CLSID {D5F445DE-AEB2-4209-80F9-CF52DFEEB3AC} is either not valid or not registered.
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.Runtime.InteropServices.COMException: COM object with CLSID {D5F445DE-AEB2-4209-80F9-CF52DFEEB3AC} is either not valid or not registered.

Source Error:


Line 34:     Sub StartRender()
Line 35:             op = Nothing
Line 36:             op = New DPSDKOPSLib.FPRegisterTemplate
Line 37:        
Line 38:         op.Run()
 

Source File: D:\xxx\FingerReaderA\Reader.vb    Line: 36

--------------------

I have registered the components using regasm....

Any suggestions?
0
 
skrombeenAuthor Commented:
Hello...anyone their???
0
 
Bob LearnedCommented:
Did you put the assembly in the Global Assembly Cache?  If not, then you could try strong-naming the assembly, and then registering that version.

Bob
0
 
skrombeenAuthor Commented:
How do i put it in the Gobal Assembly Cache?
0
 
Bob LearnedCommented:
Few ways:

1) GACUTIL

    http://msdn2.microsoft.com/en-US/library/ex0ss12c(VS.80).aspx

2) Drag/drop to C:\Windows\Assembly folder through Explorer

Bob
0
 
skrombeenAuthor Commented:
Hi Bob, Thanks for that!

When i drag and drop them, it says they need to be strong named...
How do i "strong" name (Sorry this is all new to me...)
0
 
skrombeenAuthor Commented:
hello?
0
 
Bob LearnedCommented:
There is a process for strong-naming, shown here:

http://www.c-sharpcorner.com/Code/2003/March/StrongNamedAssemblies.asp

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now