![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have run into a weird problem; I'm making a C# Outlook addin, register a
form region on HKCU, so far so good. I did then a refactor in code, and I have changed the form name (the string used for GetFormRegionManifest etc. of FormRegionStartup). Everything is ok, *but* notice in the following manifest (I am pasting the full manifest content at the end of the message) after the section !-- exactMessageClassfalse/exactMessageClass --s there is an extra 's' character, which obviously is not correct. The manifest is embedded in addin as a resource (Properties.Resources.DetailsUrlRegion_manifest in the code below) and returned to Outlook using: .... public object GetFormRegionManifest(string FormRegionName, int LCID) { Debug.WriteLine(" GetFormRegionManifest: FormRegionName=" + FormRegionName); if (FormRegionName == "DLC.DetailsUrl") { Debug.WriteLine("MANIFEST:\r\n============\r\n" + Properties.Resources.DetailsUrlRegion_manifest + "\r\n============\r\n"); return Properties.Resources.DetailsUrlRegion_manifest; } return null; } .... If I add more characters after the rogue 's', it's still ok. If I delete the 's', GetFormRegionManifest is still called (obviously), but the form region does not load (i.e. GetFormRegionStorage is not called). Even more, if I revert the order of lines !-- exactMessageClassfalse/exactMessageClass --s formRegionTypeadjoining/formRegionType into formRegionTypeadjoining/formRegionType !-- exactMessageClassfalse/exactMessageClass --s the region again does *not* load. I have cleared the FRMCACHE.DAT (although I don't think it has to do something with it...), but I suspect that is either an XML encoding thing (the file is UTF-8 with signature - Codepage 65001, Line endings - Current setting, Windows CRLF), or how the resource is loaded from file - something related to this. Or Outlook keeps the original (incorrect?) manifest and compares with the actual content and does not hit - I'm really fishing in muddy waters here. Anyways, if someone see this and sounds familiar, please drop me a direction since the actual solution (to let the incorrect XML file...) is way too random to be called a solution, and no internet search hits something similar. Tested on Outlook 2007 en-us, all updates to day, on Windows 7 and Windows XP (both 64-bit). Here is the manifest file content (notice the incorrect 's') and which "works" (i.e. GetFormRegionStorage is called and form region is loaded). ============ START MANIFEST ============ ?xml version="1.0" encoding="utf-8"? FormRegion xmlns="http://schemas.microsoft.com/office/outlook/12/formregion.xsd" nameDLC.DetailsUrl/name formRegionNameDLC Details/formRegionName titleDetails/title !-- exactMessageClassfalse/exactMessageClass --s formRegionTypeadjoining/formRegionType showInspectorComposefalse/showInspectorCompose showInspectorReadtrue/showInspectorRead showReadingPanefalse/showReadingPane addinOLDlc.Connect/addin !-- hiddentrue/hidden -- !-- version1.0/version -- icons !-- icons -- defaultaddin/default unreadaddin/unread readaddin/read repliedaddin/replied forwardedaddin/forwarded unsentaddin/unsent submittedaddin/submitted signedaddin/signed encryptedaddin/encrypted windowaddin/window recurringaddin/recurring !-- page -- pageaddin/page /icons /FormRegion ============ END MANIFEST ============ Thanks, Cristian Amarie |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VSTO Outlook2007 Addin. After switching from 3.5 to 2.0 Framework i get "'MSB3185: EntryPoint not specified for manifest" | Michael Schmitz | Add-ins for Outlook | 1 | April 22nd 09 03:38 PM |
VSTO Outlook2007 Addin. After switching from 3.5 to 2.0 Framework i get "'MSB3185: EntryPoint not specified for manifest" | Michael Schmitz | Outlook - General Queries | 2 | April 21st 09 09:19 PM |
can I delete old manifest files? | lynnebeth1 | Outlook - Installation | 1 | February 17th 09 10:42 AM |
Modify VSTO addin's manifest to work it as Invoker | Dhananjay | Outlook and VBA | 6 | December 18th 07 06:07 PM |
MSVCR80.dll error missing outlook.exe.manifest | TravisG | Outlook - Installation | 2 | June 6th 07 07:18 PM |