गुरुवार, 19 नवंबर 2009

Outlook Addin does not work

I created the Outlook add-in for outlook 2007 using VSTO 2008 while debugging code outlook threw an exception on start as below:

"Could not load file or assembly 'Microsoft.Office.Interop.Word,
Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one
of its dependencies. The system cannot find the file specified."

After doing little research I found usually if we have not installed the
Office 2007 PIA on the development machine outlook an exception at the start.

But that is a necessary component to program against .NET Office
project.

Please try the following steps to resolve the issue,

1.Open the Control Panel and double click the Programs and Features

2.Find the Microsoft Office Enterprise 2007, right click it and choose the
Change option

3.Select the radio button Add or Remove Features and click Continue

4.Select the .NET Programmability Support under Microsoft Office Outlook.
click Continue to go on.

After we install the PIA correctly, we should find the
Microsoft.Office.Interop.Outlook in C:\Windows\Assembly virtual directory.
And this fixed my issue .

The server principal “user” is not able to access the database “db” under the current security context.

I was running into an issue that I really needed to resolve quickly.
I was getting the below error:

The server principal "sqluser" is not able to access the database "db" under the current security context. (Microsoft SQL Server, Error: 916)

After googling a lot I found a blog : https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=354291.

Resolution:
This suggestion solved my problem:
Please try using the following workaround and let us know if that helps:

1) Bring Object Explorer Details window by selecting View --> Object Explorer Details in menu (or hitting F7)
2) In Object Explorer window click at Databases folder
3) In Object Explorer Details window right-click at the column header and deselect Collation
4) Refresh Databases folder.

Solved.

Regards,
Taruna