Download file is blocked using WatiN even after modifying registry settings - download

I'm doing an IE automation using WatiN.
When a file to be downloaded is clicked, I get the following in the Internet Explorer Information bar:
To help protect your security,
Internet Explorer has blocked this
site from downloading files to you
computer.
I added a registry key to,
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ZoneMap\Domains\
then a REG_DWORD value named "http" with value==2 as given in Programmatically add trusted sites to Internet Explorer
but still facing same issues. Can some1 advice on this....

In Internet Explorer, click Tools.
Click Internet Options.
Under the Security tab, click Custom Level.
Scroll to the Downloads section. Then set Automatic prompting for file downloads to Enable.

try setting your security 'zone' to trusted sites, adding the site you're downloading from to your trusted sites, and setting the security level to low. seems to work for me

Related

how to hide code tab in team foundation server 2013

Is there anyway to hide TFS code tab in web interface, I already deny access to source control, and it is working from inside VS, but not from the TFS web interface, the users still able to download the source code as zip file.
Code tab
You can make them "Stakeholders" which removes their access to code entirely. Or you can remove the "Read" permission for those users. You can adjust security by right clicking on a folder and choosing "Security".

Only menus shown on MODX Manager

After I changed a setting in the ckeditor plugin, the content of the whole manager doesn't load. Only the menus (top and left) are shown. I've already cleared the cache by deleting the content of the core/cache folder, and the cache from my browser.
Remove the core/components/ckeditor folder and clear cache again. Login in the manager, go to packages Manager and remove the ckeditor and reinstall. This is also a way to remove manually packages in modx.
In such a case, also check if you have enabled the compress_js and compress_css options in the system setting (check them with a database administration tool like phpmyadmin) and set them to false if so.
You can verify that this is your problem by opening the development tools of your browser (f12 for chrome and internet explorer and richght click and push q on the keyboard) and look for any loading errors of js or css files.
Hope that helps :)77

ClickOnce Applications Won't Install on Windows 7, Application Cannot Be Started, Contact the Application Vendor

I am trying to install Github for Windows which is a ClickOnce application, however I am unable to start any ClickOnce application. I receive a pop up error saying "Application cannot be started, contact the application vendor".
I have seen that other users with this error have solved it by deleting the '2.0' folder in there 'users/USERNAME/AppData/Local/Apps/2.0' location. However, I do not have an 'Apps' folder in my 'AppData/Local' location and therefore unable to delete anything from it. I have tried creating an 'Apps' folder there and then trying to install the application but I receive the same error. When I run the following: '%UserProfile%\AppData\Local\Apps\2.0' it says that it refers to a location that is unavailable.
I have contacted Github support and they told me the same thing about deleting the '2.0' folder but alas I do not have the 'AppData/Local/Apps' location. They also told me to clear the cache by running this: rundll32 %SystemRoot%\system32\dfshim.dll CleanOnlineAppCache but that did not solve the problem either.
I do not have any anti-virus or firewall turned on either. I have also tried installing a different ClickOnce application and I received the same error. Is there some other folder I need to delete or some setting I need to change to get ClickOnce applications to start?
By Changing to Net Framework 4.0 got me working, changing and delete 2.0 made no difference but deleted the other apps.
The other apps were reinstalled automatically so no biggy, will try install latest 4.51 later.
I know this is a really old question. You should have a Apps folder at '%UserProfile%\AppData\Local\Apps\2.0'. You are probably unable to see the folder because you haven't enabled viewing of hidden folders in windows explorer. To resole this, launch windows explorer "windows key + e", hold down Alt and hit T (tools menu) then click folder options, click the "view" tab and then select:
"show hidden files, folders, and drives"
Uncheck:
"Hide empty drives in the Computer folder"
"Hide extensions for known file types"
"Hide protected operating system files (recommended)"
Note, not all of these are required to see the hidden folder "apps", this is how I always configure my setup though.
After this you should be able to see the folder at :
'%UserProfile%\AppData\Local\Apps\2.0'
Deleting the 2.0 folder usually works but you are also deleting any other click once applications that have been installed.

Local website starts in directory

I'm setting up a website with VS express for web and IIS 7.5 express and have gotten it to work, but the start page of the site on my local points to a directory instead of the home.aspx page. I've set the home.aspx page as the start page in vs, but still no luck. I've clearly forgot to set something up since I updated to vs 12.
I've enabled directory browsing in IIS because it was throwing an error to enable it before. Any suggestions?
in inetmgr.msc (IIS control panel), select your site, and then select "Default document" from the features pane. add a new entry with 'home.aspx' and click the up arrow until it is the top entry in the list.
or you can add a tag to your web.config
http://www.iis.net/configreference/system.webserver/defaultdocument

On publishing a click once installer through install from web, the installer does not appear on the webpage

I am creating a clickonce installer using the deployment strategy of Install from the Web or network share, on one of my project. I am learning how to use click once installers. When i publish my project it gets succeeded. i gave the URL of my website that i had created through google so that anyone can install from that URL. After publish gets succeeded the URL should be launched automatically but it is not. Moreover. When i check my website and in it that page whose URL i had given, there is nothing there. No installer. Please help.
Right Click on Publishing Project
Click Properties
Click "Publish"
In "Publishing Folder Location" is anything set there?
Click the button with ellipsis (...) to the right of the combobox
Click "FTP Site" (not Remote site, as this needs FrontPage extensions)
Enter the Server information, Directory (that you have access to), keep it as passive mode, uncheck the Anonymous option and put in the valid FTP instructions.
Click Open, and Republish. All should work 100% with this.
If not, have a look in your wwwroot/ folder and find the application information (if it's there) and you will have to manually upload the files.
EDIT for comment:
The website that you are uploading to, does it have FTP access? Meaning a place that you would upload file to for display on the website, even like your html content? (index.html etc.)
If not, you will need to get these details from your website hosting provider and fill in the appropriate fields for the FTP upload.
It's a while since I did this, but I'm fairly sure that you have to upload the files manually.
The installer needs the location so it can build the web page etc. All the files should be in an output folder in your project.
EDIT: I've just checked and the output folder is the one you specify on the first step of the Publish Wizard. If you specify a local folder the files will be put there for you to FTP to your website later. You can also specify a remote address as and FTP or HTTP location (which I'd forgotten when I posted my original answer). You'll have to enter the user name and password for connecting to the remote location later in the process.
Are you using Visual Studio 2008? The default behaviour of deploying a "publish.htm" page has changed.
Bring up your project's properties and switch to the "Publish" tab. Click the "Options" button and switch to the "Deployment" section of the dialog. You'll see by default that the "Deployment web page" TextBox is empty. You'll need to give that a value and also check the "Automatically generate deployment web page after every publish" CheckBox.
I've taken to filling that in with "default.htm" so that whichever folder you deploy your app into will have the ClickOnce publish page as its default page.

Resources