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.
RadhaKrishnaKiJayaAsked:
Who is Participating?
 
RadhaKrishnaKiJayaAuthor Commented:
All,
The real issue is not related to the Error Messages as stated above.  In the first website I provided an image URL as "~\ServerName".  I changed it to "..\ServerName".  It started working.

Thank you for you help.
0
 
Ares KurkluSoftware EngineerCommented:
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.
0
 
sammySeltzerCommented:
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
0
 
RadhaKrishnaKiJayaAuthor Commented:
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!
0
 
RadhaKrishnaKiJayaAuthor Commented:
Reason already provided.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.