mkaply / ff-activities

Automatically exported from code.google.com/p/ff-activities
Other
0 stars 0 forks source link

Error installing accelerator #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Direct Firefox to the Install.htm file
2. Click on install button

What is the expected output? What do you see instead?
Expected: successful installation
Instead:
"The activity provider could not be installed.
There was a problem with the activity provider's information"

What version of the product are you using? On what operating system?
Firefox 3.5.6, XP SP3

Please provide any additional information below.
Install.htm file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Install Acronym Accelerator</title>
</head>
<body>
<button id="Installer"

onclick="window.external.AddService('http://echo/Acronyms/Accelerator.xml')">
    Add Acronyms to the shortcut menu in Internet Explorer 8</button> 

</body>
</html>

Accelerator.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<os:openServiceDescription
    xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
    <os:homepageUrl>http://echo/acronyms/</os:homepageUrl>
    <os:display>
        <os:name>Look up Acronym</os:name>
        <os:description>Look up Mission Planning Acronyms.</os:description>
    </os:display>
    <os:activity category="Define">
        <os:activityAction context="selection">
            <os:preview
action="http://echo/acronyms/acronym.asmx/GetDefinition?term={selection}" />
            <os:execute
action="http://echo/acronyms/acronym.asmx/GetDefinition?term={selection}" />
        </os:activityAction>
    </os:activity>
</os:openServiceDescription>

Original issue reported on code.google.com by rickspie...@gmail.com on 21 Dec 2009 at 6:30

GoogleCodeExporter commented 9 years ago
Can you provide a website that has an install link for that accelerator?

Thanks

Original comment by mka...@gmail.com on 28 Jan 2010 at 1:54

GoogleCodeExporter commented 9 years ago
I am having the same issue.  Is there a way to find out what is wrong with the
"activity provider's information"?  I wrote the XML file myself and it works 
with IE 8.

Original comment by cwa...@travant.com on 3 Feb 2010 at 7:25

GoogleCodeExporter commented 9 years ago
I can't provide access to the website, as it is an Intranet site.
The xml file is in the previous post, here is the install file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 
1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Install Acronym Accelerator</title>
</head>
<body>
<button id="Installer"
    onclick="window.external.AddService('http://echo/Acronyms/Accelerator.xml')">
    Add Acronyms to the shortcut menu in Internet Explorer 8</button> 

</body>
</html>

Original comment by rickspie...@gmail.com on 3 Feb 2010 at 9:00

GoogleCodeExporter commented 9 years ago
So the problems I generally see where these won't install are mistakes in the 
XML
that Microsoft allows.

Sometimes it's silly stuff like the doctype has to be the very first line in 
the file
with no space at the beginning. I'll see what I can figure out.

Original comment by mka...@gmail.com on 3 Mar 2010 at 3:36

GoogleCodeExporter commented 9 years ago
@rickspiewak - I think the problem with your XML file is that the preview nodes'
action attributes are missing the ending quotes (").

Original comment by cwa...@travant.com on 19 Mar 2010 at 6:04

GoogleCodeExporter commented 9 years ago
Any updates on this?  Perhaps you could post an XML file you know that works so 
we
can compare or even use it as a template?  I've validated my XML file with
http://www.w3schools.com/xml/xml_validator.asp and it passed.

Original comment by cwa...@travant.com on 19 Mar 2010 at 6:05

GoogleCodeExporter commented 9 years ago
The missing end quotes is apparently an artifact of the way I pasted it, in the 
*real* file they are there.

Original comment by rickspie...@gmail.com on 22 Mar 2010 at 6:11

GoogleCodeExporter commented 9 years ago
I've found, that all addresses (domain names) should end with something like 
".xxx".
That is, it's not working, because you write "echo" instead of "example.com" 
etc.
For a workaround, I've added entry in a hosts file (I'm on Windows) "127.0.0.1 
loc.a"
and changed "localhost" to "loc.a" in the XML file.

Original comment by bariu...@gmail.com on 28 Mar 2010 at 10:07

GoogleCodeExporter commented 9 years ago
This was my issue as well.  My xml file URLs just referenced the machine name.  
Once 
I changed ALL references to machine.local (after modifying my host file), then 
I was 
able to install my accelerator.  It took me a couple of tries because at first 
I 
forgot to change the homepageUrl and icon nodes too.

Thanks for the help!

Original comment by cwa...@travant.com on 29 Mar 2010 at 1:01

GoogleCodeExporter commented 9 years ago
This fixed my problem. I used the fully qualified name of the server, and it 
works 
the same as on IE. The only peculiarity was that the "Preview" mode only worked 
once 
I set my accelerator to be a default.

Thanks!

Original comment by rickspie...@gmail.com on 29 Mar 2010 at 1:39

GoogleCodeExporter commented 9 years ago
One more thing <g>. The accelerator menu doesn't appear when highlighting text 
in a 
hyperlink. This is different than IE8 behavior.

Original comment by rickspie...@gmail.com on 29 Mar 2010 at 1:44

GoogleCodeExporter commented 9 years ago
And one more: the Preview window always pops up on the primary screen in a two-
screen setup. This also differs from IE8.

Original comment by rickspie...@gmail.com on 29 Mar 2010 at 1:57