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.
Related
I have created an MSI / exe file using Visual Studio Installer. I want to run this installer from a web browser.
The purpose for doing this is that one of my client wants to perform a digital signature, the private key token of which is stored in the USB attached to the client machine.
As the USB can't be accessed from the browser due to security reasons (restricted access), I am trying to create a windows form installer app, which opens from any browser application (made in say MVC etc.), accesses the private key, and returns the encrypted string back to the browser from the windows app.
So my primary questions are:
1.) How to run the installer from the web browser. If installer already installed, how to check for newer versions?
2.) How to pass a string from web app to the windows form app
3.) How to return the modified string from windows form app back to the same web browser application
So any suggestions / recommendations / approach you can guide me through.
Thanks In Advance!!!..
There is a way to make it work.
Let's say you created a windows application for the clients and the name of the application is "AwesomeApp"
If you want to launch the application from the browser then you need to write an HTML href tag like this
<a href="AwesomeApp://<input arguments>" role="button" class="btn btn-primary">
Launch AwesomeApp</a>
When a user clicks on this button, the browser is going to ask to open your application. If the user clicks on "yes" then your application will be launched with input arguments
Now let's move to another part of the problem, how can you open a browser from your windows application
Definitely, you cannot talk back to the same tab that you opened in the browser. What you can do is that you can launch the browser with a specific string appended with your main Url.
Launching browser totally depends on what language you are using to develop windows application.
I guess you will be able to achieve what you wanted from this.
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.
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.
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.
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.