A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , ,

VS 2008 closes at build, Outlook 2007 Add-In





 
 
Thread Tools Display Modes
  #1  
Old June 9th 08, 03:18 PM posted to microsoft.public.outlook.program_forms
KenPalmer
external usenet poster
 
Posts: 7
Default VS 2008 closes at build, Outlook 2007 Add-In

Visual Studio 2008 abruptly closes when I try to build an Outlook 2007 Add In.

My workstation is configured as follows:
* Windows XP Professional
* Outlook 2007 SP1
* Visual Studio Team System 2008 Development Edition
* Microsoft .Net Framework 3.5

Originally I thought this was a code problem in my add-in, or that perhaps
my PC needed to be rebooted. This morning I powered off and rebooted. Here
are the steps to replicate my problem. Additionally, I read that Outlook
needed to be closed before building an add-in. I also tried that, but it
still did not work.

I suspect that this may be related to the registry settings that VS 2008
attempts to make when it builds an Add-In. Here is an excerpt from
Professional C# 2008 that lead me to this hypothesis.

Managing Application-Level Add-Ins
One of the first things you will find when you create an application-level
add-in is that VS carries out all the steps necessary to register the add-in
with the Office application. This means that registry entries are added so
that when the Office application starts, it will automatically locate and
load your assembly. If you subsequently want to add or remove add-ins, then
you must either navigate through Office application settings or manipulate
the registry manually.

Steps to replicate my problem.
1. Boot computer and do not open Outlook.
2. Open VS 2008
3. Select File New Project Visual C# Office 2007 Outlook 2007
Add-In.
4. Choose the default name and then OK.
5. Select Build Build OutlookAddIn1.

The build output window briefly appears and displays the following. Note
this is from a screen shot, and I was unable to read all the contents of this.

Build started: Project OutlookAddIn1, Configuration: Debug Any CPU
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702
/warn:4 /defineEBUG;TRACE
/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\Accessibility.dll
/reference:"C:\Program Files\Microsoft Visual Studio 9

After that Visual Studio 2008 abruptly closes.

This problem also occurs if VB.Net is selected in Step 3. And it occurs if
Outlook 2007 is opened before opening VS 2008.

Some relevant project properties are below (Project OutlookAddIn1
Properties). If you need something else from this let me know and I can
respond.
Target Framework: .NET Framework 3.5
Build Config: Active (Debug)
Platform: Active (Any CPU)
Define DEBUG Constant: Checked
Define TRACE Constant: Checked
Warning Level: 4
Treat warnings as errors: None
Output Path: bin\Debug\
Generate serialization assembly: Auto

Perhaps there is something else I need to install in VS, like a patch or
plug in.

Thanks for your help.

Ads
  #2  
Old June 9th 08, 06:16 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,411
Default VS 2008 closes at build, Outlook 2007 Add-In

I think a VS support forum would be more likely to be able to help with a
problem like this.

Have you tried the VS Detect and Repair?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"KenPalmer" wrote in message
...
Visual Studio 2008 abruptly closes when I try to build an Outlook 2007 Add
In.

My workstation is configured as follows:
* Windows XP Professional
* Outlook 2007 SP1
* Visual Studio Team System 2008 Development Edition
* Microsoft .Net Framework 3.5

Originally I thought this was a code problem in my add-in, or that perhaps
my PC needed to be rebooted. This morning I powered off and rebooted.
Here
are the steps to replicate my problem. Additionally, I read that Outlook
needed to be closed before building an add-in. I also tried that, but it
still did not work.

I suspect that this may be related to the registry settings that VS 2008
attempts to make when it builds an Add-In. Here is an excerpt from
Professional C# 2008 that lead me to this hypothesis.

Managing Application-Level Add-Ins
One of the first things you will find when you create an application-level
add-in is that VS carries out all the steps necessary to register the
add-in
with the Office application. This means that registry entries are added
so
that when the Office application starts, it will automatically locate and
load your assembly. If you subsequently want to add or remove add-ins,
then
you must either navigate through Office application settings or manipulate
the registry manually.

Steps to replicate my problem.
1. Boot computer and do not open Outlook.
2. Open VS 2008
3. Select File New Project Visual C# Office 2007 Outlook 2007
Add-In.
4. Choose the default name and then OK.
5. Select Build Build OutlookAddIn1.

The build output window briefly appears and displays the following. Note
this is from a screen shot, and I was unable to read all the contents of
this.

Build started: Project OutlookAddIn1, Configuration: Debug Any CPU
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig
/nowarn:1701,1702
/warn:4 /defineEBUG;TRACE
/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0. 50727\Accessibility.dll
/reference:"C:\Program Files\Microsoft Visual Studio 9

After that Visual Studio 2008 abruptly closes.

This problem also occurs if VB.Net is selected in Step 3. And it occurs
if
Outlook 2007 is opened before opening VS 2008.

Some relevant project properties are below (Project OutlookAddIn1
Properties). If you need something else from this let me know and I can
respond.
Target Framework: .NET Framework 3.5
Build Config: Active (Debug)
Platform: Active (Any CPU)
Define DEBUG Constant: Checked
Define TRACE Constant: Checked
Warning Level: 4
Treat warnings as errors: None
Output Path: bin\Debug\
Generate serialization assembly: Auto

Perhaps there is something else I need to install in VS, like a patch or
plug in.

Thanks for your help.


  #3  
Old June 9th 08, 07:11 PM posted to microsoft.public.outlook.program_forms
KenPalmer
external usenet poster
 
Posts: 7
Default VS 2008 closes at build, Outlook 2007 Add-In

Ken,
I have not tried Detect and Repair. I assume that would be available via
Control Panel Add Remove Programs Change/Remove to launch the wizard.
I'll give that a shot.

My other projects build with no problem, so that's why I thought to post the
problem on this forum.

Are you able to replicate the problem on your PC?

If the above does not work, I will open an incident ticket with Microsoft.
  #4  
Old June 9th 08, 08:15 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,411
Default VS 2008 closes at build, Outlook 2007 Add-In

No, I have no problems with addins in VS 2008 on any of my setups.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"KenPalmer" wrote in message
...
Ken,
I have not tried Detect and Repair. I assume that would be available via
Control Panel Add Remove Programs Change/Remove to launch the wizard.
I'll give that a shot.

My other projects build with no problem, so that's why I thought to post
the
problem on this forum.

Are you able to replicate the problem on your PC?

If the above does not work, I will open an incident ticket with Microsoft.


  #5  
Old June 9th 08, 08:54 PM posted to microsoft.public.outlook.program_forms
KenPalmer
external usenet poster
 
Posts: 7
Default VS 2008 closes at build, Outlook 2007 Add-In

Thanks Ken. I'm downloading the .iso right now from MSDN. Last week I had
deleted it to make room on my drive for a huge Virtual PC image.

Before doing that I also downloaded the hotfix rollup mentioned in Scott
Gu's blog, but this did not correct the problem.
http://weblogs.asp.net/scottgu/archi...available.aspx
  #6  
Old June 10th 08, 06:04 PM posted to microsoft.public.outlook.program_forms
KenPalmer
external usenet poster
 
Posts: 7
Default VS 2008 closes at build, Outlook 2007 Add-In

Ken,
Thanks again for your help. I've posted this issue at the following thread.
http://forums.microsoft.com/msdn/Sho...62850&SiteID=1

Ultimately I opened a support incident with Microsoft. All future posts,
and the eventual resolution, will be appended to that thread.
  #7  
Old June 10th 08, 07:26 PM posted to microsoft.public.outlook.program_forms
KenPalmer
external usenet poster
 
Posts: 7
Default VS 2008 closes at build, Outlook 2007 Add-In

Uninstalling Power Commands corrected the problem.

Here are steps to replicate the problem with Power Commands from the system
setup indicated at the top of this thread.

1. Install Visual Studio 2008 Power Commands.
2. Open Visual Studio 2008
3. Select File New Project Visual C# Office 2007 Outlook 2007
Add-In.
4. Choose the default name and then OK.
5. Select Build Build OutlookAddIn1.

The Output dialog will open, display a line, and then Visual Studio will
abruptly close.

6. Now close Visual Studio
7. Uninstall Power Commands
8. Open Visual Studio
9. Follow steps 2 through 5.

The Outlook Add-In project will build successfully.

Since I was able to replicate this a couple of times, I’m confident that
this problem is directly related to Visual Studio 2008 Power Commands.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VS 2008 conversion wizard displayed for VS 2008 Outlook 2003 add-in on pc with Outlook 2007 John[_11_] Add-ins for Outlook 0 May 1st 08 09:48 PM
I have Outlook 2007, how can I add 2008 Holidays? cricketjunky Outlook - Calandaring 1 March 8th 08 05:10 PM
Cannot configure Outlook 2007, application closes D. Day[_2_] Outlook - Installation 1 December 17th 07 07:03 PM
How do I add 2008 UK holidays to Outlook 2007? Iain Outlook - Calandaring 1 August 30th 07 04:45 AM
Outlook 2007 / Vista Business (RTM Build 6000) Startup Issue SheridanChico Outlook - Installation 2 November 22nd 06 02:11 AM


All times are GMT +1. The time now is 11:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Refinance - Facebook Proxy - Money - Money - Gas Electricity