Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

ASP.NET App compilation error

OS: Windows 7
Environment:  VS 2013
Web App written in: ASP.NET and C#

Hello Experts,
I have a very old web application (A) which is full of Helps related to another website.  In the other website (B) a link is provided called Help.  On a click on the link, it should go the Help website (A).  Both the websites defined under one solution.  When I try to compile, I am getting the error as below.

Error 1
------------
The OutputPath property is not set for project 'xxx.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Release'  Platform='AnyCPU'.  This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.

When the above failed, I tried to compile the Help website (A) separately, I received the following error.  Any idea what is going on?  I know it is bit difficult explain.  Please let me know if you have any questions.  Thank you in advance.

Error 2
------------
Server Error in '/Helper' Application.

Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance.
Avatar of Ares Kurklu
Ares Kurklu
Flag of Australia image

I suspect some of the configurations are wrong and you need to set those correctly if you right click to project properties you should be able to change those. Seems like the Compile configuration is wrong as well the Release / Debug etc.. part. You can change that in the configuration manager too.
This error happens alot and has more to do with you creating an anonymous account on the PC.

There are a few options to solve this problem.

This is one:

https://support.microsoft.com/en-us/help/871179/you-receive-an-http-error-401-1-unauthorized-access-is-denied-due-to-i

*BUT* try this first and see if it solves your problem. If not, try the workaround above link.

https://support.microsoft.com/en-us/help/253667/error-message-http-401-2-unauthorized-logon-failed-due-to-server-confi
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Hello Ares and Sammy
Thank you very much for your help.  In the web.config file, I removed the line <authentication mode="Windows" />.  Now the 2nd error got eliminated.  I am still getting the 1st error.  Please see if there is anything else I can do.

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Reason already provided.