SharePoint Products & Technologies Configuration Wizard : System.FormatException - sharepoint-2007

I am configuring the Sharepoint for the first time, using the SharePoint Products & Technologies Configuration Wizard. While configuring, i have selected below options:
I am creating a new server farm.
Entered the my machine name as database server name, and specified
the credentials of domain user. This domain user is added to the
login user on my database server with Windows Authentication.
Specified the port number 10100 and selected NTLM authentication
provider.
After clicking Next i am getting below error:
An error has occurred while validating the configuration settings. An exception of type System.FormatException was thrown. Additional exception information: *Input string was not in a correct format.*
In the event viewer no error has been logged. But few Information level logs are logged stating 'Login failed for user ''. Reason: Failed to open the explicitly specified database. [CLIENT: *..*.]'. But i can login to database with the same user with Windows Authentication.
Please suggest few things to resolve this issue.
Thanks.

I came across with same issue. I Did rein-stallion of SQL 2008 R2 with SP1 and reinstalled IIS on SharePoint server. Then issue got fixed.

Related

Azure DevOps Server 2019/2020 Access Levels Page Not Found

I am running Azure DevOps Server 2019 cu7. When I click on the Access Levels link at the Project Collection level, I get a page not found error for ../_admin/_licenses. I then upgraded my development farm to ADO Server 2020, and still have the same issue.
The app pool accounts are both System and I have added the System account to the iis_iusrs group.
Also, i get a page not found error when trying to hit the/_api/licenses/export api to try to get around the page not found error when using a browser.
It seems that you do not have the permission Edit Instance-level information
Steps:
Open Azure DevOps Server Administration Console->click the option Application Tier->click the button Administer Security->select [Team Foundation]\Team Foundation Valid Users and ensure the permission Edit instance-level information is set the allow. Then we could check the Access Levels page.
Result:
The permission is set to Deny
The permission is set to Allow

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.

application pool user identity invalid some of the build runs

On our TFS build server, we're getting the following error most builds (so not ALL builds, sometimes the build runs perfectly!)
"The identity of application pool application_pool_name is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number."
Since it runs some builds, we know the identity is in fact not invalid and that it's not a code problem. Does anybody know if there are any other cases where you can get this specific error? We've had this problem for several months now...
EDIT: We've also found out it started after MS updates KB4015547 and KB4015550, but uninstalling them didn't help. Re-entering the user or using another user didn't work either.
The identity of all application pools should be set to the
correspondingservice account that you specified when you installed
Team Foundation Server (TFSService).
Change the identity and then try to stop and restart the application pool. For this, open Internet Information Services (IIS) Manager, expand the local computer and open Application Pools. Open the navigation menu and choose Stop or Start.
Restart the application pool so that Windows Process Activation Service (WAS) can determine the correct state of the protocol.
If above is still not working, you could also try reset the IIS entirely. More ways you could take a look at this thread: An application pool is not configured correctly

Aspnet core deployment to IIS - HTTP Error 502.3

I have created the IIS site and pointed it at the deployment folder. I have enabled stdout logging and this is the error:
info: Microsoft.Extensions.DependencyInjection.DataProtectionServices[0]
User profile is available. Using 'C:\Users\No Managed Code\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
fail: Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler[1]
An exception occurred in the database while iterating the results of a query.
System.Data.SqlClient.SqlException: Cannot open database "KeyStoneDb" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\No Managed Code'.
So, I added the login to SQL with all the necessary rights. Retested in DEV - fine, but when running IIS I still get the issue. The Application Pool being used is 'No Managed Code'.
Why cant the app not connect to the database?
IIS AppPool accounts are virtual accounts, therefore, they don't actually exist as a normal user on the system.
You can not give access to networked resources using that identity. Shared\network resources like file shares and databases that need to communicate with these accounts need to have the 'domain\machinename$' with appropriate permissions.
Give 'domain\machinename$' appropriate permissions on your DB. That should do it.

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.

Resources