Installing an Add On created with C#

L

Luis D Rojas

Hi,
I create an add on for outlook with C# ( it is a statics add on that
displays user activity...it would be activated thourgh a button on the
standard toolbar), it compiled, and i run the set up project. no issues were
produced. The problem is that the button is not appearing in the standard
toolbar

Any Suggestion?

Best Regards,
 
H

Helmut Obertanner

What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 
M

Milo¹ Vukov

I have one little question.
It is possible to debug Shared Addin for Outlook? (.NET 2003 C#)
And how to do this?

regards,Milos Vukov


Helmut Obertanner said:
What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


... and IT works!
 
H

Helmut Obertanner

Go inte Project Settings | Configuration Settings | Debugging
Start Application -> Choose your Outlook.EXE

set a breakpoint in OnConnection, press run in Visual Studio.

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Milo¹ Vukov said:
I have one little question.
It is possible to debug Shared Addin for Outlook? (.NET 2003 C#)
And how to do this?

regards,Milos Vukov
 
L

Luis D Rojas

It gives me an error about not enough rights to do the installation process,
but then i hit retry and it says that installation was succesfull.
I´m debugging it, and the error is when i try to add a new button, the error
happens in this sentence
btnGetEMailStats = (CommandBarButton)commandBars["Standard"].Controls.Add(
1,System.Reflection.Missing.Value, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value );

It is related with the rights stuff?
It would be weird since i´m the machine admin

Best Regards

Luis D. Rojas
Helmut Obertanner said:
What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 
H

Helmut Obertanner

Hello Luis,

in your setup project,
have you excluded the Interop PIA's and office.dll from setup project ?

Maybe on the target machine you don't have the PIA's installed.

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Luis D Rojas said:
It gives me an error about not enough rights to do the installation
process,
but then i hit retry and it says that installation was succesfull.
I´m debugging it, and the error is when i try to add a new button, the
error
happens in this sentence
btnGetEMailStats = (CommandBarButton)commandBars["Standard"].Controls.Add(
1,System.Reflection.Missing.Value, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value );

It is related with the rights stuff?
It would be weird since i´m the machine admin

Best Regards

Luis D. Rojas
 
L

Luis D Rojas

Hello Helmut,
i see two office.dll being pointed, is that correct.
The only diference is the name, office.dll( source path.
C:\WINDOWS\assembly\GAC\office\11.0.0.0__71e9bce111e9429c\office.dll)
and Office.dll ( source path:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Office.dll )

and at my add in project i only have a reference to a Outlook.dll, plus
Office.dll ( refering about what i think Office references should be.

Best Regards,

Helmut Obertanner said:
Hello Luis,

in your setup project,
have you excluded the Interop PIA's and office.dll from setup project ?

Maybe on the target machine you don't have the PIA's installed.

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Luis D Rojas said:
It gives me an error about not enough rights to do the installation
process,
but then i hit retry and it says that installation was succesfull.
I´m debugging it, and the error is when i try to add a new button, the
error
happens in this sentence
btnGetEMailStats = (CommandBarButton)commandBars["Standard"].Controls.Add(
1,System.Reflection.Missing.Value, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value );

It is related with the rights stuff?
It would be weird since i´m the machine admin

Best Regards

Luis D. Rojas
Helmut Obertanner said:
What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Newsbeitrag
Hi,
I create an add on for outlook with C# ( it is a statics add on that
displays user activity...it would be activated thourgh a button on the
standard toolbar), it compiled, and i run the set up project. no issues
were
produced. The problem is that the button is not appearing in the
standard
toolbar

Any Suggestion?

Best Regards,
 
L

Luis D Rojas

Hi again!
i´m getting this error when i Debug your code ( I did thanks to your last
post on this thread! )
and i get this error
System.ExecutionEngineException
public void OnStartupComplete(ref System.Array custom)
{
CommandBars commandBars = applicationObject.ActiveExplorer().CommandBars;
try
{
commandBars.Add("custom", MsoBarPosition.msoBarTop, false, true );
}
}
I got the error in the Add expression.
Thanks in advance!

Luis D Rojas said:
Hello Helmut,
i see two office.dll being pointed, is that correct.
The only diference is the name, office.dll( source path.
C:\WINDOWS\assembly\GAC\office\11.0.0.0__71e9bce111e9429c\office.dll)
and Office.dll ( source path:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Office.dll )

and at my add in project i only have a reference to a Outlook.dll, plus
Office.dll ( refering about what i think Office references should be.

Best Regards,

Helmut Obertanner said:
Hello Luis,

in your setup project,
have you excluded the Interop PIA's and office.dll from setup project ?

Maybe on the target machine you don't have the PIA's installed.

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Luis D Rojas said:
It gives me an error about not enough rights to do the installation
process,
but then i hit retry and it says that installation was succesfull.
I´m debugging it, and the error is when i try to add a new button, the
error
happens in this sentence
btnGetEMailStats = (CommandBarButton)commandBars["Standard"].Controls.Add(
1,System.Reflection.Missing.Value, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value );

It is related with the rights stuff?
It would be weird since i´m the machine admin

Best Regards

Luis D. Rojas
:

What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Newsbeitrag
Hi,
I create an add on for outlook with C# ( it is a statics add on that
displays user activity...it would be activated thourgh a button on the
standard toolbar), it compiled, and i run the set up project. no issues
were
produced. The problem is that the button is not appearing in the
standard
toolbar

Any Suggestion?

Best Regards,
 
L

Luis D Rojas

Sorry i wrote something incorrect. it is MY code :D which is causing the
error :D

Luis D Rojas said:
Hi again!
i´m getting this error when i Debug your code ( I did thanks to your last
post on this thread! )
and i get this error
System.ExecutionEngineException
public void OnStartupComplete(ref System.Array custom)
{
CommandBars commandBars = applicationObject.ActiveExplorer().CommandBars;
try
{
commandBars.Add("custom", MsoBarPosition.msoBarTop, false, true );
}
}
I got the error in the Add expression.
Thanks in advance!

Luis D Rojas said:
Hello Helmut,
i see two office.dll being pointed, is that correct.
The only diference is the name, office.dll( source path.
C:\WINDOWS\assembly\GAC\office\11.0.0.0__71e9bce111e9429c\office.dll)
and Office.dll ( source path:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Office.dll )

and at my add in project i only have a reference to a Outlook.dll, plus
Office.dll ( refering about what i think Office references should be.

Best Regards,

Helmut Obertanner said:
Hello Luis,

in your setup project,
have you excluded the Interop PIA's and office.dll from setup project ?

Maybe on the target machine you don't have the PIA's installed.

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

It gives me an error about not enough rights to do the installation
process,
but then i hit retry and it says that installation was succesfull.
I´m debugging it, and the error is when i try to add a new button, the
error
happens in this sentence
btnGetEMailStats = (CommandBarButton)commandBars["Standard"].Controls.Add(
1,System.Reflection.Missing.Value, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value );

It is related with the rights stuff?
It would be weird since i´m the machine admin

Best Regards

Luis D. Rojas
:

What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Newsbeitrag
Hi,
I create an add on for outlook with C# ( it is a statics add on that
displays user activity...it would be activated thourgh a button on the
standard toolbar), it compiled, and i run the set up project. no issues
were
produced. The problem is that the button is not appearing in the
standard
toolbar

Any Suggestion?

Best Regards,
 
H

Helmut Obertanner

Remove the ref to the 2nd dll, it's the wrong added from Wizard.

--
regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Luis D Rojas said:
Hello Helmut,
i see two office.dll being pointed, is that correct.
The only diference is the name, office.dll( source path.
C:\WINDOWS\assembly\GAC\office\11.0.0.0__71e9bce111e9429c\office.dll)
and Office.dll ( source path:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Office.dll )

and at my add in project i only have a reference to a Outlook.dll, plus
Office.dll ( refering about what i think Office references should be.

Best Regards,

Helmut Obertanner said:
Hello Luis,

in your setup project,
have you excluded the Interop PIA's and office.dll from setup project ?

Maybe on the target machine you don't have the PIA's installed.

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Newsbeitrag
It gives me an error about not enough rights to do the installation
process,
but then i hit retry and it says that installation was succesfull.
I´m debugging it, and the error is when i try to add a new button, the
error
happens in this sentence
btnGetEMailStats =
(CommandBarButton)commandBars["Standard"].Controls.Add(
1,System.Reflection.Missing.Value, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value );

It is related with the rights stuff?
It would be weird since i´m the machine admin

Best Regards

Luis D. Rojas
:

What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Newsbeitrag
Hi,
I create an add on for outlook with C# ( it is a statics add on that
displays user activity...it would be activated thourgh a button on
the
standard toolbar), it compiled, and i run the set up project. no
issues
were
produced. The problem is that the button is not appearing in the
standard
toolbar

Any Suggestion?

Best Regards,
 
L

Luis D Rojas

Hi, thanks for your advice,
i fix it removing the Office reference from the generated project and i add
it manually from the COM libraries

Best Regards

Helmut Obertanner said:
Remove the ref to the 2nd dll, it's the wrong added from Wizard.

--
regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Luis D Rojas said:
Hello Helmut,
i see two office.dll being pointed, is that correct.
The only diference is the name, office.dll( source path.
C:\WINDOWS\assembly\GAC\office\11.0.0.0__71e9bce111e9429c\office.dll)
and Office.dll ( source path:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Office.dll )

and at my add in project i only have a reference to a Outlook.dll, plus
Office.dll ( refering about what i think Office references should be.

Best Regards,

Helmut Obertanner said:
Hello Luis,

in your setup project,
have you excluded the Interop PIA's and office.dll from setup project ?

Maybe on the target machine you don't have the PIA's installed.

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Newsbeitrag
It gives me an error about not enough rights to do the installation
process,
but then i hit retry and it says that installation was succesfull.
I´m debugging it, and the error is when i try to add a new button, the
error
happens in this sentence
btnGetEMailStats =
(CommandBarButton)commandBars["Standard"].Controls.Add(
1,System.Reflection.Missing.Value, System.Reflection.Missing.Value,
System.Reflection.Missing.Value, System.Reflection.Missing.Value );

It is related with the rights stuff?
It would be weird since i´m the machine admin

Best Regards

Luis D. Rojas
:

What is the loadbehavior ?
Is the AddIn visbile for all users or only for the current user ?
How did you installed your AddIn, as User or as Administrator ?
Have you implemented Error Logging ?
What UserRights has the User running the AddIn ?

--
regards,

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!

Newsbeitrag
Hi,
I create an add on for outlook with C# ( it is a statics add on that
displays user activity...it would be activated thourgh a button on
the
standard toolbar), it compiled, and i run the set up project. no
issues
were
produced. The problem is that the button is not appearing in the
standard
toolbar

Any Suggestion?

Best Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top