NuGet Issue w/ LINQPad Reference in ASP.NET project
Options
Hi,
I'm attempting to build a small web-based LINQPad report server for our team. On my local machine (running out of IIS Express) I have no problem running queries using the Util.Run method, but when deployed to the server it only works if I have no NuGet packages required in the query. When they do, I get the following error:
Any hints?
I'm attempting to build a small web-based LINQPad report server for our team. On my local machine (running out of IIS Express) I have no problem running queries using the Util.Run method, but when deployed to the server it only works if I have no NuGet packages required in the query. When they do, I get the following error:
[Exception: c:\Windows\Temp\LINQPad\_viwuaznf\query_bdathl.cs(23,7) : error CS0246: The type or namespace name 'TrelloNet' could not be found (are you missing a using directive or an assembly reference?)I opened up as much permissions access for the Temp\LINQPad folder as I could, and I gave the IIS application & pool an administrator account to run under, but that did not work. I doubt this is a LINQPad issue, but I don't understand enough about what LINQPad is doing with the NuGet packages, nor how IIS may be restricting that process, to know where to go from here.
]
LINQPad.ChildAppHost.GetResult() +201
LINQPad.ObjectModel.QueryExecuter.AsString() +72
Ipc.Reporting.LinqPadServer.Controllers.ScriptController.Run() in c:\Users\jimcloudman\Source Code\Git\Ipc.Reporting.LinqPadServer\Ipc.Reporting.LinqPadServer\Controllers\ScriptController.cs:133
lambda_method(Closure , ControllerBase , Object[] ) +79
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +247
...
Any hints?
Comments
-
This is a LINQPad bug - Util.Run is not downloading NuGet dependencies automatically when it should. I've just uploaded a new beta to fix this:
http://www.linqpad.net/beta.aspx
This beta also includes an option in Util.Run to force a refresh of NuGet libraries in case the libraries are already present, but you want a more recent version. -
Well that's interesting... When I run the query now, it returns an empty string. On my local machine, or logging into the web server and opening LINQPad, it returns the usual set of results. All are updated to the new beta.
Is there additional information I can provide to help track this down? Thank you for the quick response & rapid program update! -
Does it work if you call it via Util.Run on your local machine?
-
Yes, it does, with the same command that the web server is using.
-
Hi Joe,
Do you have any updates to provide on this?
Thank you!