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

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?

Related

Unable to get output on Browser - .NET Core 3.1 Visual Studio 2019

I am running a Web API on Visual Studio 2019 - .Net Core 3.1 application where I am trying to display data from database SQL Server. I am not getting any errors or warnings, yet when I run it I get output on browser:
This Site Can't be Loaded. The connection was reset.
Other times, I get message:"Unable to connect to IIS Web Server"
I have added the packages Microsoft.EntityFrameworkCore,Core.Design,Core,Tools & Core.SQLServer. Am I missing any packages that I must add? This problem is with the connection to browser right?
This is a screenshot of my debug page

VS 2012 on windows 8 and click once publish

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)?

Visual Studio 2010 published web site returns "Could not load assembly App_Web_xxxxxx.dll"

I am working on client's application in which we have two servers - development server and testing server. We first develop applications on development server and then publish it and host it on test server for client testing.
Testing server has Microsoft .NET framework 3.5 SP1. On development we have Visual Studio 2010.
We publish the website on development server using VS 2010 and then copy that folder to testing server and host it on its IIS.
Whenever we try access any aspx page of site hosted on testing server, we get error:
Could not load assembly App_Web_xxxxxx.dll". Make sure it is compiled before accessing the page
What can I do to resolve this?
This could be due to a lot of reasons.
I would start by trying one of the following things..
Make sure your IIS Site has the correct .net version specified - same as your application
Make sure you have all the required .net components installed in windows features (control panetl)
Look at event viewer for more errors and post it here
OK guys here is the solution.
Since my testing server is having Microsoft .NET framework 3.5 so on the development server while publishing from VS 2010, I have to choose target framework as 3.5.
Do this:
Right click web site -> Property Page -> Build -> Change the target framework.
After doing this setting, publish the web site again.

IIS 7.5 Invalid authentication headers 401.2 when viewing site in browser

I have a Visual Studio 2010 project that is using Forms Authentiation. It runs fine from within Cassini (visual studio systray IIS, aka pressing F5). I'm using MVC2.
I created a website in IIS 7.5 (on my Windows 7 machine)
then pointed the physical directory at my Visual Studio project file
Enabled only Forms Authentication in IIS
Keep receiving this error:
HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.
PS: I didn't use the Create Virtual Directory option in Visual studio, since I need host headers for what i'm doing, so a dedicated IIS website.
Follow the steps in this link
Error message when you try to visit a Web page that is hosted on IIS 7.0: "HTTP Error 401.2 - Unauthorized"
It is meant for IIS 7.0, but works for IIS 7.5 too.
See if this helps.
Fix 401.1 Error with Integrated Authentication on local machine

Unable to open the Web site: http://.. Forbidden

Maybe somebody has already encountered with next problem:
When I try to open Remove Web Site using Visual Studio 2008 TS (File -> Open -> Web Site -> Remote) located on Windows Server 2008 SP2 Enterprise x64 (IIS 7.0) I'm getting next error:
alt text http://img193.imageshack.us/img193/7820/croppercapture1.png
I have access to the server. I added user 'Everyone' with Full Permissions for that web site root directory, but it's doesn't helped.
Also I have installed FrontPage Server Extensions for IIS 7.0.
Being as its IIS7 its complex; there is a page on learniis about it though.

Resources