I'm trying to build a Web Deploy package via msbuild on a new machine and it's not working. It builds fine on other machines, but here I get the following vague error:
...\Microsoft.Web.Publishing.targets(2767,5): error : Filename: redirection.config ...\Microsoft.Web.Publishing.targets(2767,5): error : Error: Cannot read configuration file ...\Microsoft.Web.Publishing.targets(2767,5): error : ...\Microsoft.Web.Publishing.targets(2767,5): error : Unknown error (0x80005000)
I'm not sure what 'redirection.config' is, and the line reference to the .targets file doesn't help at all.
How can I fix this?
redirection.config is a file that lives in the IIS configuration directory, typically
%SystemRoot%\System32\inetsrv\config. Here are two possibilities:
Similar Issue resolved below - Might help
I got this error when I tried to use a relative path for the
contentPath setting. I fixed it by settings the contentPath to the full path of the folder. Without the full path, the contentPath provider thinks it is a site path or application path and looks for it in in the IIS configuration.
This error just appeared to me when my C# project was referencing the
Microsoft.Web.Administration, Version=18.104.22.168 assembly. It looks like this assembly only works with IIS Express. For IIS, we must use
After hours of testing and troubleshooting this problem turned out to be an issue with the users profile.
This was found by logging in as myself and I didn't receive the same issue.
To fix this issue:
- Log into the machine as an administrator and delete the contents of the corrupt profile from C:\Users (or rename the folder to username.OLD)
- Open up the registry and navigate here – HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\ProfileList
- Find the corrupt profile and rename this to .OLD or remove it.
You can read more about it at this article.
On server 2012 this error can be caused by UAC which needs to be disabled via the registry.
This article explains why... https://social.technet.microsoft.com/wiki/contents/articles/13953.windows-server-2012-deactivating-uac.aspx
change DWORD "EnableLUA" from 1 to 0
User contributions licensed under CC BY-SA 3.0