Running orchard CMS version (1.10) and (1.10.1) from visual studio 2015 - orchardcms

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.

Related

Unable to find the applicationhost.config to configure remote access in Visual Studio 2015

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.

wsdl definition not being updated even after closing iis site

I am using visual studio pro 2012 edition, one of our developers updated the wsdl definitions on a webservice without telling us and for a while i couldnt figure out why the wsdl definitions werent being updated. I did clean and build of the services, stopped the site and even exited IIS Express. Turns out if you have the solution open in visual studio with the old wsdl definition, the new definitions are not updated after pulling latest(svn). I tried several times and the only solution is to close visual studio and restart using the latest codebase.
anyone else experience this? could be a bug in vs2012 only?
I figured out what happened, my colleague copied over the hidden folder .vs folder which had the applicationhost.config file pointing to their username, vs2012 does not give any errors and happily runs the service but it serves the old pages. VS2015 shows an error page which is how i found out the problem.

Visual Studio 2012 "Extensions and Updates" "Unable to connect to the remote server"

This has been the case unfortunatly for the past couple of months. I can't install new or update packages from Tools ==> Extensions and Updates I tried everything, yet I am unable to find the reason.
I've tried :
Access NuGet and download packages from "Package Manager Console" Install-Package = SUCCESS
Access repositories using Web browsers, Visual studion internal browser = SUCCESS
Same window in Visual Studio 2010 = SUCCESS
Visual Studio 2012 - Doesn't work
Visual Studio 2010 - Works!
As it turns out for some reason -possibly due to an RC-, My registry settings were pointing to a different url that was getting redirected.
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\ExtensionManager\Repositories
AND I changed
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\ExtensionManager\Repositories{0f45e408-7995-4375-9485-86b8db553dc9}(Default)
to
http://visualstudiogallery.msdn.microsoft.com/Services/v2011/Extension.svc
instead of
http://go.microsoft.com/fwlink/?LinkID=251029
I changed
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\ExtensionManager\Repositories{aeb9cb40-d8e6-4615-b52c-27e307f8506c}(Default)
to
http://code.msdn.microsoft.com/Services/v2011/sample.svc
instead of
http://go.microsoft.com/fwlink/?LinkID=251031
Remove the local cache of extensions and download them all again.
The easiest thing to do is to rename
%LocalAppData%\Microsoft\VisualStudio\Visual Studio version\Extensions\
to
%LocalAppData%\Microsoft\VisualStudio\Visual Studio version\Extensions.old\
and run visual studio, it will update recreate the folder.
WeSam Abdallah's hint worked perfectly for me! Just try to open the link provided in HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\ExtensionManager\Repositories{0f45e408-7995-4375-9485-86b8db553dc9}(Default) in your browser and see what it is changed to automatically. For Visual Studio 2013 I had to change the URL from https://go.microsoft.com/fwlink/?LinkID=309922 to https://visualstudiogallery.msdn.microsoft.com/services/dev12/extension.svc
This answer is an update for Visual Studio 2015.
I tried the registry hack as well as renaming the Extensions folder, and neither solution worked.
However, in my case, the issue seems to have been because I'm behind a proxy at work. This worked for me:
https://stackoverflow.com/a/32650801/2452084

VS2012 Express Web Can't Create MVC4 Apps

I have VS2012 Express Web installed on my machine and can create all different kinds of Projects with exception of MVC3/MVC4 apps. When I click OK on the New Project dialog I get the Select A Template dialog. I notice that the Create a Unit Test Project checkbox is Disabled. Selecting any of the choices (such as Internet Application) gives me this same error: The system cannot find the file specified (Exception from HRESULT 0x80070002).
I have uninstalled and deleted the C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\VWDExpress\ProjectTemplatesCache and ItemsTemplateChache - and after removal deleted the entire VWDExpress directory so the fresh install would recreate all the templates. I've tried both the web-installer as well as the .iso installer. Has anyone seen this problem or have any idea why I can't create MVC3/MVC4 projects?
Any thoughts would be greatly appreciated. I have posted to the MSDN Newgroup and not had any luck there.
regards,
Bill
I had the same problem with a full installation of Visual Studio 2012. Uninstalling Visual Studio and everything it came with (SQL Server localDB, Silverlight SDKs etc), restarting, then reinstalling Visual Studio made it work.
Prior to re-installing, I ran ProcessMonitor during an attempt to create an MVC4 app and it kept trying to find an "extension.vsixmanifest" file but couldn't. I'm not sure which one, since I didn't try reinstalling all my extensions; maybe that will help.

Visual Studio 2012 Corrupting ApplicationHost.config File

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.

Resources