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

Suggestion - Add right-click copy for name in Manage Passwords dialog

$
0
0
The first thing I want to do having set a password is copy the key name and a right-click would make life easier.

Best regards

John

Can't seem to query NuGet OData feed

$
0
0
At some point in the past, it was possible to use LinqPad to query the NuGet OData feed. For example, this article shows it working:

http://codebetter.com/johnvpetersen/2012/04/15/using-odata-with-the-nuget-api/

However, when I try to set this up, I get an error, indicating that either I'm doing something wrong, NuGet doesn't support this anymore, or LinqPad doesn't support this anymore.

Just to rule out the first and last possibility, this are the steps I'm taking...

In LinqPad, Add connection > WCF Data Services 5.5 (OData 3) > URI: https://api.nuget.org/v3/index.json, Test... "XmlException: Data at the root level is invalid. Line 1, position 1."

N.B. Same error message shown when use the 'OData 4' driver instead of the 'WCF Data Services 5.5 (OData 3)' driver.

Is this a bug? Any suggestions of what I can try differently?

Get Nuget Package version from query

$
0
0
Hi,

Is there a good way of reporting the package version used in a query? I'm targeting a pre-release package and want to add a dump of the package version to remind me, however, I'm not clear on the best way of getting to the global package info from the PackageID reference.

So far I've looked at theses options:

void Main()
{
Util.CurrentQuery.NuGetReferences.Dump("Get Nuget package refs"); //the NuGet refs only

var t = typeof(Microsoft.Identity.Client.ClientApplicationBase);
t.Assembly.GetName().Version.ToString().Dump("Assembly version"); //the assembly version
Util.CurrentQuery.GetRawHeader().Dump("GetRawHeader"); //the xml
}

Ideally, I'd also like to do the reverse as well - iterate through all NuGet packages and report on which queries they're being used in.

Best regards

John

Aol Mail Down

$
0
0
Sign in for your AOL Mail account with your email and password. For the address, begin to see the "Resources" portion of this page. When the AOL System Information window opens, go through the "AOL Software" tab for the left side from the window. Now AOL Explorer is integrated with Internet Explorer, users on the new AOL Explorer will have AOL for their default homepage along with the AOL toolbar on his or her browser. The site features a place to upload pictures, keep track of status and view your pals' updates…. " Select the check box titled, "Turn This Rule On," that can activate the rule that you are creating. When you've got a paid account with AOL that you are assigned a "master" screen name (user name). Move your cursor for the top from the home screen to where it says "Sign In". AOL toolbar is really a web browser application add-on that lets you search for pictures, media, videos and look for merchandise on. Checking your email with a cell phone allows for people to relax in touch if they are not at their.

Accessing your AOL account permits you to perform a number of different actions. Type with your AOL details, then click "Sign In. Make sure it can save any necessary content within your account before deleting the entire email address contact info. Unlike Yahoo Mail or Gmail, there may be no convenient option inside an end user's account to delete his personal email account. Your favorites folder with your computer houses all from the links that you might have marked as “favorites” in Internet Explorer. Being able for you and receive electronic mails across the Internet has become a favorite form of communication. It's easy to create a communication account with AOL, but it's not too easy to delete one. AOL Mail stores the emails of people you email in their address book automagically. The Mac OS X operating-system includes the Mail application for users for you, receive and organize emails.

When done you'll see the material that your Pop 3 e-mail account is successfully configured and also a congratulations button on top. Now that you've joined Twitter, you would like people to adhere to you. Email is critical for keeping with your friends, family and business contacts. If you recently signed up to have an AOL Mail account and aren't sure the way to read your email, no problem; viewing your email…. Established in 1983, AOL (America Online) is one on the oldest Internet providers from the country. One way that you are able to bypass your school's Internet filters without utilizing a proxy is by utilizing a Web-to-email service. Perhaps you've got AOL before they began offering free services. AOL can be a massive American web service and multimedia company. Your aol mail login email account likely has your address book stored upon it. Go to your Microsoft Tech Net website for instructions on what to complete.

Gmail.com E-mail Sign In

$
0
0
The huge problem in Gmail is Google is now offering two new themes, Preview and Preview (Dense), which "will eventually expand dynamically to match different screen sizes and user preferences," Jason Cornwell, a buyer experience designer, wrote on the Official Gmail Blog. If you might be combining Gmail by having an ISP-based POP3 account, you may have to contact your ISP to discover the PO3 server address. That means the fake screen has being precisely timed. Similarities between Yahoo's new email service and Gmail are usually no coincidence. Is this basically a similar situation being talked about here, even when I don't open the email from the personal webpage”. Homeowners concerned with these new changes should purchase current models now to avoid construction and also other costs associated with all the new heaters. The only privacy problems that I have heard about were the ads that seek out keywords inside your mail. 846605 megabytes (and counting) of free storage so you may never need to delete another message. Yahoo is killing support for any popular gmail login email plug-in from Xoopit , a startup it acquired in July An email was mailed today to Xoopit users on Gmail tited, "Xoopit for Gmail is closing. The website Deadline Hollywood takes a business angle , noting a production executive that is freaked out about the failure.

Once you connect both devices and also the Kindle Fire shows up just as one external drive on the desktop, you'll be able to drag pictures in the computer for the Photos folder about the Kindle. It has disclosed attacks on Gmail it said gave the impression to come from China- some in 2009 , and more this year To try to generate attacks harder, it's added two-factor authentication to Gmail , which uses a code from your person's cellular phone as well the ordinary password. As you can see, not only will be the beginning in the string odd, but there is really a script hidden behind a lengthy wall of whitespace. But while China continues to spread out itself up to a growing number of U. Click about the little down-arrow to find out two prompts: Create New” and Manage Labels. Furthermore, both offer drag-and-drop functionality for moving your emails derived from one of location to a different. Unfortunately Google Drive remains working, which means that though you've lost the desire to live, you can technically still work. Companies are already making money off your social websites use as they are — Datacoup is definitely offering the tiny people a chance to get a cut of that check. Nevertheless, the very revelation which our nation's top spy used a minimum of one relatively unsecure Gmail account has prompted website visitors to raise the above question. Type "" inside SMTP server field and select "Advanced Sending Options.

Some copies of mail were deleted, so we've been hard at work over the past 30 hours getting it back to the people suffering from this issue. Click on Administrative Tools, double-visit Task Scheduler and type within your administrator password. There's a free of charge Basic plan too, nonetheless it limits you to 10 messages monthly. Only most significant outages are (should be) included, anyway, I usually do not have any opinion on as we should build a list of outages, but, if we produce a list, I feel, we need at least some information regarding those outages. She has additionally been a staff writer on the Washington City Paper, the Center for Public Integrity and National Journal. As have you bother to look at the source he's quoting before you decide to made this edit. The average remodeling cost to fit the modern heater somewhere other than the attic is $1,000-$2,500. Twitter has not yet said what number of times the Russian disinformation was shared. The article seems to express that Google Paper is often a fact.

Using ef core 2.1 rc1 final

$
0
0
Do the drivers for ef core 2.1 need to be updated? When I hit the test button when making a new connection, I'm getting an error that System.Interactive.Async 3.0.3000 can't be found. I believe the latest ef core 2.1 uses System.Interactive.Async 3.1.1.

Linqpad does let me choose the custom assembly and does show the Typed DbContext correctly.

Huge memory leak in 5.28.05

$
0
0
LINQPad was just sitting in the background unused for the last 24+ hrs. This is what I saw this morning:

image

Blocked website?

$
0
0
Hi,

I'm trying to run a simple vb program (see below) using LinqPad5 (running as administrator). When the program executes I get an IE popup window saying "Content from this application coming from the website listed below is being blocked by Internet Explorer Security Configuration." The website listed is "about:security_LINQPAD.exe". Why is this occurring and how do I fix it?

Sub Main
system.console.writeline(System.Globalization.CultureInfo.CurrentCulture)
End Sub

LINQPad 5, no SQL output using EF DB Context

$
0
0
Greetings! I am using LINQPad 5 to query our DB using an EF DB Context. The queries execute as expected, but there is no output in the SQL tab. I believe this used to work with no changes in LINQPad 4. It has been a while since I've used this tab however, so I can't tell exactly when it stopped working. I've tested this with LINQPad 5.26.01, and LINQPad 5.28.04 (beta).

Regards

New Laptop

$
0
0
I have a new laptop from my workplace. I am in the process of migrating stuff. Is there any easy way of migrating the connection information in LINQPad from my old laptop to the new one?

Save Dump object to file

$
0
0
Hi,

Is there a good way to save any Dumped object out to a file? My ideal would be an extra item in the Export menu of the output window, but perhaps I could just serialize instead?

As an example, I'd like to take a snapshot of the certificates on my machine with something like this:
void Main()
{
	StoreLocation[] storelocations = {StoreLocation.LocalMachine, StoreLocation.CurrentUser};
	
	X509Store store;
	
	for (int i = 0; i < storelocations.Length; i++)
	{
		store = new X509Store(StoreName.My, storelocations[i]);
		store.Open(OpenFlags.ReadOnly);
		
		var q = from cert in store.Certificates.Cast<X509Certificate2>()
				orderby cert.NotBefore descending
				select cert;

		q.Dump($"{storelocations[i].ToString()} / {store.Name} ({q.Count()})", 1);
	}
}
It would be great to just save this to a file, so that later I could open and view the file as it appeared in the output window and, potentially, compare (Util.Dif) it with a more recent version.

This isn't certificate specific, it's just one of my current scenarios.

Best regards

John

Reformatting code often doesn't work

$
0
0
I use Ctrl-K, Ctrl-D a lot to format my code, but find that sometimes LinqPad refuses to format. For example, I was working on a sample bit of code (had the Language set to C# Program) and got as far as the following...

void Main() {
List codes = new List {
};
}

class SupportTicketProblemCode {
public bool Active { get; set; }
public string Description { get; set; }
public List ChildProblemCodes { get; set; }
}

At this stage, Ctrl-K, Ctrl-D was formatting the code fine. I then added some extra lines inside the List<> initialiser...

List codes = new List {
new SupportTicketProblemCode{
Active=true,
Description="Jim"
},
};

...and Ctrl-K, Ctrl-D doesn't do anything. There aren't any errors, as I can run the program (which doesn't actually do anything at the moment), but reformatting doesn't work. As you can see, the indentation on the SupportTicketProblemCode object is wrong, and there are missing spaces around the equals sign.

Any idea why Ctrl-K, Ctrl-D fails to format? I don't get any messages, don't get anything.

Thanks

Unable to open configSource file 'user.config'.

$
0
0
I recently installed v5.22.02. I also have v4.57.02. When I executed a query in v5.22.02, I got the following exception.

The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Message The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Data
InnerException Unable to open configSource file 'user.config'. (C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config line 3...
Message Unable to open configSource file 'user.config'. (C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config line 35)
BareMessage Unable to open configSource file 'user.config'.
Filename C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config

Our app.config has a reference to another config file named user.config. v5.22.02 appears to be making a copy of the bin folder of a DLL that I am referencing but it isn't pulling over the user.config file. If I manually copy it to the temp folder, the query runs. This was not a problem in v4.

Nuget Package Manager always reportsNuGet.Protocol.Core.Types.FatalProtocolException

$
0
0
I've tried both the Nuget 3 official package source and our own internal package source, using the same setting I use for VS2017, and both report the same error as above with the detail "Unable to load the service index for source https://api.nuget.org/v3/index.json" (or our internal URL).

I tried setting the proxy server settings to either auto-detect or nothing (as a developer, I have proxy bypass allowed, although the auto-detect will detect the proxy) and also tried manually specifying the proxy. All reported successful for the proxy test, but have no effect on the NuGet Package Manager. Obviously, the local package source shouldn't be affected by proxy anyway!

I then tried the Beta (5.32.01) which reported "Nuget.Core threw an exception: Unable to load the service index for source https://api.nuget.org/v3/index.json. The ServicePointManager does not support proxies with the https scheme.". However, the beta was able to load our internal package index.

Is there any way to fix this or a workaround to directly get NuGet packages from the official source?

If you need more details, let me know how I can provide them.

Thanks.

lprun and log4net

$
0
0
I've had some scheduled LINQPad tasks scripts hanging and it was related to this single line:

(Nuget: log4net)
log4net.LogicalThreadContext.Properties["host"] = "test";
Save a LINQ file in C# statements mode with log4net package and the above line. lprun will run indefinitely.
Other log4net commands work fine. I can isolate the problem to just this single line.

Any clue why lprun is hanging?

lprun hitting concurrency issues when compiling scripts in parallel

$
0
0
I have a LinqPad script which uses Util.CompileAsync in parallel to compile and run several other .linq files. When this happens on a machine without the LinqPad NuGet cache populated (at %LOCALAPPDATA%\LINQPad\NuGet.FW46) I sometimes see one or more compilations fail because of multiple threads trying to access the LINQPadPackageInfo.xml file stored within each package.

Is this a known bug? Is there a workaround?

LINQPad Resellers

$
0
0
I'm trying to get my company to purchase a LINQPad license for our developers, however they are having issues because it is tied to a foreign address (Australia). I mentioned that I knew there was something setup so that resellers can sell licenses, but I'm having issues finding any.

Can someone point me to a U.S. based LINQPad reseller?

With LINQPad 5.32.01, lprun cannot run scripts which ticks "use experimental roslyn assemblies"

$
0
0
Errors look like:

xyz.linq(276,39): error CS1026: ) expected
xyz.linq(276,40): error CS1525: Invalid expression term '.'
xyz.linq(276,102): error CS1002: ; expected
xyz.linq(276,102): error CS1513: } expected
xyz.linq(326,28): error CS1002: ; expected
xyz.linq(326,29): error CS1525: Invalid expression term '.'
xyz.linq(364,21): error CS1519: Invalid token '?' in class, struct, or interface member declaration
xyz.linq(364,21): error CS1519: Invalid token '?' in class, struct, or interface member declaration

It is the same kind of error if I turn off that option and run in the linqpad GUI. The current lprun.exe options do not indicate how it can be turned on.

LINQPad NuGet packages - Circular dependency bug?

$
0
0
When trying to download certain NuGet packages, it appears LINQPad tries to use version 4 of the System.Reactive package when it should be using version 3.1.

The error reads "Error downloading WebLinq 1.0.0-alpha-20170321T1506(Prerelease) - Circular dependency detected 'System.Reactive 3.1.0 => System.Reactive.PlatformServices 4.0.0-preview.2.build.379 => System.Reactive 3.1.0"

I get a similar error when I try to download System.Reactive 3.1.0 for instance.

I tried clearing my NuGet cache in %LocalAppData%\LINQPad\NuGet.FW46 but unfortunately this didn't work. The only workaround found so far has been to copy someone else's WebLinq or System.Reactive NuGet cache into my machine.

Stored Proc with UDT parameters not showing up in LinqPad

$
0
0
Not sure if this is a bug or a feature, but it would be nice to see these in the tree.
Viewing all 2658 articles
Browse latest View live