Cannot Create ActiveX Component
Apr 28, 2010
I have been working on an asp.net web application that calls a third party COM application through createObject method. The application works fine (gets initialized) in Win XP but I am having problems getting it to work in WIndows 2003. I get the "Cannot create ActiveX component" error.
The website works fine in visual studio - the application launches fine. The references added were the interop assemblies which were packed inside a tlb file.
I am aware of the change in default user - ASPNET for iis 5 and Network Service for IIS 6.0. Also I have changed the default permission levels in DCOM config for not just this COM application but all the COM applications by changing the default COM security properties of the computer. I gave almost every user the permissionto launch and access remotely including Network service and everyone.
The other thing I have done was to test it out in IIS 5.0 isolation mode but couldn't get the application work - still same error.
The final thing I have tried was to use IIS 6.0 itself but change the application pool to local system and I am just stumped that even this didn't resolve the error.
Another thing to add is that I cannot register the tlb file using regsvr32.exe command as it is not a dll.
View 4 Replies
Similar Messages:
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
Mar 3, 2010
I have created a ActiveX componed and packed into a cab file
1) Created the setup for Class Library that I would like to be exposed for COM access.
2) Create the CAB setup project taking the Project output from the setup created in the setup 1.
3) Embedded the object tag in a sample html file
Now when I launch the sample html from IE, it is showing an security alert, when I accept the security waning the installation was blocked with the following message.
"winows has blocked this software because it can't verify the publisher"
View 1 Replies
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
Jan 19, 2010
try to create a activex. if i use printdocument class it will throw security exception on client side. how to assign print permission for a assembly?
View 1 Replies
Sep 16, 2010
I have spent last couple of days on this subject but no luck :)
I want to achive following using VS2008/C# -
1. create a cab file using existing AciveX/ocx control,
2. use the ActiveX on ASP.NET WebForm.
3. deploy the app and cab file on web server
4. Test/verify that the cab file get downloaded, and IE can use my ActiveX/ocx
I found one nice tutorial on this but it is with VB.Net (not VS2008) -
[URL] (the problem I get with VS2008 - can's see Authenticode Signing check box, or add ActiveX to Toolbox).
View 3 Replies
Nov 7, 2012
So I have written as part of an application some code that on my clients website pulls some information from SQL server and uses it to create a new file using a Word with bookmarks as a template. It works fine on my development machine, but not on my production server with the error: "Cannot create ActiveX component.: Word.Application". Now I have been approaching this as if it is an issue with Office, but it occurred to me that this might be another issue. Maybe some security issue with ASP.NET? My original thought was it was some kind of compatibly problem as I had Office 2007 on my machine and 2010 on the server.
Code:
Protected Sub btnCreate_Click(sender As Object, e As System.EventArgs) Handles btnCreate.Click
Dim objWord As Object
Dim objDoc As Object
Dim strContractFile As String = "~Documents" & txtContractFile.Text
Dim strContractFilePath As String = Server.MapPath(strContractFile)
[Code] .....
View 5 Replies
Dec 23, 2010
I need a multiple file uploader dialog,that means I can able to select multiple files at a time in file upload window.How can I achieve this task? I gone through Google and I came to know that we can achieve this using silverlight and flash plugins,but these are not recomandable in my application. Is there any open source(i.e free) ActiveX controls for Multi file Uploader? Is it possible to create own ActiveX control to achieve this task.
View 4 Replies
Nov 24, 2010
I want to Create Watcher Component how to create ?
ie: I created one Queue ( Private queue ) using MSMQ so the watcher Component will listen the Queue is there any msg if any message available on that Queue.
I have to do some process ie: pass that msg to Business Layer for further manipulation and keep on watch the queue for any other message.
View 1 Replies
Feb 26, 2011
May i know how to create Component class in asp.net.i was used the following code in VB.net but inASP.net there is no Componentclass file in
Add->Newitem
(how to create textbox with only your can enter numbers only)
My code to create text that only accept Number and also some color change.................
Public Class ZillisisNumberTextBox
Inherits TextBox
Private Sub ZillisisNumberTextBox_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Enter
Try
Me.BackColor = Color.LemonChiffon
Me.Font = New System.Drawing.Font("Verdana", 8.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub ZillisisNumberTextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
Try
If Not IsNumeric(e.KeyChar) And e.KeyChar <> System.Convert.ToChar(Keys.Back) And e.KeyChar <> System.Convert.ToChar(Keys.Delete) Then
e.Handled = True
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub ZillisisNumberTextBox_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Leave
Try
Me.BackColor = Color.White
Me.Font = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
View 11 Replies
Mar 25, 2010
t MVC. and creating a server object through bellow code in VB.Net
Dim htpTest As
New
Object()
htpTest = Server.CreateObject("MSXML2.ServerXMLHTTP")
when I run this code it show error "The component 'MSXML2.ServerXMLHTTP' cannot be created. Apartment threaded components can only be created on pages with an <%@ Page aspcompat=true %> page directive."
I have done this change on my View(.aspx) and set AspCompat="true". But still Error is same.
View 2 Replies
Jul 20, 2010
I'm trying to use MS IME on a server to retrieve some Japanese info in a silverlight app. The app accesses to the server by using WCF, but when calling a CoCreateInstance to create a IFELanguage2, it gives me -2147467262. The same code I'm using on the server actually works pretty fine on a WPF app.
Here is the code,
// ...omit
Guid imeGuid;
int errCode = Ole32.CLSIDFromString("MSIME.Japan", out imeGuid);
WinBase.CheckError(errCode);
Guid feLangIID = new Guid(Constants.IID_IFELanguage2);
IntPtr ppv;
errCode = Ole32.CoCreateInstance(imeGuid, IntPtr.Zero, Ole32.CLSCTX.CLSCTX_ALL, feLangIID, out ppv);
WinBase.CheckError(errCode); // errCode is 2147467262
IFELanguage IfeLanguage = Marshal.GetTypedObjectForIUnknown(ppv, typeof(IFELanguage)) as IFELanguage;
errCode = IfeLanguage.Open();
WinBase.CheckError(errCode);
// ...omit
Do I need to setup anything to use the MS IME on a server side? I'm running the app on the following environment, IIS7 .NET Framework 4.0 Windows 7 pro 64 bit VS2010
View 1 Replies
Jul 19, 2010
I have searched everywhere and can't find a great solution. All I want to do is have about 40 extra fields that save to a SQL database when creating a new user. Will also need to keep the functionality of roles so I don't want to completely override the built in functions.
I have seen the ability to put the data into a profile, but as I understand that will not save to the database in a form that I could join/select against.
There's the ability to tie onto the end of the CreateUserWizard1_CreatedUser, but then it's an extra select/insert into a separate table. Would be nice if I could keep everything in 1 function and in 1 table.
So what is the best way to add a bunch of extra fields into the database when creating a new user?
View 3 Replies
Aug 3, 2010
I am trying to stop the data flow when certain conditions happen in the script component. Like if a row in the data set has an invalid date, I dont want that dataset to be inserted in the tables or go through OLEDB Destination, rather I want the entire data flow for that dataset to stop and go back to the control flow page.
I have tried mulitple solutions but nothing worked. Conditional Split ends up inserting the correct rows, but I just dont want anyting to be inserted when one row is bad, where as I do want the entire dataset to be inserted if all rows are good.
How can I fail the component when certain conditions happen int eh script component.
View 1 Replies
Jan 5, 2010
I want to create a reusable user control which contains a date time picker in asp.net. Need to add this user control in a grid view as column.While clicking the column,date time picker has to be displayed.Which is the suitable method,Creating the component or creating the user control. Also want to know, How to add this component in to the toolbox?
View 2 Replies
Sep 24, 2010
I have VS 2010 and I getting this error ? How do I fix this ?
"unable to create the component used to generate asp.net intellisense information.This can occur if VS or the .Net framework is not installed properly"
View 3 Replies
May 18, 2010
I would like to know how can I list for every page (child page) selected the number and id of localize component in the current page. I need this to update resources files, a button will be on the master page and when they click on it, they will go to a page which show up every data in the resource file.
View 1 Replies
Feb 10, 2011
i got a problem.. how i can declare template textbox in a datagrid at code behind? i already make a stored procedure and put the update query inside it.. if i declare the textbox inside code behind(.aspx.vb).. there will be an error.. " there is already a component named "txtitem1"component must have a unique name.."
Dim con As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString1"))
Dim cmd As New SqlCommand
Dim sda As New SqlDataAdapter
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "ETendering3"
cmd.Parameters.Add("@item", SqlDbType.NVarChar).Value = txtitem1.Text
cmd.Parameters.Add("@price", SqlDbType.Decimal).Value = txtprice1.Text
cmd.Parameters.Add("@remark", SqlDbType.NVarChar).Value = txtremark1.Text
cmd.Parameters.Add("@consump", SqlDbType.Decimal).Value = txtconsump1.Text
cmd.Parameters.Add("@value", SqlDbType.Decimal).Value = txtvalue1.Text
cmd.Connection = con
Try
con.Open()
DataGrid12.DataSource = cmd.ExecuteReader()
DataGrid12.DataBind()
Finally
con.Close()
End Try
con.Dispose()
cmd.Dispose()
con = Nothing
cmd = Nothing
_______________________________________________________
.aspx
<Columns>
<asp:BoundColumn DataField="Listing_Id" HeaderText="Listing"></asp:BoundColumn>
<asp:BoundColumn DataField="No" HeaderText="No"></asp:BoundColumn>
<asp:BoundColumn DataField="Item_Category" HeaderText="Category"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Description">
<ItemTemplate>
<asp:TextBox id=TextBox1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Item_Description") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtitem1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Price" FooterText=" 10/50">
<ItemTemplate>
<asp:TextBox id=TextBox3 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Price") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtprice1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Remarks">
<ItemTemplate>
<asp:TextBox id=TextBox2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Remark") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtremark1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Consumption">
<ItemTemplate>
<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Consumption") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="txtconsump1"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Value">
<ItemTemplate>
<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Value") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="txtvalue1"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
</Columns>
View 38 Replies
Mar 7, 2011
I have created a webservice to populate bookmark fields in a word document with values passed out from an adobe flex app. The document is based on a .dot template that is held on a share on the server. The aspnet user has read access to the share If i run the asmx on my local machine, it all works fine. If i run the asmx when deployed to the webserver I get an error "cannot create activex component" returned. I have set impersonate = true in the web.config on the webservice that is deployed on the server. The code for the webservice itself is very simple:
[Code]....
I have also checked that the microsoft.office.interop.word is in the gac on the server (i am using office 2003). I really don't understand what the issue is, obviously for the application to go live the webservice will have to be deployed to the server and I am happily calling other webservices that exist on the server from my flex application with no issues.
View 7 Replies
Jan 21, 2010
i created one ActiveX control in VB6 i need to use this ActiveX cotrol. how to register and how to add to AspX page.
View 7 Replies
Jun 28, 2010
I made a proje in asp.net which makes scan,resize...I used wia(Windows Image Acquisition).if I,m in local when I press scan button project works.but I published this project on the web it does not work on the web.I heart I need to write a activex control to work client scanner.however I do not have any idea to write it.
View 1 Replies
Jan 17, 2010
How can I call exe which is made by vb.net and then my web site can use it as a link for opening. If user does not install it, the warning window will help u install the exe, just like report builder in reporting service?
View 7 Replies
Dec 29, 2010
I have created a windows control and hosted it into my web application. I created that because I need to do some system level tasks through web application. The issue is that I need to show a modalpopup on that form and the activex control is coming on top of modal popup, rest is fine.
View 5 Replies
Jan 16, 2010
I'm building CAB for ActiveX contol and I need the following clarification:I've control.ocx which have 2.0.0.1 version. When I'm embedding my control I'm putting the following tag:Tommorow, I'm adding new functionality to my ocx and versing it as 3.0.0.1How my tag should look like? Should it content codebase="control.cab#Version=3,0,0,1" attribute? Is it correct?Can I set version for cab file?How can I tell my client to update my ActiveX component?
View 1 Replies
Jul 5, 2010
I have written an activex user control to get an image from a user's clipboard. I have a method to get the byte stream for this image. I want to embed this into a asp.net webforms page (C#).
I am not sure how to call this method from the "code behind" portion of the asp.net page by using c#. I am not able to access the object from the "code behind" portion.
I am trying to accompish this by using Javascript but I keep getting the error:
Microsoft JScript runtime error: 'ScreenCapMod1' is undefined
This is the HTML code:
<div id="panelScn" style="height:258px;">
<object id="ScreenCapMod1" name="ScreenCapMod1" height="812" width="689"
classid="ScreencaptureActiveX.dll#Screencapture_ActiveX.ScreenCapModule">
</object>
[Code]....
View 1 Replies