Version 1.2, NuGet

Dec 29, 2010 at 7:18 AM

Hi,

thanks for the new version.

I don't know if it's somehow related to this new release, but i can't either update nor install it with NuGet.

I get following error:

PM> Update-Package RazorEngine
Update-Package : The remote server returned an error: (500) Internal Server Error.
At line:1 char:15
+ Update-Package <<<<  RazorEngine
    + CategoryInfo          : NotSpecified: (:) [Update-Package], WebException
    + FullyQualifiedErrorId : NuGet.VisualStudio.Cmdlets.UpdatePackageCmdlet

Btw. the new release dll is still versioned as 1.1.0.0 (1.1.4015.1704)

Best regards

Coordinator
Dec 29, 2010 at 9:14 AM

I'm wondering if this is to do with the removal of the RazorEngine.Templates library from the core distribution.  Can you try removing the references manually and re-add RazorEngine v1.2?

Dec 29, 2010 at 9:22 AM

Doesn't work. Tried adding it to an unrelated blank project with no previous references to RazorEngine.

Install-Package : The remote server returned an error: (500) Internal Server Error.
At line:1 char:16
+ Install-Package <<<<  RazorEngine
    + CategoryInfo          : NotSpecified: (:) [Install-Package], WebException
    + FullyQualifiedErrorId : NuGet.VisualStudio.Cmdlets.InstallPackageCmdlet

Dec 29, 2010 at 7:53 PM

Could you try running fiddler so you can catch the 500 error and get more info on it?

Also, make sure you're running the latest NuGet, and have it pointed to the latest feed (http://go.microsoft.com/fwlink/?LinkID=206669)

Coordinator
Dec 29, 2010 at 8:06 PM

Strangely enough it the 500 server error is the only one that doesn't show up :)

twitter reply from davidebbo: Darn, moving #nuget server from EFCTP4 to EFCTP5 is proving harder then we were hoping. The EF team is on top of it, so I'm hopeful!

Dec 29, 2010 at 8:08 PM

The EF thing is unrelated, as the live server is still on EFCTP4 :)

Try clearing your IE cache.  There is a button in Fiddler to do this.  Also, did you verify that you're pointing to the right feed?

Dec 29, 2010 at 8:09 PM

Also, type $Host.Version from the NuGet console to check what build you're running.

Coordinator
Dec 29, 2010 at 8:13 PM
Edited Dec 29, 2010 at 8:13 PM

 

Snippet

Major  Minor  Build  Revision
-----  -----  -----  --------
1      0      11217  102     

Server Error in '/GalleryServer' Application.


Could not find a part of the path 'C:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Server\App_Data\Packages\RazorEngine\'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Server\App_Data\Packages\RazorEngine\'.

Source Error:

 

Line 36:                 string packageDirectory = GetPackageDirectory(packageId, packageVersion);
Line 37:
Line 38: FileInfo fileInfo = new DirectoryInfo(packageDirectory).GetFiles(string.Format("{0}-{1}.*", packageId, packageVersion)).Single();
Line 39: string fileExtension = fileInfo.Name.GetFileExtension();
Line 40: string packageFileName = string.Format("{0}-{1}.{2}", packageId, packageVersion, fileExtension);


Source File: c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Core\Impl\PackageFileGetter.cs    Line: 38

Stack Trace:

[DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Server\App_Data\Packages\RazorEngine\'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +216
System.IO.FileSystemEnumerableIterator`1.CommonInit() +386
System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler) +798
System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) +86
Gallery.Core.Impl.PackageFileGetter.GetPackagePath(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Core\Impl\PackageFileGetter.cs:38

[PackageFileDoesNotExistException: Package with ID 'RazorEngine' and Version '1.2' does not have a corresponding file.]
Gallery.Core.Impl.PackageFileGetter.GetPackagePath(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Core\Impl\PackageFileGetter.cs:48
Gallery.Core.Impl.PackageFileGetter.GetPackageStream(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Core\Impl\PackageFileGetter.cs:23
Gallery.Server.Controllers.PackageController.Download(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Server\Controllers\PackageController.cs:56
lambda_method(Closure , ControllerBase , Object[] ) +179
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +248
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
System.Web.Mvc.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() +125
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +640
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +312
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +691
System.Web.Mvc.Controller.ExecuteCore() +162
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +58
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +20
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +453
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

 

<!-- [DirectoryNotFoundException]: Could not find a part of the path 'C:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Server\App_Data\Packages\RazorEngine\'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileSystemEnumerableIterator`1.CommonInit() at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler) at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) at Gallery.Core.Impl.PackageFileGetter.GetPackagePath(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Core\Impl\PackageFileGetter.cs:line 38 [PackageFileDoesNotExistException]: Package with ID 'RazorEngine' and Version '1.2' does not have a corresponding file. at Gallery.Core.Impl.PackageFileGetter.GetPackagePath(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Core\Impl\PackageFileGetter.cs:line 48 at Gallery.Core.Impl.PackageFileGetter.GetPackageStream(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Core\Impl\PackageFileGetter.cs:line 23 at Gallery.Server.Controllers.PackageController.Download(String packageId, String packageVersion) in c:\inetpub\OrchardGalleryNimbles\GalleryServer\GalleryServer\src\Gallery.Server\Controllers\PackageController.cs:line 56 at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__4() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->

Coordinator
Dec 29, 2010 at 8:14 PM
Edited Dec 29, 2010 at 8:16 PM

Clearing cache still results in the same error.

The Feed I'm pulling from appears to be http://packages.nuget.org/GalleryServer/FeedService.svc/

Dec 29, 2010 at 8:17 PM

Investigating.

Dec 29, 2010 at 8:19 PM

Something was messed up on server.  Can you try now?

Dec 29, 2010 at 8:21 PM

You may need to restart VS if you get an error about the package content being invalid.

Coordinator
Dec 29, 2010 at 8:25 PM

Awesome, a restart of visual studio solved that - thanks, davidebbo!