I just installed Visual Studio 2012 RTM. During the process of trying to create a new web project, I receive the following error:
"Web application projects are currently configured to use IIS Express. To switch back to using the Visual Studio Development server, change the development server option under the Projects and Solutions/Web Projects category of the Tools/Options menu. Configuring IIS Express failed with the following error: Filname: \?\UNC\DEV-FILES\home\mike\MyDocuments\IISExpress\config\applicationHost.config. Line number:1. Error: Configuration file is not well formed XML"
...and project creation subsequently fails.
I already know that I can resolve the this by using the VS dev server, but I should also be able to use IIS when necessary.
When I view the applicationHost file in question, its size is 0kb. It looks like Visual Studio 2012 wiped the contents of the file completely out. I've taken clean backups of the applicationHost file from c:/inetpub/history/ and restored them in the IISExpress folder. Again, when I attempt to create a new project through VS 2012, the file goes from 85KB back down to 0KB.
So I guess I'm trying to figure out why VS 2012 is writing to the applicationHost.config file, what it's trying to write, and how I can resolve the issue.
Thanks,
Mike
I had this problem and solved it by removing encryption on the IISExpress folder. You may or may not need to remove encryption on your My Documents\Visual Studio 2012 folder as well.
Related
I am developing an ASP.NET MVC project. Now I just installed Visual Studio 2015. before I developing that project using Visual Studio 2013. So now I imported that project into Visual Studio 2015 installed on my new laptop to continue developing. Importing project and developing process all working fine.
But the problem is to configure IIS Express of my project for remote access. I enabled in Visual Studio 2013 on my old laptop successfully following this link - http://johan.driessen.se/posts/Accessing-an-IIS-Express-site-from-a-remote-computer. For VS 2013, the IIS config file is under D:\Users[YourName]\Documents\IISExpress\config\applicationhost.config. So now I need to configure it for VS 2015. As the link mentioned, the config file must be in /{project folder}/.vs/config/applicationhost.config. I searched for that file in my project, I cannot find it.
You can see my project structure below.
So I searched for config settings in D:\Users[YourName]\Documents\IISExpress\config\applicationhost.config because this project was built using VS 2013. But there is no config settings for this project. I already run my project on browser and it is running fine.
The problem is I cannot find binding settings in D:\Users[YourName]\Documents\IISExpress\config\applicationhost.config and cannot find applicationhost.config in project folder for IIS configuration. Where can I find that file? Where can I find IIS config settings for my project in Visual Studio 2015?
.vs/applicationhost.config is not created when I opened the project
with visual studio 2015.
Finally I found the solution. Please have a look how I solved below.
I opened GITIGNORE file as in the below screenshot
Then I added/appended this line
.vs/
to that file and saved.
Then I restart visual studio and opened the project.
So .vs file is auto-created and applicationhost.config file is inside there. Hope this works for you if you have similar issue.
Below is the error that I is displayed when in tried to run Orchard (1.10 and 1.10.1) source from Visual studio 2015 community version.
I know that it is somehow related with configuration settings, but I am unable to solve it.
The same files, when placed in the local IIS runs without any problems. Is there anything that I am missing in visual studio 2015?
How to resolve this error?
Is the displayed 'Config file' path corresponding to your folder?
Because it doesn't seem to be a folder coming from the source code.
Sometime, IIS Express messes up when you try to launch a site with the same port that a previously used one.
Try to read your applicationhost.config (see IIS Express in tasks bar to get the path).
You could also try to change the port in Orchard.Web properties.
PLEASE HELP!!!!
MY SET UP
Visual Studio Ultimate 2012 Update 4 on Windows 7 Professional,
ACTION
Installed latest SQL Server Data Tools Update
SYMPTOM 1 (Cannot create)
When attempting to create new project, I get:
Could not load file or assembly
'Microsoft.Data.Tools.Schema.Utilities.Sql.11, Version=11.1.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The System cannot find the file specified.
SYMPTOM 2 (Cannot open existing project)
When attempting to open an existing project, I get:
Unsupported
This version of Visual Studio does not have the following project
types installed or does not support them. You can still open these
projects in the version of Visual Studio in which they were originally
created.
Non-functional changes required
Visual Studio will automatically make non-functional changes to the
following projects in order to enable them to open in this version and
Visual Studio 2010 SP1. Project behavior will not be impacted.
WHAT I HAVE TRIED
I have uninstalled/reinstalled VS2012, SSDT, and Update 4.
I've gone through "Programs and Features" Control Panel and have Repaired everything in several different orders.
I have been all over the internet and have tried every single workaround from every article even remotely related to my situation, including deleting temporary files, registry keys, etc.
Nothing seems to work.
Please help me, I'm on day 2 of being dead in the water.
MICROSOFT -- HEADS UP!!!
This appears to have worked !!!!
Zip up the folder C:\Program Files (x86)\Microsoft SQL
Server\110\DAC\bin and set aside (in case this doesn't work for you)
Delete the contents of C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin
Copy the entire contents of
C:\Program Files(x86)\Microsoft Visual Studio\11.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\120
into C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin
Re-launch VS2012,
AND
I was able to create a new SQL Server Database Project, and
I was able to open one of my existing projects.
VS did crash once when i was looking through my project using the SQL Server Object Explorer, but I have not been able to duplicate it.
I've recently uninstalled and re-installed some IBM programs on my computer. Now when I go to connect to TFS, I get the errror:
TF205020.... Configuration system failed to initialize.
In the end I removed my server from my server list and now when I add it, I get the same thing (without the number). This leads me to believe that something is messed up in my Visual Studio instance.
I'm using Visual Studio 2012 and connecting to a TFS 2012 server.
I tried deleting config files under C:\Users\ME\AppData\Local\Microsoft\Team Foundation\4.0\Configuration\VersionControl, but that didn't help.
Thanks for anyone with an idea.
this usually happens if you have a broken web.config file. Check to make sure your machine.config files for v2.0 and v4.0 does not have any any broken tags.
When I try to view a .sql file from Source Control Explorer in Visual Studio 2012 (TFS 2012) I get the following error message:
TF10187: Could not open document
FilePath\FileName
User canceled out of save dialog
It's only happening for SQL files. The file does exist in the TFSTemp folder and I can double click and open it from there. What do I need to change to fix this error message?
Install SQL Server Data Tools - September 2013 update things will be fine. http://msdn.microsoft.com/en-us/jj650015
For us, this seems to be linked to a .NET Framework 4.6 upgrade and is not limited to SQL files. Users have issues opening files from Source Control Explorer and Solution Explorer.
Delete the contents from the following folders:
C:\Users\<>\AppData\Local\Microsoft\Team Foundation
C:\Users\<>\AppData\Local\Microsoft\VisualStudio
C:\Users\<>\AppData\Local\Microsoft\VSCommon
The first step fixed it in my case, but you can try this if it doesn't: Navigate to the Visual Studio IDE folder in command prompt or windows explorer and Run the following command "devenv /resetuserdata". Ie: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE. To minimize the potential loss of the user’s personal environment, you should consider creating a backup using the Export Settings wizard, and the Import Settings wizard to restore the settings if and when needed.
Note: The side effects of running the /resetuserdata option is that any customizations will have to be reconfigured (ie: TFS server and proxy settings) as well as many, if not all, Visual Studio extensions have to be re-installed.
Source: http://blogs.msdn.com/b/willy-peter_schaub/archive/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not.aspx
Looks like you need to uninstall Redgate and then re-install the data tools. This is probably because an add-in was trying to grab the .SQL files and do something with them that VS wasn't expecting.