Visual Studio Designer crashing Windows 8 System.UnauthorizedAccessException - xaml

I am attempting to create Windows 8 application in Visual Studio using Component Arts charting controls. Everytime I open the designer in VS, I get the following error:
System.UnauthorizedAccessException
Access to the path 'C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\ComponentArt.WinRT.DV.Charting\2012.1.1871\References\CommonConfiguration\Neutral' is denied
Not sure what security settings I'm supposed to give to this path to make VS happy!

Seems this is a known issue with Microsoft. You can check the solution for this issue in the below SO thread.
Microsoft Advertising SDK for Windows 8 RTM causes Access Denied Error

Related

Dotfuscator Error when integrating into VB winform Application

I am trying to integrate obfuscation into the build of a project. I am using Visual Studio 2019 CE 16.11.5 and the project is a VB winform Application targeting .net 4.6. Windows 10 Pro x64.
As soon as I add required lines into my project files and save. Visual studio unloads my project, showing the following message in output window:
error : The imported project "C:\Program Files (x86)\MSBuild\PreEmptive\Dotfuscator\6\PreEmptive.Dotfuscator.Common.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files (x86)/MSBuild/PreEmptive/Dotfuscator/6/PreEmptive.Dotfuscator.Common.targets" is correct, and that the file exists on disk.
I checked the folder in the error message and it is not there. I uninstalled and installed Dotfuscator still the required folder is not created.
I also have VS 2022 CE installed.
What am I missing?

Visual Studio 2019 error: An error occured launching IISexpress.Unable to launch the configured visual studio development web server. Access denied

I was developing my project in vs2019. It was working before but last two days it is showing this error:
An error occured launching IISexpress.Unable to launch the configured visual studio development web server. Access is denied.VS2019
Have anyone faced this issue?
Tried removing .vs folder

The “CompileXaml” task failed unexpectedly when building for specific platforms

To use SQLite in Windows Phone 8 app, I need to build for specific platforms - x86 or ARM, depending on where the package will be used (emulator or device, respectively)
However, as soon as I switch from building from Any CPU to ARM/x86, I get wild error(s) in Visual Studio.
Error 15 The "CompileXaml" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'...SomePageName.g.cs' because it is being used by another process.
Things I've tried and other relevant info:
I have only one Visual Studio instance running
Blend is closed
I don't have any specific SQLite related changes, just project/solution configuration changes
I have installed Visual Studio Update 4
I have tried restarting Visual Studio
I have tried cleaning the solution/projects
I have tried deleting the .suo file
I have reinstalled the emulators update mentioned in this question
I have tried building with msbuild outside of Visual Studio (and it works, but I want to build from Visual Studio)
msbuild "myProjectNameAndPath.csproj" /t:Rebuild /p:Platform=x86 /p:Configuration=Release
Any other reasonable explanation why Visual Studio 2013 is failing with these errors?
Error 14 The process cannot access the file '...SomePage.g.cs' because
it is being used by another process.

Can't run Contoso Javascript on Local Machine

I tried to run the Contoso project on my Visual Studio Express 2012 RC for Windows 8, it reports this error. How to fix it?
Exception was thrown but not handled in user code at line 183, column 5 in Function code
0x80070002 - JavaScript runtime error: The system cannot find the file specified.
If there is a handler for this exception, the program may be safely continued.
Do you mean the Contoso Cookbook reference application for Windows 8 (available from here)? If so, you should be using Visual Studio Express 2012 for Windows 8 and not Visual Studio 2008. You will also need the Windows 8 operating system to run this.

Using VB DLL in .NET 3.5 Windows application ERROR

I have a Visual Basic DLL, I used it in a Windows User Control Application. It works fine, but when I HOST this Windows User Control in another Windows Forms application, it gives me the following error.
An error occurred creating the form. See Exception.InnerException for details. The error is: Creating an instance of the COM component with CLSID {66DF4F1A-E3E2-43D3-92BC-D56E9DDCB8AC} from the IClassFactory failed due to the following error: 800a005b.
When I run the User Control it works fine with me, ONLY when I host it in another Windows application this error occurs.
I'm using Visual Studio 2008 & Windows Server 2003
when I add the User Control, the DLL path is "C:\Documents and Settings\USERNAME\My Documents\Visual Studio 2008\Projects\HMS_WF4\HMS_WF4\obj\Release\Interop.DLLNAME.dll"
Notes. it's in Release, but when I compile the application it puts the output in the Debug folder. Even if I select the Release folder for debugging and compilation, when the application is run, it searches for the DLL in the Release folder, but it's in the Debug folder.
I get it....
When I host the User Control in a Windows Forms application, it initialize objects from the User Control objects in Form1.Designer.vb. Like Me.FrmTransactions31.TransHdr = CTransHdrClass2.
I just replaced CTransHdrClass2 with Nothing
Thanks for all.