Enable windows azure authentication returns null name - asp.net-mvc

I have downloaded the fall update of VS2012, I have a windows Azure active directory account and an Office 365 account
If I create a standard MVC 4.5 internet project, remove [InitializeSimpleMembership] from the Account controller and enable Windows Azure Authentication I go through the registration process but when I run the solution I get an error on the login page because user.identity.name is null.
Can any tell me how to create an initial MVC project and enable Windows Azure Authentication.

In Visual Studio, go to Tools -> click on Extensions and Updates -> Click on Online in the left pane -> Search for Identity and Access Tool and install it. OR go to this link http://visualstudiogallery.msdn.microsoft.com/e21bf653-dfe1-4d81-b3d3-795cb104066e?SRC=VSIDE.
After you install the extension, you'll see a link called "Identity and Access..." when you right click on your MVC project in VS. Click on it and it will walk you through setting up your project.

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

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.

This application is not allowed to log into this QuickBooks company data file automatically

I want to create native QuickBooks connector. While connecting with QuickBooks Company file I am getting following error.
"This application is not allowed to log into this QuickBooks company
data file automatically. The QuickBooks administrator can grant
permission for an automatic login through the Integrated Application
preferences."
This is my Code:
QBSessionManagerClass sMgr = new QBSessionManagerClass();
try
{
sMgr.BeginSession(fileName, ENOpenMode.omMultiUser);
}
catch
{
sMgr.CloseConnection();
throw;
}
I am using QuickBooks Desktop Enterprise Solutions 17.0 and QBXML SDK 13.0 Installer.
Does anyone have any ideas as to what the issue may be? Thanks in advance.
First hit Ctrl+1 to bring up the following QuickBooks Product Information screen
Second, get EVERYBODY logged out of QuickBooks.
Third, copy the file path (NOT including the name of the QB file) into Windows Explorer to locate the permissions/users .lgb file: Rename it or delete it.
Open up QuickBooks in SINGLE USER mode, logged in as ADMIN.
Go to Edit>Preferences:
Go to Integrated Applications, and the Company Preferences Tab. Highlight the 'CLEARIFY-QQube Tool' and click the Remove button.
Next,Answer Yes to confirm.
Click OK to exit the window.
Return QuickBooks to Multi-user Mode and logged in as Admin.
Open up the QQube Configuration Tool. Then highlight the company and click on the Remove button.
A dialog box will appear telling you to have QB open, and be logged in as Admin, etc. etc.
Click OK to continue.
QuickBooks pops up with permissions:
Confirm to proceed:
If you have QuickBooks Enterprise 11, this dialogue box will pop up giving you further instructions to add a Custom Reporting User calleed "QQube". Be SURE to enter the SAME password as used when you setup the user in QuickBooks.
The company will show up in the Company File List: (Click the Save Button - if you forget to, it will auto prompt you to do so anyway)

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.

When I install TFS 2010 what is the standard user name and password at /tfs?

I just installed TFS 2010. When I go to machine-name:8080/tfs on my web browser it asks for a user name and password. What is the standard user name and password? How do I set this?
It should accept all username/password combinations which are valid on the machine running TFS.
There is no default password thing. (could be that default installation only allows administrative login)
See MSDN for further information on configuring TFS 2010:
http://msdn.microsoft.com/en-us/library/ms252477.aspx
In My case it was all about firewall configuration, let me tell you what I was dealing with:
I checked out windows firewall and I saw that there was an exception for TFS But it was not enough, why? See following image:
As you can see, TFS has been excepted but not for Public
So you can tick the check box for Public or you can change your network location from Public to Home or Work, go to: Control Panel > Network and Sharing Center
Change Your network Location
Now you can simply use those Windows accounts you have and it will be accepted definitely.
Overview: What was default Username and Password again?
Assumption: You are using TFS in local network, Your own server your own client!
Short answer: As a simplest method, you should create a windows account, introduce it in TFS to grant permissions, then you can login by that account from wherever in your local network.
Long Answer:
Step1: Create one or more windows account(s), to do that, go to control panel -> User accounts -> manage another account (Create another account while you can use the account you already have) -> Create a new account ->Give it a name
Probably you may need to select administrator
Then select created account -> Create a password
Step 2:
Go to Web Portal for VS TFS 2015, click on team members (or click on the gear icon in the above bar, and go to security tab) Add -> Add windows user or group -> Browse for account you already created or simply type it to add it.
Step 3:
Go to web portal for Visual Studio Team Foundation Server 2015, through web browser by some address like http://user-pc:8080/tfs (which you can find it in your VS or TFS) just like
then you encounter a dialog box which asks you for username and password, give the credential it asks based on windows account you have created, if everything is OK and no problem with firewall it's done.
Finally:
You might see multiple users in windows welcome screen which seems annoying, to prevent windows from showing them in the welcome screen
Go to Computer -> Manage -> Local Users and Groups -> Users
double click on each one of them and remove their member of data (which is set to Users by default)
Thanks to THIS
There is none. Log in as admin on the machine. Then create a new project group etc. Define admins there (Domain integrated). Their usernames / paswords will work then.

Resources