Microsoft Visual Studio "error cs0103: the name" - visual-studio-2022

I'm getting this error in Microsoft Visual Studio when using a textbox in the code behind.
Error CS0103 The name 'tb_dt_inic' does not exist in the current context
The textbox exist's in the *.aspx file:
It's suggested when I type in the code behind but still getting the error!
https://i.stack.imgur.com/05fSI.png
https://i.stack.imgur.com/9XISV.png
https://i.stack.imgur.com/fCXFT.png
Is it a bug or am I missing something?
Already check I have the latest Microsoft Visual Studio Version (17.4.4).

Related

A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll[C++/CLI]

Application throws exception after code migration from VS2005 to VS2012
Here is the error:
A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
IDE: VS2012
OS: Win7
I use C++/CLI form
I got the solution.
when I Migrated from VS2005 to VS2012 "Resource Logical name" was affected.
In my case, it worked after doing change as shown below:
Step 1: In Solution Explorer, Right-click on Form.resx
Step 2: Managed Resource->General->Resource Logical Name
Step 3: added " $(RootNamespace).%(Filename).resources" in "Logical resource name"

Visual Studio 2015 Community Crashes on Startup

I've been using VS 2015 Community Edition without any issues for the past 2 months. Then one day it decided to crash (I wasn't doing anything when it crashed). After I tried starting it up again, it only gets to the home-page screen then crashes. No project is being opened, it crashes on its own.
Things I tried with no success:
Repairing the install.
Uninstalling then Reinstalling.
Running in /safemode (still crashes in safemode!)
I don't have anything custom installed (especially after the clean install).
At this point my only hope is re-installing windows (running Windows 7), and hoping the problem goes away then. Any other ideas, things I can try?
Here's the log dump from starting VS2015 in safemode (I wanted to post the contents here, but they exceed the allowed post size):
http://wikisend.com/download/447654/vs_log.txt
I did search through the log for error tags, and found the following instances:
<entry>
<record>2196</record>
<time>2016/03/16 19:49:43.330</time>
<type>Error</type>
<source>UserConnection</source>
<description>Failed to get IAccountManager from service provider.</description>
</entry>
<entry>
<record>2416</record>
<time>2016/03/16 19:49:44.273</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Dev14.VsixTemplatesPackage.V2.443cca91-ec20-41e5-a165-f28e56b89650&apos; is already loaded at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\OZPNHXDR.G5H\...</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\NUGETIFIEDEXTENSIBILITYTEMPLATES\</path>
</entry>
<entry>
<record>2417</record>
<time>2016/03/16 19:49:44.274</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions&apos; is already loaded at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\MKTRGVMI.4Y3\...</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TEAMFOUNDATION\TEAM EXPLORER\</path>
</entry>
EDIT 1:
Following magicandre1981's advice I ran procdump, but the resulting file is 0.5 GB, so it's too much to upload. Here's a screenshot from the dump file. The exception seems to be 0xE0434352.
EDIT 2:
I looked at Event Viewer, and found the following Error related to the crash. Looks like the exception is caused by Microsoft.VisualStudio.Services.Experimentation.FlightsClient:
Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException at Microsoft.VisualStudio.Services.Experimentation.FlightsClient+<ReadStreamFromRemoteAsync>d__20`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.ShippedFlightsClient+<SetRemoteFlightsAsync>d__4.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<<FlightDataCallback>b__33_0>d.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<FlightDataCallback>d__33.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
EDIT 3:
Searching for TestFlight related posts, I found the following from Microsoft (opting out of Experience Improvement Program). Looked very promising, but sadly didn't resolve my issue:
https://connect.microsoft.com/VisualStudio/feedback/details/2082049/crash-on-startup
I fixed the problem by installing Visual Studio 2015 Update 2 RC (I was running Update 1), and unchecking every single optional install feature (I just need C#/WPF). Chances are, simply installing Update 2 RC would fix the issue, but I've wasted too much time on it already to keep trying over and over again.
Here's a link to Update 2 RC:
https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

Installing Office Customizations System.ArgumentException: Value does not fall within the expected range

I'm trying to deploy my Outlook Add-In to a Windows 10 Machine, but I always get this error after installation:
Name:
From: file:///C:/Users/Public/MycompanyOutlookAddIn.vsto
************** Exception Text **************
System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.VisualStudio.Tools.Office.Runtime.Interop.VSTOEENativeMethods.GetValidCompatibleFramework(String compatibleFrameworkXml)
at Microsoft.VisualStudio.Tools.Office.Runtime.CompatibleFrameworksValidation.ParseFirstValidFramework(String compatibleFrameworksXml)
at Microsoft.VisualStudio.Tools.Office.Runtime.OfficeAddInDeploymentManager.OnAddInManifestsDownloaded(AddInManifestsDownloadedArgs args)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.RaiseOnAddInManifestsDownloadedEvent(IClickOnceAddInInstaller addInInstaller, Uri deploymentManifestUri, AddInInstallationStatus addinSolutionState, String productName, String deploymentManifestXml, String applicationManifestXml, String hostManifestXml, String logFilePath, String version, Uri supportUri)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
Some questions from years ago suggested that the path was too long, so I changed mine to the Public directory but I still get this error.
Another thing that I tried was running this:
rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache
but after reinstalling I get the same error.
Weird thing is that When I deploy to Windows 7 machines it works flawlessy. The Add-In was developed without much problems in Windows 8.1. I only get this error on Windows 10. Could somebody please tell me what is going on?
You must install the extension Visual Studio 2010 Tools for Office Runtime
Visual Studio 2010 Tools for Office Runtime

running vb.net code in Mono on Windows

I'm trying to run the following vb.net code on Mono on the Windows 7 machine, ina file called vbtest.vb:
console.writeline("hello world")
The command used and error:
C:\Windows\System32>vbnc "C:\Users\Henry\vbtest.vb"
Visual Basic.Net Compiler version 0.0.0.5943
Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.
Error : VBNC2017: The library 'Microsoft.VisualBasic.dll' could not be found.
There were 1 errors and 0 warnings.
Compilation took 00:00:00.3320190

Visual Studio 2010 Crash on project/form load

First i want to apologize for my english :S.
Hi i just got visual studio pro 2 days ago and every time i create a project, close VS 2010 and when i come back to work on my project and i click on my Form.vb i got every time : Visual Studio has stopped working.Then i tried run as administrator it doesn't work. What i don't understand it's when i click on show code the form load but the moment i click on it ,it just crashing and it's make me wanna drop laptop cascade...I've look on forum and post here but i haven't saw what i was searching.
Here the error that VS show me :(Those files doesn't exist i search)
Files that help describe the problem:
C:\Users\Usager\AppData\Local\Temp\WER152.tmp.WERInternalMetadata.xml
C:\Users\Usager\AppData\Local\Temp\WER18C9.tmp.appcompat.txt
C:\Users\Usager\AppData\Local\Temp\WER3520.tmp.hdmp
An unhandle win32 exception occured in devenv.exe[1688]
Unhandled exception at 0x777715de in devenv.exe: 0xC0000005: Access violation reading
location 0x00000000.
An unhandled exception of type 'System.ExecutionEngineException' occurred in
Microsoft.VisualStudio.Design.dll
Again thank you for your time to helping me.**
Here the Error log :
[02/07/12,18:22:19] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[02/07/12,18:22:19] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
[02/07/12,18:55:04] VS70pgui: [2] Return for Visual Studio 2010 Tools pour SQL Server Compact 3.5 SP2 FRA indicates a failed installation. DepCheck indicates the component is installed.
[02/07/12,18:57:05] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[02/07/12,18:57:05] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
[02/07/12,19:15:44] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[02/07/12,19:15:44] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
**EndOfSession
Could be the *.suo file next to the .sln file. Delete it and retry?
See this for more info
I had a similar error. I found out that the destination path had too many characters and was too long. I fixed it by moving the whole project to my main drive (C:).