Cannot Create Activex Component Error In Asp.net
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Getting Started/"Cannot create ActiveX Component" "Cannot create ActiveX Component" [Answered]RSS 10 replies Last post Oct 16, 2009 04:46 AM by sathyam ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply rudyasp Member 3 Points 55 Posts "Cannot create ActiveX Component" Jun 17, 2007 12:37 AM|rudyasp|LINK Hello! I have a website buit, that uses Acrobat Pro 8to open PDF. Workd great on my develope computer. Running VS 2005/vb.net. Butwhen It goes up on the IIS server, and Itry to open a .pdf, I get the error. I havr tried tt register the DLL with regsvr32. But I keep getting an error that says error registering. I'm not 100% percent what file I'm suppose to be grabing. I have 3 dll's that I brougt into VS. I try to register those, it fails. There are so many difffrent locations, I'm not asure what file I need, or what it wants? Any thoughts? Thanks! Rudy Reply Prashant Kum... Star 8561 Points 2044 Posts Re: "Cannot create ActiveX Component" Jun 17, 2007 12:58 AM|Prashant Kumar|LINK Are you opening the PDF doc on the server or the client? Which DLL did you register on the server? Which DLLs have you brought into VS? Post more details. In case you are using the objects of Acrobat Pro 8 for opening the PDF doc on the server, you will have to install Acrobat Pro 8 on the server. PKS Reply rudyasp Member 3 Points 55 Posts Re: "Cannot create ActiveX Component" Jun 17, 2007 10:59 AM|rudyasp|LINK Hi Prashant! Of course I can give you more details. So first of all, here is my vb.net code to open a document in Acrobat 8. Private Sub StartAcrobatIac()
Dim gPDFPath As String Dim rc As Boolean Dim sStr As Str360 games PC games Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet http://forums.asp.net/t/1122961.aspx?+Cannot+create+ActiveX+Component+ Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/201740 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 7 and Above ASP.NET Administration Cannot Create ActiveX component IIS7 Cannot http://forums.iis.net/t/1202861.aspx?Cannot+Create+ActiveX+component+IIS7 Create ActiveX component IIS7 [Answered]RSS 5 replies Last post Oct 08, 2013 04:42 AM by Terry Guo - MSFT ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads http://support.softartisans.com/kbview.aspx?ID=1418 Unanswered Threads Unresolved Threads Advanced Search Reply babatee 3 Posts Cannot Create ActiveX component IIS7 Oct 07, 2013 10:06 AM|babatee|LINK Good day all, I have developed an asp.net application with vs2008 that cannot create accesses an Excel 2007 file, it runs fine from the development environment, but when deployed to IIS, it gives the error "cannot createActiveX component" Reply lextm 6610 Posts MVP Re: Cannot Create ActiveX component IIS7 Oct 07, 2013 10:33 AM|lextm|LINK Server side Office automation? You need to show some code first. Lex Li http://lextudio.com --------------------------- This posting is provided "AS IS" with no warranties, and cannot create activex confers no rights. Reply babatee 3 Posts Re: Cannot Create ActiveX component IIS7 Oct 07, 2013 11:06 AM|babatee|LINK Protected Sub btnExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExcel.Click ValidateContacts() If Session("Validate") = True Then Exit Sub End If If chkInterpolate.Checked = True Then If txtMinTop.Text = "" Then lblError.Text = "Min Value Required" Exit Sub End If If txtMaxTop.Text = "" Then lblError.Text = "Max Value Required" Exit Sub End If If txtStepTop.Text = "" Then lblError.Text = "Steps Required" Exit Sub End If End If Dim oExcel As Object ' Excel.ApplicationClass Dim oBook As Object 'Excel.WorkbookClass Dim oBooks As Excel.Workbooks 'Start Excel and open the workbook. oExcel = CreateObject("Excel.Application") oExcel.Visible = True oBooks = oExcel.Workbooks oBook = oBooks.Open(MyFileName) oExcel.ActiveWorkbook.Sheets("Sheet1").Activate() oExcel.Run("ClearS") SaveAreaDepth(oExcel) SaveGeneral(oExcel) SaveContacts(oExcel) If chkThickness.Checked = False Then Call SaveBase1(oExcel) End If Call scaling(oExcel) If chkInterpolate.Checked = True Then oExcel.Run("Intepol1") If chkThickness.Checked = False Then oExcel.Run("Intepol2") End If 'Else ' NoInterpolate(oExcel) End If oExcel.Run("splines") oExcel.Run("NET") If chkThickness.Checked = True Then 'oExcel.Run("ConstantDepthNET") SaveAreaDepth2(oExcel) End If If chkThickness.Checked = False Then 'oExcel.Run("splines2") End If oExcel.Run("NETS") oExcel = Nothing oBook = Nothing oBooks = Nothing 'oExcel.Quit() End Sub Reply lextm 66
fail to instantiate the FileUp object with the error "ActiveX component can't create object" Solution There are usually three possible reasons why the FileUp object cannot be instantiated: The server is a 64-bit OS and you are not running your FileUp application in a 32-bit application pool The dll (safileup.dll) was not properly registered The dll does not have read and execute permissions for the account the app pool is running under Most common cause - 64 bit process trying to run a 32-bit dll If the new server is 64-bit, the 1st option above is the most likely cause. Since FileUp is a 32-bit component, it cannot be instantiated from a 64-bit process. The solution is to create an app pool with "Enable 32-Bit Applications" set to "True." If you are also using FileUp in ASP.NET applications, you should also set the Managed Pipeline Mode of the app pool to "Classic". For more information, see How to run fileUp on a 64-bit Windows Operating System Other causes - dll not registered or has incorrect permissions If you determine the issue is not caused by trying to run a 32-bit dll in a 64-bit process, the next step is to find safileup.dll and make sure it is registered and has correct permissions. One quick way to determine whether the dll is registered, and if so where it is located, is to use our Whatdll utility. See this KB article: How-To: Determine the location of the registered COM DLL. Download the whatdll.vbs script, run it in a 32-bit command prompt and enter: whatdll softartisans.fileup If you get an error "Cannot open registry for specified ProgID," that means the dll is not registered. Find the dll and manually register it. (Note: If you ran our automated installer it should be in "Program Files (x86)\SoftArtisans\FileUp\com"). In the command prompt, navigate to the directory containing the dll and enter: regsvr32 safileup.dll If your application is using any of the other components bundled with FileUp, register those as well. See the installation instructions in the documentation for more information about the dlls included with FileUp. If you have confirmed that the dll is registered and the problem still occurs, make sure the dll ha