Quantcast
Channel: LINQPad Forum
Viewing all 2658 articles
Browse latest View live

Connection list - disabling to connect server during LINQPad start

$
0
0
Is there any option to disable some connections from list to connect at LINQPad's start ?
I have a lot of connections in my list, to remote servers witch are normally inaccessible and there is error message displayed
image
, just as my connection to SQL LocalDb starts SQL LocalDB server as site effect.

Thanks...

Error adding xUnit.net nuget package

LINQPad 5.33.7 (Any CPU) - Premium Edition - System.MissingMethodException

$
0
0
When opening linqpad I get the following exception dialog
System.MissingMethodException: Method not found: 'Void Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions..ctor
Let me know if I can provide more information

SQL result always empty with LinqPad5 on Win10

$
0
0
Hi,

I run LinqPad 5 (Pro Edition) v5.31.00 on a Windows 10 Enterprise.

I have a problem with the SQL view of the query result. I can test my Linq queries and view the data returned but the SQL result is always empty.

This used to work on my previous computer.

Anybody has a hint as to what could be missing ?

Could not load file or assembly System.Runtime, Version=4.0.0.0

$
0
0
Hi,

I've built a ASP.NET MVC 5 website, and I've taken the bin folder to then reference the business logic DLLs in my LinqPad queries.

ASP.NET MVC website is built against .NET 4.7.1

Upon running a query I get the following error:

Message
Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)

Source
MySqlConnector

I do have references to DLLs which are build for .NET Standard, but not .NET Core.


System.Runtime.dll is in the directory with the other DLLs references and I've changed the .config file to redirect to the correct version like so:

<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>

But I still get the error every time

Is anyone able to shed any light on this?

EFPROF (Entity Framework Profiler) with LinqPad 5

Very Slow closing Connections Property window

$
0
0
We just moved our linqpad activities over to a new hosted server. We installed the anyCPU version, copied over the ConnectionsV2.xml and set up the same custom driver we had.
On this new server (accessed remotely with RDC or Teamviewer), when we open the properties window on a given connection and then cancel or save it, it takes about 30-40 seconds to close before it says "connecting" and "populating".
Since the passwords to our connections disappear when we move over the Connection xml, I have to update the password for all 500 of our connections. HELP!! can't get job done in time with this type of lag time.
Anyone know Why the window might be taking so long.
I replicated this install, move on my laptop and the window closes immediately.

Help!
Paul H

Copy .linq files to another computer

$
0
0
Hello

We try to share some of our *.linq files between the users in our company. The thing is, even if we have configured the same connection on another computer, the *.linq file is not working, as the password (which is encrypted within the file), can't probably not be decrypted.

Is there a way to share the files including connection between the computers? We also tryed to copy ConnectionsV2.xml to another computer, but then all connection passwords are lost.

Where is the master key for encryption stored, so that we can copy that one to the other machine.

Thanks!

FileNotFoundException

$
0
0
I am using the latest beta version Download LINQPad 5.28.02 (Any CPU), when I try to run my code using linqpad.exe guid version my code runs perfectly but when I try to schedule it and run it using lprun.exe i get the fallowing error.


FileNotFoundException: Could not load file or assembly 'Resources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=21353812cd2a2db5' or one of its dependencies. The system cannot find the file specified.

Should the .TextInput event on TextBox react to manually setting the Text of the control?

$
0
0
The second LINQPad Controls sample, "Simple controls and events".

Behavior I see: Whenever I type in the textbox, the content is dumped. However, when I click the button the text is changed, yet the content is not dumped.

Is this by design? I was expecting this to be handled like I just typed in the control. In fact, if I paste something into the textbox, this is handled and dumped.

Edit Table

$
0
0
Hey Everyone, I bought LinqPad Premium and i don't know how to edit table or it doesn't work, can someone show me how to do it ?

thanks a lot

Caching the fields of a table?

$
0
0
Using the latest non-beta version of LinqPad. Recently when I make changes to a table/object in a connection and build in VS2017 the list of objects in the connection will refresh and the change will show in the treeview but when I try to build a new method query in the query window the added field is not available. I have also removed a field from my object in VS and rebuilt and it disappears from the treeview but it still shows in the results window.

There seems to be some sort of caching happening. I have never had this issue before. Any thoughts or ideas on how to get things in sync quicker?

There are no usable .NET assemblies in X

$
0
0
There are some packages I would like to install, but I get the "There are no usable .NET assemblies in X"

These are CEFSharp.Winforms and Chromium.ChromeDriver. I think these packages may contain non .NET dlls, but I would still like to be able to use them, instead of having to download thefiles manually and copy them to the execution directory.

my extensions 101

$
0
0
Can somebody post (or link to) and example of something that was implemented in my extension?

Running linqpad scripts 'in process'

$
0
0
Hi, is there a way to run linqpad scripts 'in process'? I have a few queries I would like to schedule to run every 5 mins or so but they make a number of HTTP requests that I would like to cache. Using lprun.exe means the cache is lost when the script terminates. So I was wondering if I can run my own long-running scheduler that can manage the cache of the linqpad queries and re-execute each on a schedule.

Is anything like this possible? If not I'll look at persisting the cache between runs.

LINQPad.Controls pause for input

$
0
0
I'm trying out the new LINQPad.Controls and want to dump some radio buttons and then wait for user input before continuing with the rest of the query. What's the best approach for pausing the code here?

For example here's a simple first approach, but are there better alternatives?
void Main()
{
	var radioOne = new RadioButton("group1", "One").Dump();
	var radioTwo = new RadioButton("group1", "Two").Dump();
	var radioThree = new RadioButton("group1", "Three").Dump();

	var btnRun = new Button("Run").Dump();

	btnRun.Click += (sender, args) =>
	{
		if (radioOne.Checked)
		{
			DoSomething("One");
		}
		if (radioTwo.Checked)
		{
			DoSomething("Two");
		}
		if (radioThree.Checked)
		{
			DoSomething("Three");
		}
	};
}

private void DoSomething(string cmd)
{
	cmd.Dump();
}
Many thanks

John

Linqpad Intellisense very slow

$
0
0
Linqpad intellisense on my Win 10 laptop has been extremely slow for me recently. I just installed the latest beta v5.33.09 (AnyCPU) in the hopes that it would resolve the issue, but to no avail.

I mostly use LinqPad as a scratchpad to test small pieces of code or expressions. There are no database connections being made. I'm simply running the "C# Program" profile. When I write "var" to start my first line of code, the intellisense kicks off and just hangs there for a few seconds. It's making this product quite unusable.

Any recommendations as to what I should do to help resolve this? I've never encountered this in previous iterations.

Linqpad not listing all the stored procedures

$
0
0
Just confirmed that even though the sprocs are all in the same schema, linqpad is not listing some of them. All of them are being properly listed in SSMS though.

I also tried listing the sprocs using this query and it shows that the missing ones and the shown ones both have the same schema.

SELECT specific_schema, routine_schema, specific_name FROM information_schema.routines
WHERE routine_type = 'PROCEDURE'
ORDER BY specific_name

vi mode - experimental build

v5.33.10 Issue - Error: Could not load file or assembly 'NuGet, Version=4.7.1.5

$
0
0
I have experienced new issue in LinqPad Beta v5.33.10 (In version v5.33.09 it works without error)

When I use method Util.Run("linqpad_b.linq") from script "linqpad_a.linq" I have got Error:

Could not load file or assembly 'NuGet, Version=4.7.1.5, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.


Content of Script 1 (linqpad_a.linq)


<Query Kind="Statements" />
var x = Util.Run("linqpad_b.linq", QueryResultFormat.HtmlFragment, "Param 1");
x.Wait();
x.Dump("Test a");


Content of Script 2 (linqpad_b.linq)


<Query Kind="Program" />
void Main(string[] args)
{
if (args.Length <= 0)
"No Args..".Dump("Test b");
else
args[0].Dump("Test b");
}
Viewing all 2658 articles
Browse latest View live