ActiveX "Unknown Publisher" Error When Using Signed Certificate?

Oct 10, 2010

I have been struggling for days trying to get a simple ActiveX DLL to work with no success despite studying several articles on the subject which I have found online. I suspect I have several things coded incorrectly as I am just not familiar with this and most of the articles on the subject are out of date. I am using Visual Studio 2008 and have been using the Windows SDK V7.1 for digital signing.

What I am trying to do is return the client machineName from the environment class back to the web page (and eventually back to the web server). This is my C# class:

using System;
using System.Reflection;
using System.Runtime.InteropServices; [code]...

Note that I copied my dll to my Windows SDK folder, signed that, copied it back to my cab file which I then copied over to my SDK file, signed the cab file. Then finally, copied the cab file to my website project.

NOTE: See comments at end of first answer. I have purchased a signed certificate from Comodo and with that installed, I now get "Unknown Publisher" error even though the certificate status is "ok", Both the dll and cab file have been signed.I believe my issue now is the control needs to be marked as safe for scripting, http://www.olavaukan.com/2010/08/creating-an-activex-control-in-net-using-c/

View 2 Replies


Similar Messages:

Crystal Reports :: PrintControl.cab Unknown Publisher Error?

Jul 2, 2010

I have a project using Crystal Reports 2008, whenever I try to print the report, using the print button on the menu I get an error on one of my machines, the Crystal Print Dialog opens, completely empty and then I get a error from windows:

Windows has blocked this software because it can't verify the publisher.
Name: PrintControl.cab
Publisher: Unknown Publisher

This is only happening on my Windows 7 machine. The solution on my Windows XP machine works fine, even if I hit the site under XP from my 7 machine, so I'm assuming something didn't install properly on 7. Any ideas? The 7 machine print dialog comes up blank, just says Print on the title and then the error comes up. The XP machine Print dialog says Print in the title and says Crystal Reports Print Control before the print options come up.

View 2 Replies

C# - Error In HTTPS For Self Signed Certificate

Oct 11, 2010

This is in VS 2005. And IIS is 6.0. I am trying to use Self signed certificate for HTTPS. In the code i am redirecting from http to https for few pages. It is nt working fine. and in the IIS manager, for each page that i want HTTPs, i have changed its setting by checking "Require Secure Channel(SSL)" and "Require 128 bit encryption".

public void setSecureProtocol()
{
string redirectUrl = null;
bool bSecure = true;
bool SecureConnection = true;
if (bSecure && SecureConnection)
redirectUrl = Request.Url.ToString().Replace("http:", "https:");
else
if (!bSecure && SecureConnection)
redirectUrl = Request.Url.ToString().Replace("https:", "http:");
if (redirectUrl != null)
Response.Redirect(redirectUrl);
}

Pages throw me an error like this The page must be viewed over a secure channel The page you are trying to access is secured with Secure Sockets

Layer (SSL).

Please try the following:

* Type https:// at the beginning of the address you are attempting to reach and press ENTER.

HTTP Error 403.4 - Forbidden: SSL is required to view this resource. Internet Information Services (IIS)Internet Information Services (IIS) When i try to put https in the start of the URl, it wont call. I have no idea whats wrong in here. Here, Its not redirecting from http to https. For the pages that i am not redirecting in the code behind, and changing in the IIS, i can see the HTTPS when i check the two checkboxes. Internet Information Services (IIS)

View 1 Replies

PRB .NET User Controls Is Considered Published By An Unknown Publisher?

Mar 30, 2010

PRB .NET User controls is considered published by an "Unknown Publisher" from my ASP.NET pages.We have a .NET User conrol, based off the UserControl class and coupled with the IObjectSafety interface that generates a "Unkown Publisher" warning message when our control is deployed from our ASP.NET applications. The warning pops up as a dialog from the browser, asking the user if they want to install our control, saying that it is from an "Unknown Publisher".1) Our <OBJECT> tag is scripted correctly in our page as such:

<object
id=objMyControl
classid="CLSID:########-####-####-####-########"
codebase="MyControl.dll#-1,-1,-1,-1"
style="visibility: hidden; width: 0; height: 0;"
></object>

2) We activated the "Make assembly COM-Visible" and "Register for COM Interop" from the Visual Studio C# project settings.

View 1 Replies

C# - HTTPS With Self Signed Certificate

Oct 11, 2010

I am using a Self signed certificate for HTTPS. I have it ready. what should be changed in IIS and also what should be changed in the code for https to come into affect. I need https for some pages(not all).

View 2 Replies

Security :: Can't Get Localhost Self Signed Certificate To Work Properly

Mar 1, 2011

I created a self-signed certificate for testing in IIS7 (win 7 64 bit environment ). I attached the cert to the bindings, etc and everything was fine. But when I crank up the site I get the generic error: There is a problem with this website's security certificate. Continue to this website (not recommended). What should I be looking at to fix this

View 5 Replies

MVC :: Getting Error With Multiple Subscriber Listening The Same Publisher Queue Using NService Bus

May 3, 2010

I was working with asp.net + nservice bus Its working fine with one subscriber but when I specify another subscriber in webconfig It throws me error.

<UnicastBusConfig>
<MessageEndpointMappings>
<add Messages="EmailChannel" Endpoint="MyServerInputQueue"/>[code]....

View 5 Replies

Configuration :: How To Give Full Trust To Activex Control By Programmaticallytrust To Activex

Jul 30, 2010

Currently I have written the Activex Control for RFID USB reader and calling that one in ASP.NET web application. The Activex Control is working fine when I will give the full trust permission for particular IIS URL in

1. Open Control Panel > Administrative Tools > .NET Framework 2.0 Configuration

2. Expand Runtime Security Policy > Machine > Code Groups > All_Code

3. Right Click All_Code and click New...

4. Create a new code group, I named mine MyProject_FullTrust_Zone

5. Choose the URL condition type and specify the path on the network where the apps will be deployed.

6. Choose Use Existing permission set, and set it to Full Trust.


Alternative way of giving permission for an Activex Control is

1. Open Visual Studio Command Prompt

2. Run the command caspol -machine -addgroup 1. -site <ip address> FullTrust Doing this it works fine.

Whenever my web site will open, it will ask the user to give permission for the Activex Control using Allow or Cancel Button in browser. This type of functionality I have seen some web site which takes input from the user to allow the ActiveX Control.

View 1 Replies

State Management :: Error On Page And "Unknown Error - Code 0" In Error Message?

Dec 6, 2010

I have a serious problem with "Error on Page". The error message points to line number 939, char 13. In my code behind (C#) in line number 939 is only an obsolete method found which is no longer called. The aspx file has only 339 lines. What the heck is line number 939?The Webapplication allows a special user group to change some group memberships for members of another user group in Active Directory. The App handles 3internal DataViews derived from corresponding DataTables as DataSource for 3 GridViews and some other internal lists with objects (List<obj>).

It uses windows authentication to get current users credentials and his membership in the "Operators" group. This credentials will be passed-through to allow the process managing group memberships in active directory.After starting the App in browser it seems to work fine. But after an indeterminated time it doesn't longer respond. After each click on buttons (or link buttons) you only can see the message "Error on Page" in the browsers status bar below.I played with session timeout, storing the DataTables in session variables, without success.

Last week I found this article here: [URL]" and I addedEnableEventValidation="false" ViewStateEncryptionMode="Never"
to Page declaration. However, at some point the the server does not respond. Each time the worker process on webserver recycles it seems the application turn to wrong state. Might be important: All controls including GridViews are embedded in an AJAX UpdatePanel. How to get a better error message? Debugging is enabled and Custom Error handling On, Off or Remote Only brings the same result as described.

View 3 Replies

Configuration ::sign ActiveX Error: No Certificates Were Found?

Sep 21, 2010

I write a ocx file and package into cab file.I execute some commands as below:

cabarc -s 6144 N my.cab ./MyActiveX.ocx
makecert -sv mytest.pvk -ss testCertStore mytest.cercert2spc mytest.cer mytest.spc
pvk2pfx -pvk mytest.pvk -pi "mypassword" -spc mytest.spc -pfx mytest.pfx -f
signtool sign /n "myactivex" /du http://localhost /f mytest.pfx /p "mypassword" -t http://timestamp.verisign.com/scripts/timstamp.dll my.cab

The error message appears as below when I use signtool:

SignTool Error: No certificates were found that met all the given criteria.
Number of errors: 1

View 2 Replies

System.IO.IOException: Unknown Error (-1).

Feb 16, 2010

I'm getting this error when I'm trying to run a page that works on other servers. Having trouble finding much info on this error or possible solutions.As far as I can tell, the appicable permissions have all been set, on both the app folders and the framework folders. I've taken all the code out of the page to isolate

View 2 Replies

AJAX :: AsyncFileUpload Server Response Error - Unknown Server Error While Uploading File

Jun 11, 2013

I have got an error "server response error : Unknown server error" while uploading file using Ajax AsyncFileUpload, code behind function is triggered while uploading, but after code behind function executed, we are getting this error.

View 1 Replies

C# - Adding KnownType Attribute Causes Unknown Error?

Jun 21, 2010

I'm using DataContract/DataMembers to serialise my class to JSON for a webservice, and it all works fine, except for one of my members, which could either be class a, or class b, where class b extends class a.

If I omit the KnownType parameter, then an exception is thrown during serialisation:

Type 'ClassB' with data contract name 'ClassB:http://schemas.datacontract.org/2004/07/MyApp.App_Code' is not expected.

As expected, because the ClassB is an extension of Class A, and so not know to the deserialiser. So I need to add a known type attribute, which I do, to the parent Class which contains the member

[KnownType(typeof(ClassB))]
[DataContract]

This compiles fine, but the page which I am currently testing this on seems to go bizzare, it loads fine, however apparently the Service doesn't exist anymore, as my JS call tells me and throws and error. But I have no idea why adding the known type attribute on my class causes the webservice to apparently not exist :s

Is it something to do with the fact that my setup is ClassA, ClassB: ClassA, and all the examples I have seen, seem show a ClassA: ParentClass, ClassB: ParentClass setup.

.NET 4, VWD 2010express

View 1 Replies

Post Client Certificate From IE And Validate Certificate On IIS / Web Server

Nov 30, 2012

Let's assume our users in their office using Internet explorer to sign some Web Pages using their client certificate imported into the Internet explorer browser (let s assume no other browser is used)

what is a good approach/architecture for validating the client certificate (Internet Explorer), how to send that certificate or the signed form to the server and how do we verify the signature

Should we use smart client approach integrated to the web application or some silverlight or so or is web form/web pages enough to implement this security requirement ?

View 1 Replies

Configuration :: System Error: Cannot Create Activex Component In Microsoft Word?

Mar 3, 2010

My name is Christian, I developed a web application in VB.NET 2005 that calls a Microsoft Word Application, it works fine in my develop's machine but when I put all of the code in production's server I received the following error:System Error: Cannot create activex component. following I put the code. If somebody knows how to solve this,

Dim oWord As Microsoft.Office.Interop.Word.ApplicationDim oDoc
As Microsoft.Office.Interop.Word.DocumentDim oTable
As Microsoft.Office.Interop.Word.TableDim oPara0
As Microsoft.Office.Interop.Word.ParagraphDim oPara1
As Microsoft.Office.Interop.Word.ParagraphDim oPara2
As Microsoft.Office.Interop.Word.ParagraphDim oPara3
As Microsoft.Office.Interop.Word.Paragraph, oPara4
As Microsoft.Office.Interop.Word.Paragraph
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
oPara0 = oDoc.Content.Paragraphs.Add
oPara0.Range.Text = "Hola"
oPara0.Range.InsertParagraphAfter()

View 6 Replies

AJAX :: Unknown Server Tag Error Even After Assembly Registration?

Sep 17, 2010

I don't know what is going on. When I try to add a tab container in my page, it allows me to do that but when I modify the code, the unknown server tag error pops up in the design view of the page.

I checked the source code to see if I had my @register clause in there, and it was there, but still the error shows. I don't know what happened, the last time it worked perfectly.

I have also recently downloaded the cute editor for .net and installed the .dlls to my bin folder and it is showing the same simtoms as well.

View 1 Replies

JQuery :: Json Error; Status 12030 Unknown?

Dec 9, 2010

I am getting error when calling webservice using JSON. my code is as below

[Code]....

after calling the

jquery-1.3.2.min.js code it throws error on this line [Code]....the error is coming on "R"

View 5 Replies

AJAX Toolkit 'unknown Server Control' Error?

Jan 14, 2011

I just installed Ajax Toolkit. The controls are available in my Toolbox, but when I insert them in a page, Visual Studio underlines them with the error message "unknown server tag".

I googled the problem and found several ideas :

check if the DLL is in Bin folder check if ajaxToolKit tags prefix is registered in web.config and make sure I'm not using a different prefix in my pages check if the DLL is registered in the pages with <% @ Register ... %>

Unfortunately all of this is fine, but I still can't get the controls to work. Is something else missing ?

EDIT : My environment is ASP.Net 2.0, Ajax Extensions 1.0, Ajax Toolkit 1.0.20229, Visual Studio 2005

View 1 Replies

Web Forms :: File Upload Control Unknown Error?

Jan 13, 2011

When I am trying to upload a file with more than 5 MB using the
file upload control , some unknown error is thrown from the browser. When I tried to diagnose the issue using fiddler it shows 504 error code.

View 3 Replies

SQL Server :: Unknown Error When Comparing Values In Stored Procedure

Dec 1, 2010

I have a stored procedure, which I'm calling from ASP.Net application. I'm facing a problem in stored procedure when comparing values.Please check code below to get further details.

Stored Procedure:
ALTER PROCEDURE [dbo].[MyStoredProcedure]
(@ItemID nvarchar(50), @Weight1 float, @Weight2 float)
-- check remaining/available weight in items table
DECLARE @RemainingWeight float
SET @RemainingWeight = (SELECT RemainingWeight FROM items WHERE ItemID = @ItemID)
[code]...

View 4 Replies

AJAX :: Sys.WebForms.PageRequestManagerServerErrorException: An Unknown Error Occurred While Processing?

Aug 5, 2010

I am getting this error message (in IE) when i click on any of the menu items used in my code, i pasting my code here, please review it and suggest me the corrections, i have tried reading other similar articles which mentioned increasing maxReuestLength(<httpRuntime maxRequestLength="8192" />) but it hasn't solved my problem.

<asp:UpdatePanel ID="UpdatePanel1cc" runat="server">
<ContentTemplate>
<asp:Menu
id="menuTabs"
CssClass="menuTabs"
StaticMenuItemStyle-CssClass="tab"
StaticSelectedStyle-CssClass="selectedTab"
Orientation="Horizontal"
Runat="server" onmenuitemclick="menuTabs_MenuItemClick">
<Items>
<asp:MenuItem
Text="Jan"
Value="jan" />
<asp:MenuItem
Text="Feb"
Value="Feb"
Selected="true" />
<asp:MenuItem
Text="Mar"
Value="Mar" />
</Items>
</asp:Menu>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>Updating...</ProgressTemplate>
</asp:UpdateProgress>

View 5 Replies

C# - WCF Secured Using Membership Provider, But Getting Certificate Error?

Feb 18, 2011

I've created a custom membership provider and I am trying to use it to secure my WCF service. But, I am getting this error:

The service certificate is not provided. Specify a service certificate in ServiceCredentials.

I don't want to use an x509 certificate. How can I get this working?

Here is my service config:

<?xml version="1.0"?>
<bindings>
<wsHttpBinding>
<binding name="wsHttpBinding1" maxBufferPoolSize="2147483647" [code]...

UPDATE.This blog post, enter link description here, says:[When] you opt in for the UserName client credential type, WCF insists that your service must also reference a service certificate that contains a private key.

I am going to host my service in IIS and plan to use SSL certificate in the web site for encrypting communication. Can I make WCF not insist that I reference a service certificate?

View 2 Replies

Web Forms :: Sys.WebForms.PageRequestManager ServerErrorException: An Unknown Error Occurred While Processing

Sep 23, 2010

I am executing a SSRS 2008 report from report manager so it opens in a web browser. Since it is a big report it takes some time for execution. During this time i get an error icon on the left bottom of the web browser and the execution stops. When I click open the error icon to see the details it says,

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029."

The other relatively smaller reports are coming up successfully without any issue.

I am using SQL Server 2008 R2 64 bit ent. edition and the OS is Win Server 2003 64 bit SP 2.

View 1 Replies

Sys.WebForms.PageRequestManagerServerErrorException: An Unknown Error Occurred While Processing The Request On The Server?..

Feb 4, 2011

Am getting this error on clicking any of my page link.

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0"

How do i avoid this error.

View 3 Replies

Crystal Reports :: Unknown Query Engine Error Checked The Stored Procedure With The SP?

Mar 24, 2011

I'm working on a vb.net windows project using crystal reports for report generating.I'm using stored procedures as well.Stored procedures are used by crystal reports.When I run report with some parameters it gives error,like this " Unknown Query Engine Error ".I have checked the Stored Procedure and there is no problem with the SP, no extra parameters.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved