No symbols have been loaded for this document. Breakpoint issue [duplicate] - c#

This question already has an answer here:
Symbol status showing "Skipped Loading" for dll in modules window?
(1 answer)
Closed 6 years ago.
I already had a look at solutions on the internet for this problem but no one really worked.
What I already tried:
Cleaning the solution and rebuilding everything
Deleteing the bin + obj directory
Restarting visual studio
Restarting the pc
Loading the module manually (but it will not be loaded when starting debugging again so this is a really annoying solution)
I have two startup projects, one is loaded normally but the other one is not.
Thanks for your help!

I fixed this by deactivating the option "Optimize code" in project properties.

Related

Visual Studio Code - Why is it removing my indentation? [duplicate]

This question already has answers here:
How to prevent VS Code from auto-deleting tabs on an empty line?
(2 answers)
Closed 1 year ago.
I have this problem that Visual Studio Code doesn't detect indentation properly when moving around with cursor, and actually removes indentation automatically that I have manually added.
Why is it doing this? How do you configure it? Can't seem to find the setting!
Maybe is one of your extensions, have you tried to disable some of then to see if helps ?

HttpUtility.HtmlDecode() [duplicate]

This question already has answers here:
HttpUtility does not exist in the current context
(10 answers)
Closed 5 years ago.
I'd like to use HttpUtility.HtmlDecode() to process some strings in my application, but for some reason Visual Studio doesn't seem to know where it's at.
I'm fairly new to C# so I'm just guessing I've missed something like importing a library, but I don't even know what to Google.
I've tried using System.Web but it only seems to contain AspNetHostingPermission and friends, no HttpUtility.
I'm using VS2015 Community Edition on a Windows 10 machine.
I've tried "using System.Web" but it only seems to contain "AspNetHostingPermission" and friends, no HttpUtility.
You simply need to reference the DLL System.Web, right click References > Add Reference > Assemblies > Framework > System.Web
Also check you're not targeting the Client Profile, in which System.Web.dll is not available. You can target the full framework in Project Properties.

Can I retrieve source code from a compiled WPF application? [duplicate]

This question already has answers here:
How do I decompile a .NET EXE into readable C# source code?
(9 answers)
Closed 7 years ago.
I have been working on a project for my college course for a couple of months. When I went to submit it the other day the source code has gone missing. It was a WPF C# application. Because all of the work was done on my memory stick I have no backup of it.
I tried running a recovery tool but it was unable to find anything.
What I have is the following:
The contents of the bin > Debug folder including an up to date compiled version of the application (an exe file)
The .sln file for the project.
I really need the source code for this as without it I might end up failing the project. Is there any way to get it with what I have?
If you have DLLs you can use something like .netReflector and peep into code..
use dlls in a new project and then you can drill into them

Error CS2001: Source file '.cs' could not be found [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am getting the following error on a project of mine when I try to build... Error CS2001: Source file '.cs' could not be found. I took the two files that are causing this error out on purpose because they conflict with other files and cannot be in there. How can I resolve this error without putting the 2 files back in the solution?
They are likely still referenced by the project file. Make sure they are deleted using the Solution Explorer in Visual Studio - it should show them as being missing (with an exclamation mark).
I open the project,.csproj, using a notepad and delete that missing file reference.
I had this problem, too.
Possible causes in my case: I had deleted a duplicated view twice and a view model.
I reverted one of the deletes and then the InitializeComponent error appeared.
I took these steps.
I checked all of the solutions mentioned on this question. The class
name and build action were correct.
I Cleaned my Solution and rebuilt. Another error appeared. "Error CS2001: Source file '.cs' could not be found"
I found this answer and followed the steps.
I reloaded the project and cleaned/rebuilt again.
My solution builds without errors and my application works now.
In my case, I add file as Link from another project and then rename file in source project that cause problem in destination project. I delete linked file in destination and add again with new name.

C# #define keyword available project wide [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
C#: Declare preprocesor symbol (like DEBUG) globaly for whole project
Can I set up a #NOTEMBEDDED definition in a project so that when I'm debugging and I hit a
#if NOTEMBEDDED
#endif
in various source files it will acknowledge it and fall into the if statement?
Add it to the project settings, right-click on the project, select Properties, under the Build tab there's a "Conditional compilation symbols".
You enter your conditional there.
Go to the Build tab in Project Properties and add it to the Conditional compilation symbols box.

Categories