While trying to compile and debug C# code in Visual Studio I'm hitting this error - "no logical space left to create more user strings". Actually, the code compiles properly, but it crashes with this error while trying to create the executable.
I've looked at C# compile error: "No logical space left to create more user strings" and EF 4.3.1 IMigrationMetadata.Target strings are causing "No logical space left to create more user strings." compile errors but these don't help here, since they talk about C# code that was generated by some other script/process.
In my case, it's normal C# code that's being compiled/linked and hitting this error.
Can someone please help me figure out how I can debug this issue? What may be causing this problem?
There are a total of about 10 string declarations in my code.
Use Strings application to dump out all the strings in your application,from which you will be able to find ,what string is being created multiple times.
Alternatively you may also use Windbg
Related
I have a problem with parsing steps in .feature file with implementation which is defined in steps.cs file. Beside that, the same step was parsed successfully just a few lines upper in same scenario in .feature file. All steps bind successfully, with exception of last 2 steps, which fail to bind, although these steps appear for 2nd time.
I tried to delete .cache files in %TEMP%, but it is not that. Besides that, step definition is like:
From steps.cs file, when I do Ctrl+Alt+Shift+S, I get 2 steps recognized, which is ok.
We use VS 2015, specflow for VS2015, and SpecFlowSingleFileGenerator as generator. Same happens with VS 2019, with specflow for VS2019 and SpecFlowSingleFileGenerator as generator.
I must say that we have a plenty of scenarios and features which behave nice (with very very basic regex).
Anybody got any clue for this?
Also, when I enable tracing (Tools->Options->SpecFlow) in Output window of VS, I get the messaages:
[08:51:21.6011171] EditorParser: Start full parsing
[08:51:21.6041087] EditorParser: Finished full parsing in 2 ms, 6 errors
Edit: when I open .feature file for first time on opening solution, it parses everything well at first glance. But after 30 seconds, some of steps transit to unrecognized state, as mentioned above.
Edit 1: seems like this part of regex makes problems - \s*(for remote point ""(.*)"")?.
When I put space before open brace (, I get good parsing. But my steps then aren't functioning anymore.
Edit 2: images removed.
Edit 3: I've got mail from Andreas about this topic:
When the regex of a binding is getting to complex the Visual Studio Extension has problems to match them correctly. I fear your regex is already to complex for it.
The runtime should handle it just fine.
From my experience having these kind of checks in the regex make it hard to see then the error at runtime.
I think you only get an exception that the step can't be matched.
If I have such a restricted range of possible values as in your binding, I always have a runtime check that throws an exception if it doesn't pass.
Windowa 10
Visual Studio 2017 v15.9.7
Hi all,
I have a Xamarin.Forms solution targetting Pie and a minimaum version of Ice Cream Sndwich..
I am having trouble building the Android project.
After getting the error Java Exit Code 2 I have gone down the route of enabling the Multi-Dex option and have followed this article........
https://riptutorial.com/xamarin-android/example/29859/enabling-multidex-in-your-xamarin-android-apk
Now I've seen that some people have issues with this when there are spaces or special characters in their SDK location path but my problem is slightly different.
I have an apostrophe in my user name and thus, an apostrophe in my user folder.
My error points at this folder.
I've spent hours trying to sort it and my current tactic was to start a new project and add in the NuGet packages one at a time, building after each one, to see when the error occurs in the new project.
It seems that once I added in SkiaSharp.Views.Forms the error begins to occur. If I remove it, the problem goes away. I'm sure tha same can be said for other packages also as per my main project but this is how far I get on the test before the error occurs.
Renaming my user folder is not an option.
My user folder is c:\User\Anthony.D'Cruze.
Here is the error I am getting....
1>"D:\ANTHONY\ANDROID\PushMessaging\FCMClient\FCMClient.csproj" (Build;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
1>(_CompileToDalvikWithDx target) ->
1> CREATEMULTIDEXMAINDEXCLASSLIST : error : Expecting class path separator ';' before 'Cruze\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\embedded\classes.jar'' in argument number 2
1>
I'm concluding that it must be an issue with the apostrophe in my name.
Rather than curse my parents for the surname, I'd much rather find a work around.
I was thinking of using a symbol link for my user folder, but that has the potential to mess my pc up to a point where I can't even login, so that will be a last resort if I cannot find a solution elsewhere.
Anyone else experience this.
OK - this far from ideal but has solved my problem.
Basically I have had to have a new profile set up without the apostophe in my name.
Working for a big corporate, this is a pain. Et voila - It builds.
I'm sure there must have been a more suitable solution but it certainly evaded me.
I hoped I could use some kind of symbolic link for the relevent path variable but I couldn't be sure what var and where to set it.
If anone comes accorss this and has a more elegant solution (any would be) please post it here.
Does anyone have any idea what this means in the Watch window, how it was caused and how I could fix it?
I can't seem to find a specific line of code which is breaking it, it appears before the constructor of a class. I don't know what is causing it. I am programming in C# using Visual Studio 2015.
Has anyone else had an issue of this before?
A non-image version of the output is:
此᫈暔熚攺ᙋᲰ耀㼴픑㨊攼ᙉᵬ耀 error CS0726: '᫈暔熚攺ᙋᲰ耀㼴픑㨊攼ᙉᵬ耀' is not a valid format specifier
I'm not great at languages, but it appears to be a mixture of Chinese, Korean and various unicode characters. All of my code is written in English.
EDIT After further investigation, changing the text value or deleting it will make it not reaper when stepping through the code (Until it hits an exception in my code), or relaunching the debugger.
This is the Watch window - it contains a list of variables you specifically want to watch while debugging. It is not related in any way to a line of code. When you hit a break point, you can enter any value at all in the Name column - if it matches a variable that is currently in scope the value column will show its current value otherwise an error saying it is not in scope.
The names are saved somewhere so they persist when VS is restarted, so it is possible it is due to corruption of that file or if you cut & paste from somewhere using an unexpected character set.
The Name column must be a valid variable name (no spaces) or an expression (spaces allowed but it must be a valid expression) - anything after the valid portion of input may be considered as a format specifier (for example to limit number of array elements) - this error is related to that.
You can simply delete this entry & it will be gone permanently. There is no problem with your code.
Compiler Error CS0726
Visual Studio 2008 Other Versions
'format specifier' is not a valid format specifier
This error occurs in the debugger. When you type a variable name into one of the debugger windows, you can follow it with a comma, and then a format specifier. Examples are: myInt, h or myString,nq. This error arises when the compiler does not recognize the Format Specifiers in C#.
Check your VS language :
On the Tools menu, click Options.
In the Options dialog box, expand Environment and then click International Settings.
In the Language list, choose the language in which the UI text should appear in the development environment.
First question on here and I am feeling pretty stumped, I've searched around but couldn't find something that I could apply to my situations, any help or direction to a prior question would be appreciated.
I'm receiving an error when trying to create some new files from my form. I'm following a guide at XNA Game Programming Academy (xnagpa_net/xna4rpg_php), I'm up to step 14 but I believe this started happening earlier and I hadn't noticed it yet.
Screenshot of Error
Please have a look at the above error and give me any tips.
My code for RpgEditor.FormMain.cs is here, it says something about line 128 which relates to;
if (Directory.Exists(gamePath))
throw new Exception("Selected directory already exists.");
I'm not sure why though, because I'm creating a brand new folder/directory when I am attempting to save the data.
If it helps, the subdirectories are being created by the process but I recieve that error and no files inside.
edit: I've downloaded the example project on his site and it's working fine with that, so I don't believe it's an issue with my system configuration.. must be a project setting or line of code somewhere..
To fix this I had to change the configuration settings.
It was set to AnyCPU but I had to change to x86.
The setting wasn't there originally, I had to create new and copy settings from AnyCPU.
Why this works I don't know, but it does :)
I am using the Office Integration Pack
After following instruction correctly I am still not able to get the Excel to Import working
My Visual Studio Lightswitch 2011 application is configured to host on IIS Server and use's Easy Shell (so its the default Shell provided by MS).
So far I have tried is calling the
OfficeIntegration.Excel.Import(
this.States,
#"C:\Users\Mr_Mia_Gie\My Documents\ExcelSheet.xls",
"Sheet1",
"A1:C3");
on _Execute event of a button (the button does not live on the Shell Command Bar)
The exception I get back is "Object variable or With block variable not set."
Any solution or suggestion will be highly appreciated
Cheers
I agree with Nevyn (& I'd vote up his answer, but it's embedded in the question as an edit so I can't).
As Nevyn has pointed out, there are really only three objects in that particular line of code that can be causing a null exception:
the OfficeIntegration object
the OfficeIntegration.Excel object
or, the this.States collection (unlikely though)
As was also pointed out for you, it's most likely that one of those objects isn't correctly initialised. You need to check what the value of those three objects are by putting a break point on that line & checking what their values actually are at that point.
You could also put a guard clause in your code (just above that line):
if (OfficeIntegration == null) || (OfficeIntegration.Excel == null) return;
It won't neccesarily "fix" the problem, but it will stop the null exception from occuring (but this shouldn't be a problem in an Execute method). But it's good programing practice to put a guard clause any time you're referencing an object whose value could be null.
Failing that, the only other advice any of us can give you is to post a question in the questions section of the gallery page, where you downloaded the extension from. The autor of the extension should be able to help you.
Is this a web application, if so I dont think it supports it. It requires an extenstion. I dug up an article for you, try it out:
http://blogs.msdn.com/b/lightswitch/archive/2011/04/13/how-to-import-data-from-excel.aspx
The office integration Pack is for Visual Studio LightSwitch windows application and does work for application that are hosted on IIS hence the below code throws exception
OfficeIntegration.Excel.Import(
this.States,
#"C:\Users\Mr_Mia_Gie\My Documents\ExcelSheet.xls",
"Sheet1",
"A1:C3");
The link show that the extension does not support LS WebBrowser application http://officeintegration.codeplex.com/discussions/374585
Also the extension Import data from Excel does work for IIS hosted LS application that runs in webbrowser