Solved

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

Posted on 2006-11-21
15
768 Views
Last Modified: 2013-11-25
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
Comment
Question by:skrombeen
  • 8
  • 7
15 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17986567
May I ask what the ActiveX control does?

Bob
0
 
LVL 1

Author Comment

by:skrombeen
ID: 17986630
Hi Bob,

Sure, i've written an inteface to the digital persona biometric (Finger Print) reader...
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17986685
Would it be possible to create a web control, instead of Windows control?

Bob
0
 
LVL 1

Author Comment

by:skrombeen
ID: 17986867
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
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17986966
Anything is possible ;)

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

Bob
0
 
LVL 1

Author Comment

by:skrombeen
ID: 17987054
thanks, lemme give that a bash...

any other suggestions to my initial error?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17987654
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 1

Author Comment

by:skrombeen
ID: 18018235
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
 
LVL 1

Author Comment

by:skrombeen
ID: 18019408
Hello...anyone their???
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 18019545
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
 
LVL 1

Author Comment

by:skrombeen
ID: 18019723
How do i put it in the Gobal Assembly Cache?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 18019860
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
 
LVL 1

Author Comment

by:skrombeen
ID: 18020374
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
 
LVL 1

Author Comment

by:skrombeen
ID: 18021315
hello?
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 18021801
There is a process for strong-naming, shown here:

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

Bob
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now