VS 2012 on windows 8 and click once publish - windows

I've got a fresh build of windows 8 running Visual Studio 2012 version 11.0.60610.01 Update 3. I have a winform app that I have been using (when the machine was running windows 7). The file structure where i'm trying to get to is the same as it was on windows 7. I'm a local admin. I'm trying to publish the to the location of c:\inetput\wwwroot\deploy\SCC (again.. where I was doing it on windows 7, but on windows 7 I was using Visual studio 2010). I receive an error on each file that is a application files. The errors follow this line
Error 1 Failed to copy file 'C:\Bob\SCC\SCC\MailProcessor\bin\Release\app.publish\Application Files\MailProcessor_1_0_0_32\dbConfig.dll.deploy' to 'C:/inetpub/wwwroot/Deploy/SCC/Application Files/MailProcessor_1_0_0_32/dbConfig.dll.deploy'. Unable to add 'Application Files/MailProcessor_1_0_0_32/dbConfig.dll.deploy' to the Web site. Unable to add file 'Application Files\MailProcessor_1_0_0_32\dbConfig.dll.deploy'. The system cannot find the path specified.
1 1 MailProcessor
The solution builds without errors, just get these errors when I attempt to publish to my local IIS. Was hoping someone had already figured out how to fix this.
Thanks
Shannon

I am able to publish ClickOnce apps to localhost in Windows 8/VS2012. Are you running Visual Studio as an administrator? You have to do this in order to publish to the local webserver. Are there any files at all being deployed to the inetpub folder? Do you have full IIS installed locally (not IIS Express)?

Related

Blazor - Visual Studio generates different pathes to dotnet.exe in web.config

I have two machines. One is Windows 10, one Windows 11. On both I use the newest (up to date) version of Visual Studio 2022. On both I have the newest version of dotnet hosting bundle installed.
I am developing a Blazor only project in Visual Studio and run and debug it in IIS (not express).
On the Win10 machine Visual Studio generates the web.config with the following tag:
<aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" ...
On the Win11 machine on the other hand: <aspNetCore processPath="..\..\..\..\..\Program Files\dotnet\dotnet.exe" ...
Everything else is exact the same in both web.configs.
While everything works fine on the Win10 machine, on the Win11 I get an 500.30 error from IIS in browser. Windows event log here states that dotnet could not be initialized. When I manually change the path in Win11 web.config to the same, absolute, path like it gets generated on the Win10 machine it works.
Even though technically the relative path should be correct.
Why is it generated differently and how can I fix it for my Win11 machine?
Please try to deploy a simple ASP.NET Core MVC application. If it can run without 500 error, you may miss the IIS Rewrite Module.
If the simple ASP.NET Core MVC application cannot run normally, please check the application pool settings to see if it is No Managed Code.
If still not working, maybe we need further troubleshooting step by step.

Visual Studio 2015 Update 3 Community - offline installation failed - package is missing

I'm trying to install Visual Studio 2015 Update 3 Community on Windows Server 2008 R2 SP 1
I do not have an internet connection on my machine.
I downloaded official image here https://go.microsoft.com/fwlink/?LinkId=615448&clcid=0x409
During the installation I could skip some of packages, but I can not skip this vs_teamexplorercore
The same I have when trying to install Professional edition.
I had a similar issue once with the so-called offline iso, to avoided the problem I worked as following:
Download Web Installer from Microsoft Web Site
Execute the Installer on another computer with internet connection, note that what you download is not the real VS installer but more like a web start/ wrapper.
Once you run it use Windows Task manager and find the real web installer path that is stored in your user temp folder
copy the real installer somewhere else. like C:\VS2015\
Open Command Prompt and execute the installer that you copied with this argument: /Layout .
Now installer will download the FULL offline installer to your selected folder!
Zip the folder and bring it to your no-internet allowed server

Error installing Visual Studio 15 Preview 4 - Windows 7 SP1 requires KB2952664

As per the latest announcement from Microsoft here I'm trying to install Visual Studio 15 Preview 4 on my machine. My machine is Windows Server 2008 R2 Enterprise edition. I had already installed Visual Studio 15 Preview 3 but now I want to install Preview 4. The moment I try to run the installer "vs_bootstrapper.exe" downloadable from above mentioned URL it fails with following error.
Windows 7 SP1 requires KB2952664.
It shows the above message in a message box without any other redirection to some error log file or retry option.
I also tried running the installer exe with administrative privileges as well but to no success. I'm stuck. Can anyone help me if you also have faced or fixed this issue?
Note: I'm on a hyper-v box.
Visual Studio community link from Daniel A. White helped me resolve this issue. The problem is faced by many users and you can find the details here.
Quoting from the thread:
It seems that installer is looking for a file named "dismapi.dll".
This file has to be present in either %windir%\system32 or
%windir%\SysWow64 or any subdirectory.
A (dirty) workaroud is to create an empty file named dismapi.dll in
any of those directories and then you can install Preview 4... :)
As suggested in the problem thread, creating a dummy dismapi.dll file in %windir%\SysWow64 path helped me get past this issue. After creating the dummy file, the welcome page of the installer finally popped-up. The first solution to create the dummy file in %windir%\system32 didn't work for me. The two alternative solutions could be OS dependent. Mine was Windows Server 2008 R2.

VS2015 Unable to Create New Windows 10 UWP Project or Build Existing Windows UWP Samples

When I try to create a new Windows 10 UWP, or open or build existing samples or projects, I get the following error:
The imported project "C:\Program Files
(x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.CSharp.targets"
was not found. Confirm that the path in the declaration is correct,
and that the file exists on disk
I am running VS2015 Enterprise on Windows 10 Pro. Windows 10 SDK (10240) and Emulators installed. Have re-installed VS2015 several times without luck. There is no v14.0\8.2 folder on my machine. Tried to copy the v14.0\8.1 folder to create v14.0\8.2 folder but this only allows you to load the project or create new ones, but build fails. This is driving me crazy.
Note: An earlier install of same VS2015 ISO and SDK on Windows 10 Enterprise Evaluation was running successfully until I had to re-format a few days ago when I upgraded my Windows 7 to Windows 10 Pro. I have now also tried to install a clean copy of Windows 10 Enterprise, re-install VS2015 with SDK and emulators, and yet no luck. Same error keeps repeating.
Any suggestions on where/how to create the v14.0\8.2 folder would be appreciated.
The solution is to navigate to Control Panel | Uninstall a program and to select Visual Studio 2015. This allows you modify you existing Visual Studio 2015 installation. When you install, it is recommended to select the "install all" features which added the templates.
This blog should be helpful for you.
Besides, what's the exact version of VS2015 and Win10 you installed?

Visual Studio 2012 'Publish Profile' to Windows Server 2008 - 'Destination not compatible' error

I am deploying a website form Visual studio 2012 to a Windows Web Server 2008 R2.
I can connect to Web Deploy fine - though I get this error:
1>(27/05/2013 21:03:29) An error occurred when the request was processed on the remote computer.
1>Source (appHostConfig=Default Web Site/myAppMVC4) and destination (appHostConfig=myapp.com) are not compatible for the given operation.
1>Publish failed to deploy.
I fixed this by right clicking the project (not solution) - clicking Package/Publish Web and deselecting 'Include IIS settings as configured in IIS'
Now works fine.
Maybe this is because I'm using IIS 8 on Windows 8 locally - and IIS 7 on Windows Server 2008?

Resources