HTTP Error 500.19 - Internal Server Error 0x8007052e - asp.net-mvc

I copied an MVC project from another development pc to my laptop and tried to deploy it on the laptop which gave this error. The user account password was changed recently prior to this error. I tried tinkering around with the app pool permissions for the root folders with no effect. Any ideas? I am stuck.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007052e
Config Error Can not log on locally to C:\inetpub\wwwroot as user {MY ACCOUNT} with virtual directory password
Config File \?\C:\inetpub\temp\apppools\ASP.NET v4.0\ASP.NET v4.0.config
Requested URL http://localhost:80/hts
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Config Source
145: <application path="/" applicationPool="ASP.NET v4.0">
146: <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" userName="{MY ACCOUNT}" password="[enc:AesProvider:{etc etc etc}:enc]" />
147: </application>

Open the Internet Information Services (IIS) Manager (Start > Run > type "inetmgr").
Using the navigation pane on the left, browse to Sites > Default Web Site.
Right-click on Default Web Site and select Manage Web Site > Advanced Settings.
Set the Physical Path Credentials field to Application user (you must enter user and password).
Click OK and then OK again.
Right-click on Default Web Site and select Manage Web Site > Restart to refresh the changes that were just made.
At this point you should be able to reload the page in your browser.

Open IIS Manager
Select the site. Default Web site in my case and click "Basic Settings..."
This opens the Edit Site dialog.Click "Connect as".
In the Connect As dialog, click Set and provide the new password in the Set Credentials dialog.
Come back to Edit Site dialog and click "Test Settings..."
Once the connections succeeds, you should be able to successfully open the site in your browser.

I ended up reinstalling visual studio and eventually got everything working.

Related

TFS 2017 TF31002

Apparently we have a configuration issue with TFS 2017 11.0.60315.1
The team project collection(s) are online, but I get TF31002 error when I try to connect from my client AND the server. e.g. click "Change URLs" and "Test"
I also get HTTP code 404: Not Found when I click "Group Membership" or "Administer Security" from the Application Tier.
I cannot add a picture so... here is a transcript:
Error Encountered
TF31002: Unable to connect to this Team Foundation Server:
http://myserver:8080/tfs
Team Foundation Server Url: http://myserver:8080/tfs.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline
- The password has expired or is incorrect
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
I have tried changing the Service Account & password
I have clicked Reapply Account
I have tried changing the Authentication Settings
When I click Group Membership or Administer Security, I get the 404 error
I have tried changing the URL
a. http://myserver:8080/tfs/defaultcollection
b. http://myserver:80//
c. http://myserver:8080
d. http://(ipaddress):8080/tfs
e. http://localhost:8080/tfs
The remote server returned an error: (404) Not Found.
If you are using http://localhost:8080/tfs url and still get (404) Not Found. Then this kind of issue may related to IIS side.
First check IIS logs, if there are some useful information.
Go to IIS manager to check the TFS bindings should be such as below:
If you look into IIS manager, application pools, under TFS app pool, what identity TFS appPool is using? If you see it is set as “ApplicationPoolIdentity” instead of networkService or a domain account for TFSservice,
Try below cause and resolution and see if that could solve the issue:
Cause:
The ApplicationPoolIdentity account did not have permissions on the content folder.
Resolution:
Set the permission for the Application Pool Identity (which is a virtual account) on the folder where the content is located.
The steps to do so are:
Right click on your Site/Application in IIS Manager and select Edit
Permissions.
Under Security tab click Edit, then Add. Enter "IIS AppPool\", ensure that location is set to the local computer, and
select Check Names.
Allow this user to have modify permissions.
http://learn.iis.net/page.aspx/624/application-pool-identities/
Besides, you could also take a look at this similar issue here: TFS 2010 RC, getting 404 on http://localhost:8080/tfs
Check if it's also UrlScan installed and that blocked your tfs site.

Error on uploading a file in IIS 7.5

I've deployed an app to the IIS(and it works) and now I need to upload files to it. On Visual Studio I can upload files by running it with the admin role, but once published, it says that: "ASP.NET is not authorized to access the requested resource".
Anyone knows how to fix it?
Can you check the application pools for .Net Framework associated with the classic or integrated mode. if it is classic mode means, you have to change the integrated mode, then restart the IIS server. After successfully restarted IIS server, you can run the application now.
Step:
Go to application deployed folder location in Windows Explorer
Right click the main folder or specific folder or file, and then click Properties.
In the Properties dialog box, click the Security tab.
On the Security tab, you can see the list of users. If the Network Service account or ASP.NET account is not listed, add it.
In the Properties dialog box, click the Edit of Network Service or ASP.NET user name, and in the Permissions for NETWORK SERVICE section, select the Read, Write, and Modify permissions.
Click Apply, and then click OK.
you can see the screen by screen step following link
http://www.banmanpro.com/support2/permissions.asp
Edit:
Here's the screenshoot.

Change website URL in IIS

I have a site set up in IIS that I'm currently accessing via localhost, I'd like to access it via URL mysite instead for example... I have edited the binding in IIS to add mysite as a host, and have also added the line 127.0.0.1 mysite to the hosts file. When I try and access mysite via a browser it seems to be trying to go to the correct location but keeps requesting a username and password and won't accept the one I am logged on with (Windows Authentication is enabled in IIS).
Is there another setting somewhere that I need to change?
Thanks
Check the authentication in IIS for the site. It should be "Windows Authentication".
In addition, you can also check the IE settings for Local Intranet. It should be set to "Automatic logon with current user name and password" or "Automatic logon only in Intranet zone".

ASP.MVC Windows Authentication HTTP Error 401. The requested resource requires user authentication

I have an ASP.NET MVC application using windows authentication that I published by visual studio on a windows 2008 server.
But when I try to reach the application from a browser I have to authenticate I get the default authentication form to do this.
If I type my user name and password I can not reach my application but if I use the administration account the application will be displayed in the browser.
And other strange things... in the IIS server I select the application site and click basic settings.
I click on the test connection button I get the following error message:
"Invalid application path".
But if I click the connect as button and use the administration account the test is passed successfully.
Anybody can help me?
l.

TFS 2010 Team Web Access - continuous authentication prompts appear and page never fully loads

at my company we have a number of clients and partners accessing our TFS 2010 SharePoint project portal and Team Web Access site over the Internet (https mostly but in this case http). For most of them everything works fine. For one client though, the following happens:
Authentication prompt appears when accessing either the project portal or Team Web Access
User types in username and password
The page loads half-way with text, but without CSS or images loaded.
Prompt appears again, even if "Remember password" is checked in the browser dialogue (IE8)
User tries the same procedure 10-20 times but gives up, resulting in an incomplete page load with no CSS or images.
In our attempts to remedy this we have opened ports 80, 8080, 443, 1443, 8000 but the errors still occurs for this specific client.
We thought it might be related to port 8080 causing firewall problems, so we moved Team Web Access to port 80, but the problem is still there.
Why could this be happening? The client certainly wants to know but I'm afraid I have no good answer yet.
Try change Internet Options > Advanced > Under the security section > uncheck "Enabled integrated Windows Authentication".
Try adding your Team Web Access URL to the Intranet Zone sites list. Internet Options > Security > Local Intranet > Sites > Advanced. There is a security setting that says 'Automatic logon only in Intranet zone'.
Also, take a look in Control Panel > User Accounts > Manage Windows Credentials and make sure that an incorrect password is not saved for the site.

Resources