Solved

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

Posted on 2006-11-21
15
775 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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
 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reset asp.net login password 4 42
When should I use a controller? 3 34
ASP.NET gridview select textbox on focus 2 33
jquery datatables, asp.net MVC 9 38
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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and 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…

813 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

10 Experts available now in Live!

Get 1:1 Help Now