I am working on a website which authenticates with Facebook, so that the user can sign in through his/her Facebook profile. I've seen similar questions like this one, but none that covers exactly my issue.
To test this Facebook authentication locally, I figured that some hacks were needed. You see, Facebook only allows redirects to certain domains after the authentication process. For these domains, localhost is not an option.
So I decided to do some research. I ended up changing my hosts file to point the domain local.fablelane.com to 127.0.0.1. However, now it complains when I try to change the virtual directory in Visual Studio 2012.
First, I see this dialog after changing it.
I then click Yes and end up with this dialog here.
What do you suggest I try? How can I change my virtual directory? It is important that I find a way to do this either programmatically, through changing a file somewhere, or through the commandline. The reason for this is that I intend to make an automatic setup program that does this for me in the future.
You will need to uncheck Use IIS Express and also add your new name local.fablelane.com as a binding to IIS, so that when VS tries to open the site URL, the host-header matches the site.
Also, is there any reason you need a specific port, rather than the default? It should be fine with 80.
You haven't said which version of IIS you're using, but on 8, open IIS Admin, expand your machine-name, expand Sites, right-click on local.fablelane.com (or however you've named it), and select Edit bindings and add local.fablelane.com.
Try uncheck the option "Use IIS Express".
Check if your website port number in IIS has been changed.If its changed edit bindings and change port number to 80
In addition to the above, click on the override application root URL and paste the host name address which you have given in the Project Url.
It worked for me.
Related
I initially installed the Microsoft Visual Studio Express 2013 for Web on my desktop. My desktop runs Windows 8.1 with internet explorer 11. It ran fine until the license expired after the first 30 days. I tried to sign in to renew the license, however after clicking the 'sign in' button I get an error dialog. The dialog states 'Browser is security restricted or javaScript is disabled. I have no other option but to close and exit Visual Studio.
I went to the online forums for Microsoft. There were discussions and suggestions on how to fix the error. I tried lowering the settings for the security tab in internet explorer. I have validated the option for scripting is enabled. I have also added https://*.visualstudio.com to the trusted sites tab. Other users on the forum have tried the same suggestions and have not succeeded in signing into the visual studio application.
I had exactly the same problem, here is what I did:
a) Go in IE, click on settings wheel then Internet Options and Security tab.
b) Click on Custom level button (make sure you select Internet zone).
c) In Security Settings window, under Scripting I set Enabled for Active scripting.
After that Sign In should work. Even though Chrome is default browser, it seems that VS uses IE for sign in process.
Hope this helps!
There is another issue people are running into that is a bug with the login dialog. The login dialog is using a Web Browser control to login the user. By default it loads up "about:blank" as the URI. It then proceeds to try to execute some JavaScript (just ";") to verify it has permissions to do so. On some machines this is problematic because "about:blank" has been mapped to zone 0, or the Local Machine zone. When the JavaScript is executed MSHTML will check the zone of the URI and then the policy for executing scripts. By default the Local Machine zone is locked down, and all script executions result in a Query policy. What this means is if you're running in immersion mode (aka in Internet Explorer) you will get a message box asking if you want to execute the script. However, the Web Browser control used by VS 2013's "Sign In" dialog doesn't run MSHTML code in immersion mode, so the Query policy effectively equates to a Disallow policy. The bug here is someone in VS assumed "about:blank" resolves to the Internet zone, and when it resolves to the Local Computer zone you get this behavior.
The workaround is to remove "about:blank" zone mapping. Point regedit to this key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains]
Remove the "blank" key.
Alternatively you can change the Local Machine Lockdown policy for executing scripts. The reg key for that is:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0]
Set the "1400" DWORD value to 0.
There are many sites you need to list in your Trusted Sites. Following the trace of what the stupid, stupid login script does:
https://.visualstudio.com
https://app.vssps.visualstudio.com
https://.accesscontrol.windows.net
https://auth.gfx.ms
https://login.live.com
Only then was I able to log on to my FREE software.
Hi this is Albert from Microsoft. Just want to let you all know that this issue has been fixed in the upcoming Update 2 for Visual Studio 2013. Thanks for your patience while we figured this one out :)
Same problem "Browser is security restricted or JavaScript is disabled" here but the solution from #jic didn't work for me..
If you can and it is convenient for you this is a solution which worked for me:
I have created a new user/profile on my PC and for this user it was just working fine.
Before this action I have tried to make an user account which had this problem as:
Power user - didn't work
Administrator - didn't work as well
So the last solution in my case was a brand new user on the PC..
Here's what worked for me.
Open Control Panel, Internet Options.
First, I clicked the Security tab and turned security the security for the Internet zone to its minimum.
Next, click the Privacy tab, then click Advanced. Choose "Accept" for both types of cookies.
Of course you can change these all back after extending your VS trial.
you must change secure settings of iexplore for admin account. If logon by other account, you must start iexplore under admin account or logon under admin account, because you will get license after admin account.
Click on Start --> Run --> type cmd and click on OK.
Command Prompt will be opened. Then enter this command.
ipconfig /flushdns
and press Enter.
Now try to access https://app.vssps.visualstudio.com/Profile/View
It worked for me...
As I can not add a comment yet to the answer of CBGraham, I've to add this note over here:
The solution described from CBGraham worked for me (Thanks Graham). I had to add an additional link:
https://account.live.com
Then I opened the IE and tried to login to a Microsoft site. I left the IE window open and just clicked once again on the VS to login. Then it worked for me. Even with strong restrictions on the IE settings. While I'm surprised why someone should set down his security settings, just to register VS.
I am trying to access the report manager url for SSRS. But, I keep on getting the error below -
User mycomputer\myloginName does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed.
I tried to run my browser as admin as described here - User '' does not have required permissions, SSRS 2008 on Windows 8
with no success. I also don't see the 'site settings' on top-right corner as mentioned by so many people. Also, I cannot go through the pain of reinstalling SQL server all over again. I don't want to disable UAC.
I am unable to do anything because of this problem.
How do I fix this problem?
This solution is for Internet Explorer. I don't know how it can be done for firefox or chrome.
Link 1 -
http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/9b5a8763-84ce-46d0-b011-067ad39223d1/
See the solutions by Chirag Shah. Follow only up to step 13. I could not follow Step 14 because I found no home dialog box.
In the steps Chirag talks about some URL's. I don't really understand the meaning of any of those URL's. So, I used the URL under "Report Manager URL" in "Reporting Services Configuration Manager". It was
http://localhost:8080/MyReportServer.
The 8080 is a port number.
Once you finished this, go to the link below and follow all the steps -
http://www.soheib.com/technical-knowledge/sql-server-2012-reporting-services-uac-user-access-control/
In the 7th step, I saw a lot of check boxes. I selected all of them.
Finally, I can rest in peace. Hope it works for you too.
Also, when making the accounts described in the above link, you might see "BUILTIN\Administrators" account. Ignore it - thats what i did.
**END OF POST**
Steps taken from Chirag Shah's post -
Configure the report server for local administration. To access the report server and Report Manager locally, follow these steps:
Start Windows Internet Explorer.
On the Tools menu, click Internet Options.
Click Security.
Click Trusted Sites.
Click Sites.
Under Add this Web site to the zone, type http://ServerName. If you are not using HTTPS for the default site, click to clear the Require server certification (https:) for all sites in this zone check box.
Click Add.
Repeat step 7f and step 7g to add the http localhost URL, and then click Close.
Note This step enables you to start Internet Explorer and open either the localhost or the network computer name of the server for both the Report Server application and the Report Manager application.
Create role assignments that explicitly grant you access together with full permissions. To do this, follow these steps:
Start Internet Explorer together with the Run as administrator option. To do this, click Start, click All Programs, right-click Internet Explorer, and then click Run as administrator.
Open Report Manager. By default, the Report Manager URL is http://ServerName/reports. If you use SQL Server Express with Advanced Services SP2, the Report Manager URL is http://ServerName/reports$sqlexpress. If you use a named instance of Reporting Services, the Report Manager URL is http://ServerName/reports$InstanceName
i was receiving blank page after i was logging exactly 3 times on my report server URL.
i've Turn Off Internet Explorer Enhanced Security. On different OS's it is in different location. find the location and turn it off.
I hope this will help you.
I created from scratch a cloud app located at:
http://jimszend.my.phpcloud.com/
I have zero files on my local drive, but I am trying to get them from the server using Zend Studio.
I have found this page to accomplish this but it does not work:
http://www.phpcloud.com/help/studio-remote-system
Step 1. I believe to be correct. But I have no way to know for sure.
Step 2. Open the PHP or Zend Framework project that you want to upload to your application container, or create a new project. <--- I want to create a new project on my hard drive.
So Step 2 somehow does not work, so instead I go to File -> New -> PHP Project from Zend Developer Cloud.
So I give the project a name: say ABC
The location is: C:\Users\Jim\Zend\workspaces\DefaultWorkspace
The container from a dropdown is: http://jimszend.my.phpcloud.com:10082 (Id: 4_0 )
Now I click refresh right below that and I get nothing so now I click on Add Target
and I enter a username and password. This dialog screen is the problem. I can't figure out what to enter here. meaning I have tried hundreds of different ways and I get stuck right here. I always end up clicking on Generate new key and then I click Test Connection and since there is no error, I assume this is correct.
Then I close that screen and now when I click on the drop down for Application nothing gets filled in. But sometimes this does work and I find my application which says, "jimszend zend framework" - something like this, but even if I get this far then I get some sort of Git failure when I click finish.
Does anyone know a full proof way to pull down "my files" using Zend Studio from PHP Cloud?
Thanks,
Jim
I suspect you may not have your public / private keys set or somewhere you are not supplying the correct credentials during the process. I did the following.
Follow this help document very closely. It's a really good doc from the phpcloud people.
http://www.phpcloud.com/help/putty-ssh-debug-tunnel
Using the phpcloud admin I created a new public / private key pair (Zend Studio kind, ending in .pem). Then I downloaded the .pem to a folder on my windows 7 machine.
Next download from the putty website these three applications to help you match your private / public key pair in putty and in Zend Studio. For me I wanted everything hooked up, both Putty and Zend Studio.
-PuttyGen
-Pageant
-Putty
Note putty uses a .ppk file type (not .pem), so Using PuttyGen I opened the .pem file and saved out the private key to the same location where I saved my .pem file from the php cloud. I kept the same file naming convention, to keep matters straight. So the only difference between the two files was .pem and .ppk.
Next I opened Pageant and used Pageant to open a store my .ppk file. I understand Pageant to be a key store which Putty will check, as it needs to open locked doors.
Next I followed the guidelines in the above phpcloud link, carefully, to establish a tunnel.
Once the tunnel was open, I launched Zend Studio.
From there I went to Windows->preferences and searched for SSH2. Once the SSJ2 dialog opened, under the general tab I added both my .pem and .ppk to the path. Then under the Key Management tab dialog I used "Load existing key" and loaded my .pem file. Then I clicked apply.
Then using Zend Studio I created a new "PHP Project from Remote Server". I went though the steps clicking "Manage remote servers". For the server connection I typed the follow.
JAZZFINGERS.MY.PHPCLOUD.COM
and if you are prompted for credentials, do not use the container credentials, unless they are the same as your other credentials.
From there you can also test your connection. For me this worked. Hope this helps. Oh yeah, also read this. Very important and helpful.
www.phpcloud.com/help/studio-remote-system
-Best Wishes
I am attempting to run an application in IIS8 that has the following in the config:
<modules runAllManagedModulesForAllRequests="true" />
IIS8 is giving me an error that says...
This configuration section cannot be used at this path. This happens
when the section is locked at a parent level. Locking is either by
default (overrideModeDefault="Deny"), or set explicitly by a location
tag with overrideMode="Deny" or the legacy allowOverride="false".
I'm guessing by the error and a quick SO search that there is some higher level security setting that's preventing that line from being allowed. Any ideas?
I've solved the same problem by installing the window features "Internet Information Service/World Wide Web Service/Application Development/ASP.NET x.x" in the Control Panel of Windows8. If you want to setting on Windows Server 2012, the following link gives you hint.
http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45
hope that it works out.
For those of you running Windows Server 2012 the Application Development features are found at
[] Server Roles
[] Web Server IIS
[] Web Server
[] Application Development
[] ASP.NET x.x
When you select the .NET version it will ask if you want to add Extensions and other features. I just said yes, but you may be able to get away without installing those.
its hard to give a specific answer here, but the basics of it are that you need to look at the machine.config for the box you're running on. find the system.webServer node and look for the 3 tags/attributes its referencing in the error. chances are you'll find something that is marked as not overridable (allowOverride="false"), but i've not messed with windows 8/server 2012 yet, so i don't know what the machine.config looks like.
You can unlock the section via the IIS UI per https://serverfault.com/a/516921/137255
Open IIS Manager
Click the server name in the tree on the left
Right hand pane, Management section, double click Configuration Editor
At the top, choose the relevant section based on the offending item's XPath; i.e. system.webServer/modules for this example.
Right hand pane, click Unlock Section
I am working on an ASP.NET MVC3 webapplication.
I have a button "Download" that downloads a file from the server.
<input type="button" onclick="window.location.href='#Url.Action("DownloadFile", "Home")';" value="Download"/>
In the HomeController I call the Action "DownloadFile" that returns the file
return File(fileToReturn, Path.GetFileName(fileToReturn));
This is working normally on all browsers.
however some people report that the download does not work on Internet Explorer 6.
I installed IE6 and tested the website on it and it was working normally.
So this is my question:
What may have cause the download to not work for certain IE6 but work on others?
First I thought it was a security option in IE. But then I tested on my IE6 for different security option, When I cannot download due to security reason I get a message Your current security settings does not allow this file to be downloaded But they are not getting this (the file just does not download without anything happening)
What may be causing this? I am unable to reproduce it in order to fix it.
Thanks a lot for any help
I had a similar problem once and managed to fix it by following these steps:
In Internet Explorer, click Tools, and then click Internet Options.
Click the Security tab.
There are four security zones listed: Internet, Local intranet, Trusted sites, Restricted sites. Click the zone your website is in (when you navigate to your site, the current zone is displayed in the status bar at the bottom of IE's window).
Under Security level for this zone, click Custom Level.
Under Downloads, under Automatic prompting for file downloads, click Enable, and then click OK two times.
You say you've checked that it isn't browser security settings, but it might be security settings on their network, not just the browser.
If their network firewall is configured to prevent certain types of files from being downloaded, then there may be nothing you can do to get around that, short of changing the file type you're sending. (or talking very nicely to their network operator).
Given the security risks involved in running IE6 these days, I imagine most companies still using IE6 would have pretty paranoid network security settings, so this is quite a likely explanation.