.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

COM Add-in for VB.NET Epic Fail: HELP !

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application
 

I am frustrated as I have tried to get a COM add-in to work with Expression web 4 now for days and it won't work.  The error I get is:

[12:02:21 PM] Error: Could not load type 'Expression_Web_4_AddIn.Connect' from assembly 'MyXWebAddIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

I have literally tried everything that I can think of.  I'm not seeing what is wrong or missing.  I would appreciate any help that I can get.

This is my code:

 

#Region "Imports"
Imports System
Imports System.Diagnostics
Imports System.Runtime.InteropServices
Imports System.Windows
Imports Extensibility
Imports Microsoft.Expression.Web
Imports Microsoft.Expression.Framework
Imports Microsoft.Expression.Web.Interop
Imports Microsoft.Expression.Web.Interop.Designer
Imports Microsoft.Expression.Web.Interop.Legacy
Imports stdole
#End Region


Namespace Expression_Web_4_AddIn
    ' http://www.squidoo.com/access-shared-add-in
    ' http://blogs.msdn.com/b/jdixon/archive/2010/08.aspx

#Region "Read me for Add-in installation and setup information"
    'When run, the Add-in wizard prepared the registry for the Add-in.
    'At a later time, if the Add-in becomes unavailable for reasons such as:
    '  1) You moved this project to a computer other than which is was originally created on.
    '  2) You chos


View Complete Post


More Related Resource Links

URL Rewrite causes AppSettings to Fail?

  

Hi there,

I just implemented basic URL rewriting to change a page from, for example, /member.aspx?id=123 to /member.aspx/erik.  That works and I'm happy with it.  However, I am now getting an error message that states "the connectionstring property has not been initialized".  Normally, I've been storing the connectionstring in web.config, and I access it with:

Dim Connect As SqlConnection = New SqlConnection
Dim ConnectString As String
ConnectString = ConfigurationManager.AppSettings("linktomysite")
Connect.ConnectionString = ConnectString
Connect.Open()

This is what I do on every other page of the site and it works fine.  The only way it will work on the page where I'm URL re-writing, however, is if I replace "ConfigurationManager.AppSettings("linktomysite")" with the actual connection string itself.  For security reasons, obviously I would prefer to keep that info out of the page.  What can I do?

Thanks,

Erik


$.ajax post from asp.net page and __viewstate causing call to fail

  

Hello

Now I know that I won't be sending viewstate and eventvalidation in my ajax calls and that I will only want to send the actual form fields for efficiency purposes but I will need to know the answer to this question, to inform the more junior members of the team and my manager, so if anyone has any answers they are most welcome.

I have a simple form as follows

<form id="form1" runat="server"> 
<p>Field1: <

VS 2010 XAML Design View Load always fail with a Type Load Exception

  
Create a new WPF project in VS and change nothing. The Design View will fail to load with the error below. Error    1    Could not load type 'Microsoft.Expression.DesignModel.Core.ISharedInstanceBuilder' from assembly 'Microsoft.Expression.DesignModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Microsoft.Expression.DesignModel is an assembly from Expression Blend. I ever installed Blend 4 RC and uninstall and install Blend 4. I Reflector the assembly I have under Blend 4 bin folder. And cannot find a interface named ISharedInstanceBuilder. But the WPF project is a Template project without any changes. How it get related with Blend 4? And how to fix it? Thanks.  

How to make SSIS Package Fail when something goes wrong

  
Hello, Is there any way I can make the package (SSIS 2005) fail when something happen? Like: if some value become zero I will to make the package fail from with in the SSIS, so that the AgentJOB  that started this package will know? Thanks, Prabhat Nath

Transactional Publication With Article Using DATE Datatype Causes Snapshot Agent to Fail with Error

  
So I am using SQL Server 2008 Enterprise Edition (64Bit) and have run into a strange problem that is baffling me. I have two tables that I need to replicate.  They are identical in specification except the name (one is for monthly stats and one daily stats) CREATE TABLE [dbo].[statsDailyLite]( [EntryDate] [date] NOT NULL, [SetID] [int] NOT NULL, [ProductID] [smallint] NOT NULL, [Hooks] [int] NOT NULL, [AdViews] [int] NOT NULL, [Clicks] [int] NOT NULL, [UAdViews] [int] NOT NULL, CONSTRAINT [PK_statsDailyLite] PRIMARY KEY CLUSTERED ( [EntryDate] ASC, [SetID] ASC, [ProductID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ) GO CREATE TABLE [dbo].[statsMonthlyLite]( [EntryMonth] [date] NOT NULL, [SetID] [int] NOT NULL, [ProductID] [smallint] NOT NULL, [Hooks] [int] NOT NULL, [AdViews] [int] NOT NULL, [Clicks] [int] NOT NULL, [UAdViews] [int] NOT NULL, CONSTRAINT [PK_statsMonthlyLite] PRIMARY KEY CLUSTERED ( [EntryMonth] ASC, [SetID] ASC, [ProductID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ) GO They both conatin a thousand or so test rows of data, and they are both in a transactional publication going to another SQL 2008 box. Now when the tables are empty

Distributed Transactions fail on Linked server

  
We get the below error while performing a distributed transaction on linked server. We have several linked servers configured in the source server and all of them succeed with the distributed transaction except on one.   We did all the basic troubleshooting and moreover the distributed transactions work fine if we use a remote server instead.   Need your expert guidance in resolving this issue     Error:   OLE DB provider "SQLNCLI10" for linked server "SERVERNAME.REDMOND.CORP.MICROSOFT.COM" returned message "No transaction is active.". Msg 7391, Level 16, State 2, Line 3 The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "SERVERNAME.REDMOND.CORP.MICROSOFT.COM" was unable to begin a distributed transaction.     Test code:   begin distributed transaction   select top 10 * from [SERVERNAME.REDMOND.CORP.MICROSOFT.COM].master.sys.objects   ROLLBACK     Source server :      Microsoft SQL Server 2008 (RTM) - 10.0.1779.0 (X64)        Nov 12 2008 12:10:04        Copyright (c) 1988-2008 Microsoft Corporation        Enterprise Edition (64-bit) on Windows NT 6.0 <X64> (Build 6001: Service Pack 1) (VM)     Target server :     Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86)        Jul  9 2008 14:43:34        Copyright (c) 1988-2008 Microsoft Corporation        Enterprise Edition

Upload File through SQL reporting manager fail

  
Hi Support, I encounter error message when I upload the .rdl file at SQL report manager. The error message as below: The report definition is not valid. Details: '.', hexadecimal value 0x00, is an invalid character. Line 700, position 10. (rsInvalidReportDefinition) The server we are running on version: Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64)   Mar 29 2009 10:11:52   Copyright (c) 1988-2008 Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: ) Does SQL 2008 standard sp1 support SQL reporting services? Appreciate if someone know the answers, Thank You! Regards, SiewHiong    

Fail to create window in C++ DLL called from C#

  
Can anyone help here, please? http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/5b47544c-8151-4c8a-a8c3-14fbeabbbb41 Thanks in advance.

SQL 2008 Upgrade Standard to Enterprise: Fail

  
I'm trying to upgrade an existing SQL Server 2008 SP1 Standard Edition to Enterprise.  Running the enterprise edition maintenance->Upgrade Edition wizard first got me the dreaded "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." Eventually, I found an entry on Connect that mentioned closing all other windows and ensuring that the installer has the focus and this got me past that error.  Now that I can run the edition upgrade through to successful completion, it's not actually doing anything. Edition still reports as "Standard" and enterprise features such as "Compress Backups" do not work. I've run the upgrade twice and restarted the system to no effect. Before I do a "Rip and Replace" does anyone have any ideas on how to actually get the edition upgrade to work? Steve G. OS:    Windows Server 2008 R2 DB:    Product: SQL Server Standard Edition (64-bit)   Version: 10.0.2531.0 P.S. Just in case someone asks, yes, I did follow the instructions located here.

WPF GUI fail to update -MVVM

  
Hi, I'm new to WPF and using MVVM in my application. The GUI has a data grid bound to a observablecollection. Then I run a second thread to update a field on the collection object. The drid won't get updated until I click on the cell. Can somebody tell me what I'm missing ? Thanks v much. Vijay

Report subscriptions fail due to security extension exception

  
Hi,     We are using SSRS 2008 with Custom Security extension for all authentication and authorization.     When trying to use report subscription attaching actual reports (not a link to the report), we get the following error. Question:       1. Can we use report subsription (as attachment) with custom authentication?       2. Can we use external email addresses for email subscription? Actual Error: processing!WindowsService_10!1130!07/08/2010-11:35:11:: w WARN: Data source 'Historic_Agreement_Report_Model': Report processing has been aborted. processing!WindowsService_10!1130!07/08/2010-11:35:11:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;  Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.    at Microsoft.ReportingServices.Library.Security.get_AuthorizationExtension()    at Microsoft.ReportingServices.Library.Security.get_CachedAuthorizationExtension()    at Microsoft.ReportingServices.Library.Security.CheckAccess(I

SQL Job does not fail if Targeted drive does not exist

  
I created a job Copy backups to M drive which copies backup files from one folder to another, this job runs ok, The only problem is the job does not fail if there are no backups to copy and also if the target locatioin folder on the M drive or the M drigve it self is not available. I would like the job to fail if there are no backup files to copy and also if the Target drive is unavailable Any ideas... Thanks   USE master declare @sql varchar(2000) set @sql = 'copy "D:\Program Files\Microsoft SQL Server\MSSQL\Backup\Sam\SAM.BAK" "M:\Program Files\Microsoft SQL Server\MSSQL\Backup\Sam\SAM_' + CAST(DATEPART(YEAR,GETDATE()) AS VARCHAR(4)) +  RIGHT('0' + CAST(DATEPART(MONTH,GETDATE()) AS VARCHAR(2)),2) +  RIGHT('0' + CAST(DATEPART(DAY,GETDATE()) AS VARCHAR(2)),2) + '.BAK"' exec master..xp_cmdshell @sql set @sql = 'copy "D:\Program Files\Microsoft SQL Server\MSSQL\Backup\master\master.bak" "M:\Program Files\Microsoft SQL Server\MSSQL\Backup\master\master_' + CAST(DATEPART(YEAR,GETDATE()) AS VARCHAR(4)) +  RIGHT('0' + CAST(DATEPART(MONTH,GETDATE()) AS VARCHAR(2)),2) +  RIGHT('0' + CAST(DATEPART(DAY,GETDATE()) AS VARCHAR(2)),2) + '.BAK"' exec master..xp_cmdshell @sql set @sql = 'copy "D:\Program Files\Microsoft SQL Server\MSSQL\Backup\msdb\msdb.ba

fail to invoke webservice

  
I write an outlook addin in C# and it invokes a cli c++ dll. In the dll, it fails to invoke webservice method in some machines of windows 7. I debug and find error codes in atlspriv.inl and atlhttp.ini. I think it's thread synchronization.I fixed it by modifying microsoft codes.solution is as follows: Syncdatacomponentdll fail to call webservice method in some machines of windows 7.This is a Microsoft bug. It’s related to thread synchronization.   The Error codes are in the files of vs2005. So please modify them. 1.                             %intallpath%(such as C:\Program Files\Microsoft Visual Studio 8) \VC\atlmfc\include\atlhttp.inl   Function: inline bool CAtlHttpClientT<TSocketClass>::ReadSocket() throw() Source error codes: if (!bRet)    return bRet;   Correct codes: //fix microsoft bug happen in some machine of windows 7!                 if (!bRet)                 {                    int nNum = 0;             &n

Hosting WCF Services (NetTcp and WS-HTTP) on a windows MCSC fail over cluster

  
Hi I have a set of WCF Services that use the above protocols. How do i host these in a MCSC Cluster and expose them to the clients ? When hosting the service which is the IP i should use ? The Virtual IP of the Cluster ?

Appsettings config section in web.config cause WCFTestClient to fail

  
i have a WCf project, when i add the following code to the configuration file (Web.config): <configuration> <appSettings> <add key="hello" value="Monday" /> </appSettings> ..... ... .... i get this error when trying to debug: "Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information." when i drop the appsettings, the WCFTestClient opens. how do i define constants in the web.config if not in that way ?

MySite creation fail - There has been an error creating the personal site. Contact your site adminis

  

Hi.

I have a MOSS 2007 installation patched up to Cumulative Patch December, but are experiencing some issues with MySite.

When users access MySite, they recieve this errormessage in their browser: There has been an error creating the personal site. Contact your site administrator for more information.

This is followed up with this logged event on the server:

 

My Site creation failure for user 'DOMAIN\username' for site url 'https://mysite.domain.com/personal/domain_user'. The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException: A failure was encountered while attempting to create the site. ---> Microsoft.SharePoint.SPException: User cannot be found .
   at Microsoft.SharePoint.Administration.SPSiteCollection.Add(SPContentDatabase database, String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerEmail, String secondaryContactLogin, String secondaryContactName, String secondaryContactEmail, String quotaTemplate, String sscRootWebUrl, Boolean useHostHeaderAsSiteName)
   at Microsoft.SharePoint.Administration.SPSiteCollection.Add(String siteUrl, String title, String description, UInt32 nLCID, String webTemplate, String ownerLogin, String ownerName, String ownerE

sql sever agent fail

  
if sql server agent fail in sql server what we can do? plz give me the answer
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend