visual studio 2013 ultimate crashing when writing to controller - asp.net-mvc

I have visual studio 2013 ultimate with update 4.
when ever i'm writing in mvc project in the controller VS. is restarting .
I have tried to repair , I tried to uninstall and install again .
I have no problem writing class ,view and so on .
I tried in new project, old project, always the same.
but Yuk (in safeMode from my Xml i'm getting this Error .
Construction of frame content failed.
Frame identifier: ST:0:0:{74946827-37a0-11d2-a273-00c04f8ef4ff}
Frame caption: Server Explorer
Exception details:
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid& packageGuid, Int32 reason, Guid& context)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

Related

Errors trying to install JCL in Delphi Alexandria

I am attempting to install the JCL library into Delphi RAD Studio 11. Git placed the jcl tree in my Users directory (say C:\Users\xxx); I followed instructions and made sure I updated the modules, etc.
I then attempted to execute the install.bat file, located in the C:\Users\xxx\jcl\jcl directory. When I did that I got a message to the effect that my version of RAD Studio/Delphi does not support command line compiling. That's fine, I simply opened the JDIInstaller.bdsproj (located in the C:\Users\xxx\jcl\jcl\installer folder) with RAD Studio and built it, successfully.
I then tried running the project from within RAD Studio, but I couldn't, I got an error message telling me to shut down all running instances of Delphi. Instead, I ran the EXE file directly from the C:\Users\xxx\jcl\jcl\bin folder; it ran to completion and said the installation finished. So far, so good. I should note that the JCL installer set the BPL path to C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl and the DCP path to C:\Users\xxx\jcl\jcl\lib\d28\win32.
The issue is this: When I then go to open RAD Studio, I get a number of messages like below. The text of the error message is:
Can't load package C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\JclBaseExpert280.bpl.
The specified module could not be found.
Do you want to attempt to load this package the next time a package is loaded?
This dialog is repeated an additional six times (i.e. there are a total of seven messages). The file names are as follows (they all end with "Expert280.bpl", so I'm just giving the beginning part): Debug, FavoriteFolders, ProjectAnalysis, Repository, JCLSIMDView, JCLStackTraceViewer.
If I open Components->Install Packages in the RAD Studio IDE, the seven files appear in the Design Packages list, but unchecked. They all appear as "File C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl" followed by the specific file name.
I checked, and the files exist in that location, but I know from my research that the message can be misleading; i.e., the message is returned by Windows which may be looking for a support file.
I don't know where to go from here.
I should note that previously I attempted to install JCL/JVCL into RAD Studio 2010 and initially got the same error message, but solved it by using a more recent version of JCL. However, there IS no more recent version of JCL that I can find.
Of course, it may be this cannot be done; i.e. install JCL/JVCL into Alexandria. Any information whether this is the case and, if not, what I might try would be appreciated.

VS 2019 : Locals empty when debugging only in part of the code

I'm trying to debug as always in VS 2019. Recently, for some reason, when I hit a breakpoint in specific .cs files the Locals window is empty. However, in other files locals are available! When I use Immediate Window in the files where locals are empty, I get "Unable to evaluate expression". But same command in other parts of the code is working.
Context:
Project is a C# library (dll) which loads as a plug-in in another application (Revit)
The pdb file is located in the same directory as the dll
Project is using Fody Weaver. However I've been using it before and I weren't having debugging issues with it.
Advanced build settings are as follows:
I attach to the process using Debug > Attach to Process and the Automatic option:
I am attaching in the Debug mode and the dll is built using Debug mode as well.
The "Optimize Code" option is unchecked.
Things I have tried:
Enabled "Use Managed Compatibility" mode
Enabled "Suppress JIT optimization on module load"
Enabled "Just My Code"
Deleting breakpoints and creating the again
Cleaning solution and rebuilding
Restarting Visual Studio
Starting Visual Studio as an administrator
Updating Visual Studio to latest
Restarting my computer
Update:
I tried refactoring and splitting the file where locals aren't showing, into two files. To my surprise now the locals are showing both in the file where they weren't showing before and in the new file. However, the values shown are still weird. The type of objects are shown as float {class} and I can't expand to see their properties. See screenshot below from locals displayed in the new file:
So in my case the issue was a virus protection software called Cylance I had installed. I changed its settings to Monitor and in the Debug settings of VS, unchecked the "Use Managed Compatibility Mode" and the locals are all showing as expected again.

An error appeared when opening TDS Solution: 'The operation has timed out' occurred while checking for your license

I'm trying to load a TDS solution from the Clothing Company Sample Solution provided in learning#sitecore but when I tried to load it, a few error messages appeared. First one is Sitecore TDS license cant be verified.
The second error appears when I reload the TDS project. Project Unsupported error.
Things I have tried:
Reinstall TDS
Restart Visual Studio and PC
Repair Visual Studio
The output from Visual Studio:
The error 'The operation has timed out' occured while checking your license.
This error occurs when Visual Studio is blocked from accessing the Sitecore license server.
Please contact developersupport#sitecore.com for more information on resolving this error.
Exception The operation has timed out (WebException):
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Hedgehog.LicensingV3.Client.ProductInfo.ProductInfo.ValidateLicense(Byte[] profileBytes)
at Hedgehog.LicensingV3.Client.LicenseValidator.GetActivatedLicense(WorkstationProfile profile, Int32 serviceTimeoutSeconds, Boolean isMultiLicense)
at Hedgehog.LicensingV3.Client.LicenseValidator.ActivateLicense(ILicenseInfoStore licenseInfoStore, Int32 serviceTimeoutSeconds, Boolean contactServer)
at HedgehogDevelopment.SitecoreProject.VSIP.Licensing.TDSLicenseSupport.DownloadNewActivationKey(ILicenseKeyProvider licenseKeyProvider, ILicenseFailureLogger logger, Int32 serviceTimeoutSeconds, Boolean backgroundCheck)
The error 'The operation has timed out' occurred while checking your license.
Just putting this out here. Found the fix. Just have to launch visual studio without selecting any recent projects. Once the visual studio is launched, click on Continue without code and everything should be working fine.

Xamarin form preview shows only Mockview

I am using Xamarin Forms on Visual Studio 2019. In every XAML forms of my project, when I try to show the preview I get only an orange box with the text "Mockview". I don't get any error message. My application build and works corretly but I can't see the preview.
This is the screenshot:
My exact versions are:
Microsoft Visual Studio Enterprise 2019 Version 16.2.3
Microsoft .NET Framework Version 4.8.03752
Xamarin 16.2.0.95
Xamarin Designer 16.2.0.375
Xamarin Templates 16.3.117
Xamarin.Android SDK 9.4.1.0
Any suggestion?
UPDATE:
The problem appears in release mode. In debug mode, after full reboot, it works, but sometimes not.
Sometimes appears an error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Xamarin.AndroidDesigner.DesignerProject.set_PreferredTheme(Theme value) in E:\A\_work\89\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\DesignerProject.cs:line 858
at Xamarin.AndroidDesigner.AndroidDesignerSession.SetTheme(Theme theme, Boolean triggerChange) in E:\A\_work\89\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:line 370
at Xamarin.Designer.Forms.Preview.AndroidXamlRenderer.<RenderOneXaml>d__23.MoveNext() in E:\A\_work\89\s\Xamarin.Designer.Forms\Xamarin.Designer.Forms.Preview\Android\AndroidXamlRenderer.cs:line 151
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Xamarin.Designer.Forms.Preview.AndroidXamlRenderer.<RenderXamls>d__24.MoveNext() in E:\A\_work\89\s\Xamarin.Designer.Forms\Xamarin.Designer.Forms.Preview\Android\AndroidXamlRenderer.cs:line 286
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Sometimes appears the error:
It's based on your design, when you design perfectly, it will work but anyone attribute will not valid or wrong, it doesn't shown but the output comes perfectly. because not valid attributes are ignored.
I recommend to use HotXaml or Live Reload

razor views are giving compile time error always in vs 2013

in visual studio 2013,when i create a viwe for a particular function=>when ever i change anything in view it gives a error in every line.although it is correct.
but it is correct means every lines of code is write.every time i need to build the solution to solve the error.its really occurred.
i tried to =>
[Instead of it, try to just delete the contents of this directory with Visual Studio closed then reopen it: %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache]=>found on Razor intellisense not working in VS 2015
but not working for me.

Resources