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
Similar Messages:
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
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
Sep 23, 2011
I used code below to save XML document but got an error said that
Logon failure: unknown user name or bad password.
Dim src00 As New XmlDocument
src00.Save("orderReportsorder.xml")
What is wrong? I check orderReports, my account has full control.
View 2 Replies
Feb 15, 2011
I cannot for the life of me figure out why I cannot wrtite a file to a directory inside of the website. I have this working on a Windows 2003 Server using IIS6. I've ported this web app to a 64bit Windows 2008 server and I am unable to have my web app write a file to a directory. I have shared and given security access to everything under the sun on this server to that particular folder and still no luck. My dev workstation with Visual Studio 2010 has no probelm saving a file to that directory. So it has to be something with the web server account. I am using Windows Authentication. I have an account in our Active Directory that is being used.
View 1 Replies
Sep 22, 2010
I have a published web project. I want to add some .ascx files (with .cs & designer.cs files) to that published web site. These are simple custom user controls that access methods already part of the original application. Question? Is it possible to just drop these in the published web project without building the entire solution? If not why? When I drop these files in and run my application I get the error: "Parse Error: Could not load type 'the name of my custom controls namespace'". There is not a lot of code to show so this is all I have.
Default.aspx
<%@ Page Language="C#" MasterPageFile="~/MasterPages/TwoColumn.master" AutoEventWireup="true"
Inherits="ApplicationName.Web.Default" CodeBehind="Default.aspx.cs" %>
<%@ Register TagPrefix="uc1" TagName="CustomControl" Src="~/Controls/Custom/CustomControl.ascx" %>
<asp:Content ID="content" contentplaceholder="cph" runat="Server">
<uc1:CustomControl ID="cc1" runat="server" CustomProperty="Hello World" />
</asp:Content>
CustomControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomControl.ascx.cs"
Inherits="ApplicationName.Web.Controls.Custom.CustomControl" %>
<asp:PlaceHolder ID="ph1" runat="server></asp:PlaceHolder>
CustomControl.ascx.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ApplicationName.Web.Controls.Custom
{
public partial class CustomControl : System.Web.UI.UserControl
{
///My logic
}
}
Again it seems so easy. What am I missing? Or is this not possible?
View 1 Replies
Dec 1, 2010
in my asp.net application i am trying to write a file on a network system . i get the above errori have identityimpersonate="true"
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
View 1 Replies
Feb 2, 2010
I want to create an asp.net application which allow user to specify text file path and create a text file on the specified location by doing some processing from the sql server database.for specifying path of the txt file i am using setting
.xmlsetting.xml
<TextFilePath> "D:Text" <TextFilePath> //as specified by the user.
The code is working fine if it is not published Once the application is uploaded on the server(published) and run under the virtual directory.
View 3 Replies
Aug 16, 2010
I need to develop a quick web site, visually appealing for a friend starting small business.I can do it using Publisher. It is mostly static web site except that he wants to add features like downloading documents etc from web site. Does anyone know if this could be accomplished using Publisher?Can those htm files be edited in Visual Studio?
View 3 Replies
Aug 24, 2010
a) In Asp.Net we can check whether a request is a postback or not via Page.IsPostBack property.But where does this property get its value from? Thus, where in the incoming request does browser put this value? b) As far as I can tell, hitting a reload button also causes browser to send form data back to the server. Thus, is under the hood hitting browser's reload button same as pressing a submit button ( which is nested within a FORM element)?c) Assuming browser displays A.aspx for the fist time and assuming user clicks browser's reload button, then I would think this request will be considered as a postback by Asp.Net (especially since browser also sends back any form data), but it's not.
View 1 Replies
Feb 24, 2011
Can we consider that two clients accessing the same method of a web service at the same time are two threads (with all problems involved...) ?Is it the same thing for methods in an asp.net web application ?
View 3 Replies
May 20, 2010
I am trying to write a file to a network drive from my asp.Net application and i get this error - Logon failure: unknown user name or bad password. I am able to write to a local drive line C:/temp But when I try to save the file to a network drive such as ServerFolder, I get the error mentioned above.
View 2 Replies
Apr 9, 2010
how to make shopping cart with the help of PayPal using asp.net with c#, and i am using sql server 2005 as back end
View 1 Replies
Jul 27, 2010
(probably a bot) sent a request with the following URL to my ASP.NET 4.0 web forms application (running on IIS 7.0):http://ipaddress-of-my-applications-domain/bla1.bla2.bla3.bla4.bla5:)This caused an System.Web.HttpException. I received a logging email from ASP.NET HealthMonitoring I had configured, telling me:A potentially dangerous Request.Path value was detected from the client (:).
System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)
Why is a colon in the URL "potentially dangerous"? What dangerous things can be done with such a URL? Do I have any security hole here I am not aware of?
View 3 Replies
Jan 28, 2011
how to open a publisher file? I used the mime type "application/x-mspublisher" but its not working.
View 3 Replies
Jan 21, 2011
I'm trying to access text from a ButtonField(databound), but I can't get the text if I refer to it as a TableCell. What can I do to get its text?Markup:
<asp:GridView ID="gvClass" runat="server" CssClass="grid" HeaderStyle-Font-Bold="true" Width="100%" OnSelectedIndexChanged="gvClass_SelectedIndexChanged" DataKeyNames="ClassID" AutoGenerateColumns="False" OnPageIndexChanging="gvClass_PageIndexChanging">
<HeaderStyle Font-Bold="True" />
[code]...
View 2 Replies
Feb 2, 2010
Should I use an ImageMap to create a navigation menu?
View 1 Replies
Jan 24, 2011
According to MSDN and the MCTS self-paced training, asp.net can use Hidden fields for client-side state management. The book material goes on to say view-state is more secure than hidden fields because the data is encrypted. I must be missing something here. I setup a Label and made it hidden. I can store data in this hidden label and it won't even be sent to the client browser. This not only works like server side state (note the runat=server), but this seems more secure than view-state because there's no need for encryption as the client can't even see the field.
<asp:Label ID="Label1" Visible="false" runat="server">secret info</asp:Label>
<input id="Text2" type="text" style="visibility:hidden;" value="secret 99" />
View 2 Replies
Mar 18, 2011
I'm having trouble understanding when the site is considered "pre-compiled". As I understand what I've read, if I use the Publish or Build Deployment Package options from within Visual Studio then it is pre-compiling, but if I just use something like xcopy, then it is not pre-compiled.
View 2 Replies
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
Jan 20, 2011
ASP.NET says that the following ImageButton server tag is not well formed:
<asp:TableCell VerticalAlign="Top">
<asp:ImageButton runat="server" ID="imgAdd" src="Images/add_plus_1.gif"
onmouseout="this.src='Images/add_plus_1.gif'"[code]....
I think all the mouse event attributes are legit, so I don't know what it's complaining about.
View 2 Replies
Mar 5, 2011
i've deployed an asp4 site to rackspace.com using the vs2010 publisher; the default page is rendering ok, but when i click on the login button i'm getting the following error and trace
[FileLoadException: Unverifiable code failed policy check. (Exception from HRESULT: 0x80131402)]
[FileLoadException: Could not load file or assembly 'ManagedCPPAPI.netmodule' or one of its dependencies. Unverifiable code failed policy check. (Exception from HRESULT: 0x80131402)][code]....
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
View 1 Replies
Apr 6, 2010
I want return the value from an unknown field in linq.
[Code]....
so sopmething like the above, is it posible?
View 5 Replies
Jun 28, 2010
I am getting this error. I have included my code below.
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Web.UI" %>
<html lang="en">
<head>
<title>Test Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script runat="server" language="VB">
Sub Page_Load()
End Sub
</script>
</head>
<body>
<form id="Form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
</form>
</body>
</html>
View 1 Replies
Jan 29, 2010
I have a gridview with 2 columns. the first column is a textbox an the other column depending of some conditions (it may be dropdownlist, textbox or checkbox column)
how to declare a gridview?
[Code]....
View 6 Replies