Unable to find package 'YUICompressor.NET'

Aug 28, 2011 at 8:35 PM

Is this a known issue? I am unable to *ONLY* install YUICompressor.NET nuget package. Here is what I get;

PM> Install-Package YUICompressor.NET
Install-Package : Unable to find package 'YUICompressor.NET'.
At line:1 char:16
+ Install-Package <<<<  YUICompressor.NET
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

The other packages just worked fine. Thought it would be a DNS issue but I have tried it under 3 DNS Servers.

Developer
Aug 28, 2011 at 9:37 PM

What package source do you have selected in the drop down?

Aug 29, 2011 at 8:08 AM

Official nuget package source.

I have found this issue while I was trying to install the combres.mvc. It resolves all the dependencies but YUICompressor.NET

Developer
Aug 29, 2011 at 8:14 AM

What version of nuget are you using? You can type $host.Version in the console or look in the extension manager.

Aug 29, 2011 at 8:15 AM

I am trying to install it with Command Line but no luck : 

http://i.imgur.com/267AJ.png

Aug 29, 2011 at 8:17 AM

latest I guess.

I am checking it right now....

here is the result : 

PM> $host.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
1      4      20701  9038   

Aug 29, 2011 at 8:23 AM

here is another weird thing. It verifies that there is package called YUICompressor.NET but cannot find it when I am trying to install it : 

http://i.imgur.com/JrORc.png

Aug 30, 2011 at 7:30 PM

Could you run fiddler while doing those operations to see what requests are being made? Thanks!

Sep 5, 2011 at 6:45 AM

I was finally able to get the http trace for the action. I used command line to install the package and see what I get :

First Request :

request;

GET http://packages.nuget.org/v1/FeedService.svc/ HTTP/1.1
Host: packages.nuget.org
Connection: Close


response;

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 513
Content-Type: application/xml;charset=utf-8
Server: Microsoft-IIS/7.0
DataServiceVersion: 1.0;
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 05 Sep 2011 06:34:22 GMT
Connection: close

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<service xml:base="http://packages.nuget.org/v1/FeedService.svc/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
  <workspace>
    <atom:title>Default</atom:title>
    <collection href="Packages">
      <atom:title>Packages</atom:title>
    </collection>
    <collection href="Screenshots">
      <atom:title>Screenshots</atom:title>
    </collection>
  </workspace>
</service>


Second one :

request;

GET http://packages.nuget.org/v1/FeedService.svc/$metadata HTTP/1.1
Host: packages.nuget.org
Connection: Close


Response;

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 5636
Content-Type: application/xml;charset=utf-8
Server: Microsoft-IIS/7.0
DataServiceVersion: 1.0;
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 05 Sep 2011 06:34:23 GMT
Connection: close

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
  <edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0">
    <Schema Namespace="Gallery.Infrastructure.FeedModels" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2006/04/edm">
      <EntityType Name="PublishedPackage" m:HasStream="true">
        <Key>
          <PropertyRef Name="Id" />
          <PropertyRef Name="Version" />
        </Key>
        <Property Name="Id" Type="Edm.String" Nullable="false" />
        <Property Name="Version" Type="Edm.String" Nullable="false" />
        <Property Name="Title" Type="Edm.String" Nullable="true" m:FC_TargetPath="SyndicationTitle" m:FC_ContentKind="text" m:FC_KeepInContent="true" />
        <Property Name="Authors" Type="Edm.String" Nullable="true" m:FC_TargetPath="SyndicationAuthorName" m:FC_ContentKind="text" m:FC_KeepInContent="true" />
        <Property Name="PackageType" Type="Edm.String" Nullable="true" />
        <Property Name="Summary" Type="Edm.String" Nullable="true" m:FC_TargetPath="SyndicationSummary" m:FC_ContentKind="text" m:FC_KeepInContent="true" />
        <Property Name="Description" Type="Edm.String" Nullable="true" />
        <Property Name="Copyright" Type="Edm.String" Nullable="true" />
        <Property Name="PackageHashAlgorithm" Type="Edm.String" Nullable="true" />
        <Property Name="PackageHash" Type="Edm.String" Nullable="true" />
        <Property Name="PackageSize" Type="Edm.Int64" Nullable="false" />
        <Property Name="Price" Type="Edm.Decimal" Nullable="false" />
        <Property Name="RequireLicenseAcceptance" Type="Edm.Boolean" Nullable="false" />
        <Property Name="IsLatestVersion" Type="Edm.Boolean" Nullable="false" />
        <Property Name="ReleaseNotes" Type="Edm.String" Nullable="true" />
        <Property Name="Prerelease" Type="Edm.Boolean" Nullable="false" />
        <Property Name="VersionRating" Type="Edm.Double" Nullable="false" />
        <Property Name="VersionRatingsCount" Type="Edm.Int32" Nullable="false" />
        <Property Name="VersionDownloadCount" Type="Edm.Int32" Nullable="false" />
        <Property Name="Created" Type="Edm.DateTime" Nullable="false" />
        <Property Name="LastUpdated" Type="Edm.DateTime" Nullable="false" m:FC_TargetPath="SyndicationUpdated" m:FC_ContentKind="text" m:FC_KeepInContent="true" />
        <Property Name="Published" Type="Edm.DateTime" Nullable="true" />
        <Property Name="ExternalPackageUrl" Type="Edm.String" Nullable="true" />
        <Property Name="ProjectUrl" Type="Edm.String" Nullable="true" />
        <Property Name="LicenseUrl" Type="Edm.String" Nullable="true" />
        <Property Name="IconUrl" Type="Edm.String" Nullable="true" />
        <Property Name="Rating" Type="Edm.Double" Nullable="false" />
        <Property Name="RatingsCount" Type="Edm.Int32" Nullable="false" />
        <Property Name="DownloadCount" Type="Edm.Int32" Nullable="false" />
        <NavigationProperty Name="Screenshots" Relationship="Gallery.Infrastructure.FeedModels.PublishedPackage_Screenshots" FromRole="PublishedPackage" ToRole="Screenshots" />
        <Property Name="Categories" Type="Edm.String" Nullable="true" />
        <Property Name="Tags" Type="Edm.String" Nullable="true" />
        <Property Name="Dependencies" Type="Edm.String" Nullable="true" />
        <Property Name="ReportAbuseUrl" Type="Edm.String" Nullable="true" />
        <Property Name="GalleryDetailsUrl" Type="Edm.String" Nullable="true" />
      </EntityType>
      <EntityType Name="PublishedScreenshot">
        <Key>
          <PropertyRef Name="Id" />
        </Key>
        <Property Name="Id" Type="Edm.Int32" Nullable="false" />
        <Property Name="PublishedPackageId" Type="Edm.String" Nullable="true" />
        <Property Name="PublishedPackageVersion" Type="Edm.String" Nullable="true" />
        <Property Name="ScreenshotUri" Type="Edm.String" Nullable="true" />
        <Property Name="Caption" Type="Edm.String" Nullable="true" />
      </EntityType>
      <Association Name="PublishedPackage_Screenshots">
        <End Role="PublishedPackage" Type="Gallery.Infrastructure.FeedModels.PublishedPackage" Multiplicity="*" />
        <End Role="Screenshots" Type="Gallery.Infrastructure.FeedModels.PublishedScreenshot" Multiplicity="*" />
      </Association>
      <EntityContainer Name="GalleryFeedContext" m:IsDefaultEntityContainer="true">
        <EntitySet Name="Packages" EntityType="Gallery.Infrastructure.FeedModels.PublishedPackage" />
        <EntitySet Name="Screenshots" EntityType="Gallery.Infrastructure.FeedModels.PublishedScreenshot" />
        <AssociationSet Name="PublishedPackage_Screenshots" Association="Gallery.Infrastructure.FeedModels.PublishedPackage_Screenshots">
          <End Role="PublishedPackage" EntitySet="Packages" />
          <End Role="Screenshots" EntitySet="Screenshots" />
        </AssociationSet>
        <FunctionImport Name="Search" EntitySet="Packages" ReturnType="Collection(Gallery.Infrastructure.FeedModels.PublishedPackage)" m:HttpMethod="GET">
          <Parameter Name="searchTerm" Type="Edm.String" Mode="In" />
          <Parameter Name="targetFramework" Type="Edm.String" Mode="In" />
        </FunctionImport>
      </EntityContainer>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>

and the last one :

request :

GET http://packages.nuget.org/v1/FeedService.svc/Packages()?$filter=tolower(Id)%20eq%20'yu%C4%B1compressor.net'&$orderby=Id&$skip=0&$top=30 HTTP/1.1
DataServiceVersion: 1.0;NetFx
MaxDataServiceVersion: 2.0;NetFx
User-Agent: NuGet Command Line/1.5.20830.9001 (Microsoft Windows NT 6.0.6002 Service Pack 2)
Accept: application/atom+xml,application/xml
Accept-Charset: UTF-8
Host: packages.nuget.org
Accept-Encoding: gzip, deflate

response :

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Type: application/atom+xml;charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
DataServiceVersion: 1.0;
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 05 Sep 2011 06:34:23 GMT
Content-Length: 430

&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;`I&#65533;%&/m&#65533;{J&#65533;J&#65533;&#65533;t&#65533;&#65533;`$&#1552;@&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;iG#)&#65533;*&#65533;&#65533;eVe]f@&#65533;&#55164;&#65533;&#65533;{&#65533;&#65533;&#65533;{&#65533;&#65533;&#65533;;&#65533;N'&#65533;&#65533;&#65533;?\fdl&#65533;&#65533;J&#65533;&#606;!&#65533;&#65533;&#65533;?~|?"&#65533;&#65533;ez&#65533;&#65533;MQ-?&#65533;hw&#65533;&#65533;Q&#65533;/&#65533;&#1388;X^|&#65533;&#1146;=&#65533;>&#65533;(m&#65533;l9&#65533;&#65533;j&#65533;&#65533;&#65533;u&#65533;|&#65533;{&#65533;&#65533;&#65533;&#65533;&#65533;<&#65533;&#65533;&#65533;&#65533;I&#65533;&#65533;&#65533;&#65533;]=&#65533;{w&#65533;M&#65533;fy3^&#65533;/&#65533;v\&#65533;w/w&#65533;>&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;rz&#65533;#&#65533;&#65533;l&#65533;&#65533;{&#65533;t&#65533;/&#65533;f&#65533;(&#65533;u&#65533;T&#65533;&#65533;xZ-&#65533;f&#65533;&#65533;&#65533;&#65533;&#65533;&#899;&#65533;;wgYK1&#65533;&#444;&#65533;&#65533;&#65533;&#65533;&#65533;]&#65533;m&#65533;&#65533;suu5&#65533;&#65533;&#65533;h&#65533;{&#65533;&#65533;&#65533;&#65533;&#65533;#m&#65533;>n&#65533;&#65533;&#65533;&#65533;&#65533;zE&#65533;m&#65533;w&#65533;GG/u&#65533;&#65533;&#65533;&#65533;w&#1196;&#65533;)&#65533;&#1745;&#65533;&#65533;7&#65533;zE&#65533;&#23779;&#65533;&#65533;&#65533;&#65533;&#55111;&#65533;;&#65533;&#65533;&#65533;|&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;z|&#65533;|&#65533;M&#65533;u;&#65533;j&#65533;&#65533;&#65533;Zf&#65533;<&#65533;&#65533;=&#65533;&#65533;}&#65533;&#65533;,&#65533;o&#65533;:/?&#65533;&#65533;&#65533;&#65533;&#65533;RF&#65533;&#65533;&#65533;L&#65533;&#65533;&#65533;:?&#65533;&#65533;&#65533;&#65533;w1&#65533;G&#65533;c&#1383;&#65533;!&#65533;&#65533;

And the response I have got from the command line is "Unable to find package YUICompressor.NET"

Sep 5, 2011 at 6:52 AM

yeah, find the bug. Not sure if this is a bug though :

my machine is in Turkish and when I try to install YUICompressor.NET, it makes a request to following feed :

http://packages.nuget.org/v1/FeedService.svc/Packages()?$filter=tolower(Id)%20eq%20'yuıcompressor.net'&$orderby=Id&$skip=0&$top=30

as you can see it tries to find package as yuıcompressor.net but the request should have been as follows :

http://packages.nuget.org/v1/FeedService.svc/Packages()?$filter=tolower(Id)%20eq%20'yuicompressor.net'&$orderby=Id&$skip=0&$top=30

Developer
Sep 5, 2011 at 7:26 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.