 |
|
 |
Need 2 outlook ad-on developers for a large project. Anybody interested?
|
|
|
|
 |
|
 |
Hello,
I have got an Outlook 2007 addin that works fine with the manifest from the primary output from the addin-project except for the automatic downloads. The publish process via VS2005 does not show any errors or warnings.
So I tried to manually add the published manifest and installed the addin on the client computer. With this manifest the addin fails to load with the error message saying that an exception occured during load. I only got the error text in German, but I think the message is commonly known.
I tried adding FullTrust to the deployment-site (IIS on the development computer) but that did not work.
When I try to load the .application file with a browser (msie as well as firefox) I get an error message giving the following three reasons for the failure (Once again I only got the German error text):
- The manifest could be invalid or the file could not be opened.
- Deployment manifest is not semantically valid.
- Application reference identity must be strongly named.
I am able to download the manifest-file when I enter its location in the browser, so it can be opened.
I signed my assembly with a key file with a string name.
Finally I do not see anything else that could be wrong.
Any ideas are appreciated.
Klemens Kanal
|
|
|
|
 |
|
 |
Hello friends!
I want to get body of new arrived mail. I'm the beginner. I had tried to get the same by using OnNewMail event. I'm not able to get the body of new mail. But it prompts me whenever new mail arrives.
Here is my code -
void __stdcall CAddin::OnNewMail()
{
MessageBox(NULL,"New Mail Arrived","Success",0);
CComQIPtrApplication;
CComPtrExplorer;
Application =m_Application;
Explorer =Application->ActiveExplorer();
CComQIPtr spInspector;
IDispatch *CurrentItem;
HRESULT hr1 = spInspector->get_CurrentItem (&CurrentItem);
if (FAILED (hr1))
MessageBox(NULL,"get_CurrentItem","ERROR",0);
CComPtr MailItem;
MailItem=reinterpret_cast(CurrentItem);
BSTR strbodyofmail;
MailItem->get_Body (&strbodyofmail);
MessageBox (NULL, _com_util::ConvertBSTRToString (strbodyofmail),"",0);
}
Is there any another way to get the body of new arrived mail.
I appreciate your immediate help.
Thanks & regards,
Shashi
Shashikant Shinde
|
|
|
|
 |
|
 |
I'm using Excel 2003 and VSTO 2005
I've successfully achieved an addin that installs correctly via setup project
I then followed step 5 to combine that with the publish option (publishing to a file share).
Everything auto updates fine under this scenario. However, I wanted to test what would happen if the connection to the server was unavailable so I renamed the publish directory and started Excel.
While Excel is loading I get an error message: "Failed to update customization from the specified deployment" (more details available here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1245917&SiteID=1[^])
Following this error, my addin disappears and subsequently fails to load. In order to get it working again I am forced to uninstall/reinstall the addin using the setup project.
In further experimentation I discovered that the publish option does not copy the deployment files to the local directory. Instead, when you change the installFrom reference, all it does is cause the addin to load from the deployment location, not the local one.
Does anyone have any ideas of how to get the addin running locally and only to update the local copy if a new update is available rather then running it from the publish location?
|
|
|
|
 |
|
 |
In order to get around this issue I essentially had to write my own modification of auto update functionality.
I read in local and remote manifests, compared them, if newer then started a sidecar app that closed the current instasnce of excel, copied the updates and started a new isntance
|
|
|
|
 |
|
 |
Hi all -
I have heard from one source that they did run into this 'Server being offline' issue with their Outlook Plug-in. That was because the Users may open up their Outlook on their laptop when they are not connected to their network (offline mode). This used to disable their plug-in (due to the Exception) and the Users were not very happy with the deployment.
To address this issue, they had to come up with their custom auto update functionality. They don't do any PUBLISH. Instead, they maintain the latest Deployment Version in a database (say, SQL SERVER) and copy the .MSI files (installation files for the END USER) on some server maually, once they make some revision to their Solution.
When the SERVER is ONLINE (normal sitation), in the On_Start event, the program would first compare the Version in the local machine (using Reflection, they can get to the AssemblyInfo.cs information to know the version of the solution that the user has) with the information from SQLSERVER (which will have the latest version).
If different, they would open up a dialog box giving the User an Option to download the .MSI file from the Server. If the User clicks YES, they would force OUTLOOK to close and the user can download (shows the SAVE/OPEN option to the user) the .MSI to his/her local machine. The User is then supposed to INSTALL the latest .MSI file.
If they click NO, they just continue processing (older version of the PLUG-IN on the user machine is loaded). Ofcourse, the properties in the deployment project should be such that it does allow removal of any old version and reinstallation.
If the Server is OFFLINE, they would TRY-CATCH the Exception and DO NOTHING. That way, the Plug-in is not DISABLED on the User machine.
I have personally not run into these issues, but this is something to consider if someone runs into these.
Sanjeev
|
|
|
|
 |
|
 |
I'm currently trying the whole ClickOnce deployment for a VSTO 2005 outlook add-in for outlook 2003.
Everything is fine. Building is fine, permissions and CAS is fine. When bulding the project and installing it on any client machine, prerequisites are fine, everything works perfectly, i'm just sick and tired of having to uninstall on target machines and installing again everytime a tiny update is made!
Step 5 i thought might be the problem. I've set things up, published to a common drive, J:\ and nothing is updating. On examining the .manifest on the target machine, there is no url direction, but when i try and perform step 5, i am fine up until i publish, then try and add the published .manifest from bin/release/.. etc. etc. As soon as i add this file, then re-build the setup project, the published project in bin/release... disappears, and so therefore the build fails as the file no longer exists.
Its been bugging me for a while now, can you help me with this ClickOnce deployment?
Thanks,
Jay
|
|
|
|
 |
|
 |
I have the same problem.
I tried to copy the manifest file, and place it in another folder,
then add this file in a new location to the Setup project.
So when the Setup project is rebuilded and the manifest disappers,
it can be loaded from the new location.
But this didnt work, and now the add in says that cant be loaded.
Im using Office 2007 Beta 2 Technical Refresh.
Coul be that the problem ???
Thanks
jalekz
|
|
|
|
 |
|
 |
I have the same problem and still no solution
I have added the reference manually in the manifest file, but the add-in failed to load next time I start Outlook. This really makes no sense.
modified on Wednesday, May 21, 2008 8:31 AM
|
|
|
|
 |
|
 |
Hi All
I have added a control to the new mail window. Problem is, is in my code (vb6,outlook XP) i have the following code
My problem is that I doesn't recognise the recipients as well other fields of mail (subject, body). and
MsgBox ("To= " & mTo & " Cc=" & mCc & " Bcc=" & mBcc) shows nothing in TO,CC,BCC etc.
Please have a look at mycode & suggest me what is wrong there
Thanks in Advance
Private Sub myOlInspectors_NewInspector(ByVal Inspector As Outlook.Inspector)
On Error Resume Next
Dim myInsp As Outlook.Inspector
Set myInsp = Inspector
If myInsp.CurrentItem.Class = olMail Then
Set newMail = myolApp.CreateItem(olMailItem)
'MsgBox ("in new mail")
myInsp.CommandBars.Item("Standard").Visible = True
Set btnNewSend = myInsp.CommandBars("Standard").FindControl(Tag:="btnNewSend")
btnNewSend.Delete
Set btnNewSend = myInsp.CommandBars("Standard").Controls.Add(Type:=msoControlButton, Temporary:=False)
With btnNewSend
.Caption = "New Send"
.Tag = "btnNewSend"
.Style = msoButtonIconAndCaption
.FaceId = 133
End With
newMail = myInsp.currentItem
End If
Private Sub btnNewSend_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean)
Dim mTo As String
Dim reply As String
Dim msgString As String
Dim mCc As String
Dim mBcc As String
MsgBox (newMail.To)
mTo = Trim(newMail.To)
mCc = Trim(newMail.CC)
mBcc = Trim(newMail.BCC)
MsgBox ("To= " & mTo & " Cc=" & mCc & " Bcc=" & mBcc)
If mTo = "" And mCc = "" And mBcc = "" Then
reply = MsgBox(" you have not specified any recipients for this message." & vbCrLf & " Do you want to continue?", vbYesNo + vbQuestion + vbApplicationModal, "My Addin")
If reply = vbNo Then
CancelDefault = True
Exit Sub
Else
newMail.To = "myId@mySite.com"
' MsgBox ("To: " & newMail.To & vbCrLf & "cc: " & newMail.CC & vbCrLf & "Bcc: " & newMail.BCC & vbCrLf & "Body: " & newMail.Body)
End If
End If
newMail.Send
End Sub
I am using VB 6.0 for Office and VB.NET 2005 for Desktop Application
axn
|
|
|
|
 |
|
 |
Hi Sanjeev,
Great articals on addin deployment, they cover a lot of ground.
However after many attemps I still cannot get updates deployed to the client.
Currently After the install, upgrades run directly from the server.
The updated files are not transfered to the client except for the manifest file. ie myApp.dll.manifest.
When I examine the "iss" log file this is what I see for an update.
14:09:50 10.140.41.74 GET /myAppUpdates/WebSite/myApp.application 200
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en-US/myApp.resources.DLL 404
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en-US/myApp.resources 404
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en-US/myApp.resources.EXE 404
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en-US/myApp.resources 404
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en/myApp.resources.DLL 404
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en/myApp.resources 404
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en/myApp.resources.EXE 404
14:09:52 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/en/myApp.resources 404
14:09:53 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/myApp.dll.config 200
14:09:53 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/myApp.dll.config 200
14:09:53 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/myApp.dll.config 200
14:09:53 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/myApp.dll.config 200
14:09:53 10.140.41.74 GET /myAppUpdates/WebSite/myApp_1.0.1.19/myApp.dll.config 200
200 is a success code in iis
404 is a file not found code in iis
Several things about this puzzle me. When i publish my addin the process does not create a en or en-US folder.
I do not understand where the above list of required files is stored. (I have looked in the manifest and application files)
They do not match the files that publish has produced. The list is below.
myApp.application
myApp.dll
myApp.dll.config
myApp.dll.manifest
Interop.ADODB.dll
Interop.CDO.dll
I think the entries in CASPOL are ok as the addin will run direct from the server.
Hope you can cast some light on this. Thanks in advance
Colin
PS I can post manifest and application files if required but wanted to keep it short.
|
|
|
|
 |
|
 |
Colin -
It appears that there are some dependent dlls that the loader is unable to locate. I haven't worked on something where I ran into such issues. Try your luck at the below link (though it is for Excel, the same should apply for OUTLOOK). There are some MSDN links that the author is directly the reader to.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1008834&SiteID=1
Good luck!
Sanjeev
|
|
|
|
 |
|
 |
Thanks for the quick response Sanjeev.
I have to work on another project for the next few weeks.
If I ever sort this out I'll post what I find.
Thanks
Colin
|
|
|
|
 |
|
 |
I have developed an add-in which installs fine on Xp and W2K and W2K3. Once I install terminal services, the add-in will no longer load. Any advice?
|
|
|
|
 |
|
 |
Sanjeev,
Your two articles on vsto outlook add-in development/deployment were very helpful, but we (a co-worker and I) have still been unable to get everything to work as we expected.
In addition to everything you mentioned, we seem to have run into a security issue with needing to trust the URL of the server were the code is published to (in addition to the folder the plug-in was installed to locally). Once we did that, we were able to get our add-in to load on a machine other than the machine we were developing on when the manifest file included in the setup has the full url.
But when we then update the code, build, and publish a new version, our client machine never seems to update the local manifest file or the plug-in .dll file, and never runs the newer bits (even after starting outlook to allow it to update, exiting and restarting outlook).
Any ideas? Thanks!
|
|
|
|
 |
|
 |
It looks like our problem was actually some kind of machine configuration problem. Setting up a clean test box resolved the problem.
|
|
|
|
 |
|
 |
Is there some sample code to use about adding the permissions for the url? I was able to add another code group that gave fulltrust to the url but the add-in still failed to load because of a runtime error. If I install the add-in using the manifest that the primary output adds the add-in works fine.
Royal Hale
-- modified at 8:43 Tuesday 6th February, 2007
|
|
|
|
 |
|
 |
Good article, it's a nightmare trying to deploy vsto (Excel) applications, I had the same application compiled on 2 different machines A and B, and deployed on a target machine, the code deployed from machine B wouldn't run because of 'customized' security issues, but the machines where the code was compiled where identical. After 4 hours of trying to coax the CAS into giving me security I finally gave in. Now I don't get beaten usaually but the vsto and .net should make it easy to deploy apps. Anyway I had to resort to embedding the excel speadsheet in a Windows Form, the idea way but at leat I didn't have those f*cking security issues.
Microsoft, please sort out VSTO deployment and make it easier and whilst you at it make ClickOnce technology easier for deplying applications over a windows domain.
We made the buttons on the screen look so good you'll want to lick them. Steve Jobs
|
|
|
|
 |