10
votes

All of this was done on my local machine.

I installed Orchard from within WebMatrix a few days ago (Orchard v 1.3.9)

I installed the Contoso Theme

I followed the instructions for the HelloWorld module and the Simple Commerce Module , and they work fine: this entailed adding modules from the gallery from within the dashboard: like the Code Generation Module

Today, if I try to install any modules from the gallery from within the dashboard, I get the following message with a red background:

Package installation failed.

There was an error installing the requested package. This can happen if the server does not have write access to the '~/Modules' or '~/Themes' folder of the web site. If the site is running in shared hosted environement, adding write access to these folders sometimes needs to be done manually through the Hoster control panel. Once Themes and Modules have been installed, it is recommended to remove write access to these folders.

The remote server returned an error: (404) Not Found.

I go into the Requests section of Web Matrix, and it shows the request to grab the Messaging module: it says

302.0 Object Moved Path C:/Users/Rick/Documents/My Web Sites/RickHodder/Packaging/PackagingServices/InstallGallery

GET http://localhost:36700/Packaging/PackagingServices/InstallGallery?packageId=Orchard.Module.Messaging&version=1.3.0&sourceId=1&redirectUrl=%2FPackaging%2FGallery%2FModules

Did the orchard project change the place where the gallery pulls from? I didnt make any changes to the machine, and I looked in the windows update log, and see nothing that might have change rights.

Any ideas?

7
The head of the orchard project just emailed and said that they did change the location but put in permanent redirects that should be automatically followed. Maybe it hasnt propagated to my isp yet - I'll try tomorrow. - Rick Hodder

7 Answers

8
votes

I think the issue is that the URL is case-sensitive. I had the exact same issue with the new package URL that Bertrand supplied. However, changing the case feedservice.svc to FeedService.svc fixed this. With this gallery URL, I'm now able to install modules from the dashboard:

http://packages.orchardproject.net/FeedService.svc

3
votes

Updated Feed URL:

This answers here should be updated, as the new Gallery Feed URL has changed:

NEW Feed URL: https://orchardgallery.azurewebsites.net/api/FeedService

Steps to update older Orchard versions

Go Admin > Settings > Gallery, then click the "Add Feed" button on the top right to paste the new feed URL.

You can then delete the old one feed URL:

OLD Feed URL: http://packages.orchardproject.net/FeedService.svc

The red error should disappear now from the Modules Gallery section.

2
votes

One thing you may want to try is to set the gallery feed address in the site settings to the new URL, which is if I remember correctly http://packages.orchardproject.net/feedservice.svc

2
votes

I had the same problem and I just fixed it :-) Open the folder "Modules" and "Themes" in the Windows explorer, right-click, Properties > Security > Edit... Set all possible rights to all users you use (for me it was System, MyUsername, Administrators and one other). Then download (not install) the desired theme/module, go back to the dashboard, choose "Themes"/"Modules" > Install from your computer... and it works :-) Hope I could help!

0
votes

I "fixed" it but have no idea what really fixed it - I created a new Orchard site from webmatrix, ran the site, then opened the broken site in web matrix and ran the site, and I was able to see the gallery, and even able to install a module.

Maybe some cache somewhere was updated.

0
votes

I just fixed this problem and here is what I did:

  1. Go to Programs & Features
  2. List item
  3. Click on Turn Windows Features on or off
  4. Click on Internet Information Services

Now, I went through and turned on everything for Web Management Tools and World Wide Web Services because I was missing several items. I didn't have time to try this one at a time to figure out what one actually did it; but after turning these on; the error had finally went away and I could install themes.

I did this in addition to:

  1. Updating the gallery URL to be http://packages.orchardproject.net/FeedService.svc/
  2. Granting everyone full permissions to the directory

Hopefully this will help in the future for anyone else facing this error. If anyone has a chance to pin point down what exact options should be selected in the World Wide Web Services that would be good!

Thanks,

Flea

0
votes

I had the same problem and I finally discovered that the issue was due to a custom theme I've developed. Everything else in Orchard worked perfectly except for module installation.

It seems that, for some reason, the formatting of the Version field in my Theme.txt file was preventing the Orchard 1.8 from being able to install modules from the gallery. I've no idea how the Theme.txt causes the module installation to fail but I know that when the Version field has the value 1, the module installation fails with:

Package installation failed: There was an error installing the requested package. This can happen if the server does not have write access to the '~/Modules' or '~/Themes' folder of the web site. If the site is running in shared hosted environement, adding write access to these folders sometimes needs to be done manually through the Hoster control panel. Once Themes and Modules have been installed, it is recommended to remove write access to these folders.

When I set the Version value to 1.0.0, modules could be installed without problem.