Project that I just opened "could not be opened"? - visual-c++

I have a VS2012 C++ project. I can open the project by clicking on the .sln file, but when I open VS2012 and try to open the project from the Start Page, I get this message:
"TestApp2" could not be opened.
Do you want to remove the reference(s) to it from the Recent list(s)?
I don't get this message for all projects, just this one.
I'm trying to run it from the Start Page because I want to run the code as an Administrator. I can right-click the VS2012 icon in the Start Menu and click "Run as Administrator", but right-clicking the .sln doesn't provide this option.
Is there something I can do to fix the project so it can be opened from the Start Page? Or is there another way to open the project as an Administrator?

The link that is stored in the memory for Visual Studio, is now different. This is the only way that could happen. So, remove it from the pinned recent solutions, open it manually, and then it will have the correct linkage in the Visual Studio menu.
Sorry, didn't see prior post on same solution. :)

Related

VS 2017 - The Web Application Project [MyProject] is configured to use IIS. You do not have permission to access the IIS configuration FILE

My web application was working fine for months till today, don't know what has changed suddenly the project in my solution file says that it is "unavailable" when I open the solution. When I right-click on the web project and reload the project, I get the following error:.
The Web Application Project myproject.myapp.mywebproject is configured
to use IIS. You do not have permission to access the IIS configuration
file. Opening and creating web sites on IIS requires running visual
studio under Administrator account.
Note - All these months i was running visual studio normally(not under administrator account) and the application was working fine.
By seeing the above error i tried running my visual studio under administrator account and the project got loaded but the Source Control File Status beside all the files disappeared, i no longer see any blue lock icon beside any of the files and even when i edit any file also there is no status beside the file in my project and also when i right click on any of the file i don't see the view history option.
My project which was running successfully till now not loading the project. any suggestions on this ?
Browse to C:\Windows\System32\inetsrv and then double-click the “config” directory to get this warning dialog:
Click on the Continue button.
Do the same for the C:\Windows\System32\inetsrv\config\export directory and also the other directories in C:\Windows\System32\inetsrv.
Now you will be able to open the Visual Studio Web Application Project without a problem.
Just run Visual Studio as an Administrator and the problem will be solved.
from the Start menu or when Visual Studio is open on the taskbar, right-click the VS icon.
in the context menu, right-click the visual studio icon again.
left click on properties.
advanced choice.
choose Run as administrator.

LogCat Missing from Android Studio 3.1.3

I recently installed Android Studio 3.1.3 on my laptop in order to start learning android/mobile development (I am still new to all of this). The LogCat option seems to be missing though (refer to images below)
What I tried to do in order to fix the problem:
-uninstalling and reinstalling android studio (along with updating it...)
-researching the problem (no useful results as all the solutions were to press alt-6 or go to View->Tool Windows)
It would be a huge help/relief if someone knows how to solve this problem.
Thanks in advance.
I know it is an old question, but I encountered this problem at least twice so it might help someone.
The problem seems to be the path of the project you're looking at.
It should be pointing to the folder containing the 'app' and 'gradle' folders inside your project.
Go to File > Open
Select the folder with the 'app' folder inside your project
Press 'Open'
If you see something like this you can now probably open the Logcat window with alt-6 or View->Tool Windows.
Note that for some reason, it didn't work for me at first until I opened the app folder, run a build and then opened the folder containing the app folder.
You need to sync your project and then Logcat will show up
Just in case anyone stumbles upon this as I did: If you are developing a react-native app, be sure that you import only the android folder of the project.
If you import the whole project, then among other things, logcat is nowhere to be found!
Try pressing Alt+6 on Windows or CMD+6 on Mac.
I closed "Logcat" by accident via right click -> "Remove From Sidebar".
I was able to restore it with these steps:
Launch your current App on an emulator.
This should create a "Run" Tab on the Sidebar.
Click on the "Run" Tab and find the "Modify Run Configuration..."
(Wrench) icon and launch it.
Change the tab to "Miscellaneous".
Check the box next to "Show logcat automatically"
This is not a solution if Logcat doesn't even show up in View->Tool Windows!
But if it does: click it and it may show up at a different location than it used to be. Without recognizing I had shoved it to the top left where the project tab is shown. You can now click on the gear wheel on the tab and select move to bottom left (that is the default location).
This was the solution for my "logcat not showing".
Press Alt+6 inside Android Studio to open Logcat monitor.
Then, Do the following steps:-
Open Android Studio.
Open Android Monitor Window(at the bottom of android studio).
Here you will see the drop down in right corner.
Select Show only selected Application.

Android Studio 2.2.3: Favorites, bookmarks and opened folders keep disappearing, project and .idea-folder are always rebuilt

I'm trying to use favorites and bookmarks with Android Studio 2.2.3 on Windows 7 in order to navigate through our code base.
I have openend one project, where the saving of favourites and bookmarks works fine. BUT when I open another project, while my first project is open as well and then close one of the 2 projects, the closed project loses all the favorites, bookmarks and which folders and tabs I had opened.
Also AS keeps asking me to add the VCS root everytime I start it.
Although I've searched I could not find any sources describing my problem.
I've copied all my projects into a new folder and gave myself all permissions to this folder, which did not fix my problem, so I think permissions are not the problem.
My assumption was, that Android Studio might have trouble if you use multiple instances.
So I went and tried to set it to only use one window:
But this setting keeps getting ignored and AS opens a new window for every project.
I reset all the settings for Android Studio by removing the folder C:\<username>\.AndroidStudio2.2.
Then I re-started Android Studio and didnt import any new settings.
With this configuration my problem still occurred.
In order to reproduce the 'bug' do this:
Open a project by File -> Open (NOT File -> Open recent!)
Add bookmarks
Open another project (while the first project is still open!) by File -> Open
Add bookmarks there as well
Close project 1 and re-open project 1 by File -> Open
All tabs / bookmarks / favorites should be gone at this point.
Vadim Kotov has confirmed that the problem happens with his Android Studio as well, so I suspect a bug in AS.
How can I fix the disappearing favorites, bookmarks, opened folders and tabs?
This problem seems to be a rather old bug in Android Studio:
https://code.google.com/p/android/issues/detail?id=172347
The bug is fixed in the Android Studio 2.3 BETA-release:
https://code.google.com/p/android/issues/detail?id=232670&thanks=232670&ts=1485023505
Basically Android Studio seems to overwrite the workspace.xml in the .idea-folder for a project with a default - workspace.xml everytime I use the Open - menu.
AS probably re-creates the whole .idea-folder and rebuilds the project, everytime I use the File -> Open-dialog.
Workaround:
Since I cant switch to another version of Android Studio due to company rules, I use the following workaround:
When you want to open a project for the first time, you have to use File -> Open
After that, ONLY use File -> Open recent in order to get into one of your projects
This will save the opened tabs, bookmarks, favorites and will open only one instance of AS in the forground instead of the background.
WARNING!
If you later click on File -> Open either because the recent-menu is filled too much, or you do it by accident, you still probably will lose your bookmarks, favorites etc...

Android Studio Setup Wizard Stuck on Downloading Components

So far, I've run into a brick wall when trying to open Android Studio. Installation seems to run fine, but when I open the program for the first time, I am greeted with the setup wizard which informs me that it will be downloading components.
The first line in the dialog box tells me that the sdk has been installed in a specific location, which it then lists.
At the bottom, there are greyed-out navigation buttons for 'Back' 'Next' and 'Finish'. The 'Cancel' button is active, but when I click it, nothing happens.
There is no button for 'Show Details' to reveal what is going on behind the scenes.
Basically, this screen does not advance. I have tried on multiple different internet connections. I am not using a proxy.
When I hit cancel, the button becomes greyed-out, and nothing happens. The only way to exit the screen is to force close it in Task Manager.
I have tried running as an administrator.
I am currently running Windows 8.1.
Any ideas what is wrong?
You can download the latest components manually.
Go to C:\Users\Username\AppData\Local\Android\sdk
Open SDK Manager.exe
Update the packages.
Start Android Studio.
Solution for now was to use an older stable version. 1.0.2 worked fine.
Uninstall Android Studio and clean all the junk files, then reinstall it should fix that!
First, Run "Control Panel" ⇒ "Programs and Features" ⇒ Uninstall "Android Studio"
Then make sure to delete any of these files if exist:
C:\Users\username\AppData\Local\Android\Sdk (this directory contains the SDK).
C:\Users\username\.android
C:\Users\username\.AndroidStudioX.X
C:\Users\username\.gradle
C:\Users\username\AndroidStudioProjects (these are the Android projects written by you)
I deleted the folder /Users/USER_NAME/Library/Android/sdk and it worked.

I have made an application in visual studio 2012 and went under whole process of certification but the test failed, please give me the solution?

please guide me , how to change the default icon in the project in visual studio 2012 ?
due to that the certification test fails .
Due to this error I am not able to upload it to the windows store.
To change the default icon, first find or make an icon file. Then do this:
Go to the project properties. (Project menu.)
Select the Application pane. (Probably the first one.)
Go to the section Resources.
Check the option (radio) button Icon and manifest.
For the Icon field, use the browse button to select your icon file.
Save it, build it, try the certification test again.

Resources