Home Articles My Account Messages Tools Join
Tech Blog, ASP.Net, VB.Net, C#.Net, Programming Help, Help Guide
StellarPC.com | Fixing "Access to file '..\Silverlight\1033\SilverlightProject.zip\TestPage.html.js' is denied" error (Silverlight)
Fixing "Access to file '..\Silverlight\1033\SilverlightProject.zip\TestPage.html.js' is denied" error (Silverlight)
Written by: Justin Rich

Fixing "Access to file '..\Silverlight\1033\SilverlightProject.zip\TestPage.html.js' is denied" error

Fixing "Access to file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplatesCache\VisualBasic\Silverlight\1033\SilverlightProject.zip\TestPage.html.js' is denied" error when starting a Silverlight Project in Visual Studio 2008.

This error is caused because your anti-virus software is blocking the dual extension because it is seeing this as a threat. Because javascript files can be potentially hazardous, your anti-virus program thinks that this was an intended coverup to make you think that it's an HTML file, but it really houses a .js extension. To the naked eye, with showing known file types off, you would just see the TestPage.html and not the .js because .js is a known filetype to your internet browser as well as your programming interfaces.

To fix the error and begin programming with Silverlight, simply rename the file to TestPage.js. Once this is done, open the actual TestPage.html and change the reference to the .html.js file to what you renamed it to. Then, open the project file & the template file with notepad and do the same thing. Just use the search function to find 'html.js' and you'll find the references to it. Once you've replaced all the references and properly renamed the file, this error will go away and you don't even have to disable your anti-virus program.

If you're using AVG Free, this is the ONLY solution as the program still runs in the background even after shutting it down. You won't even be able to open the .html.js file until you rename it because AVG will lock it down. Even repairing the installment will not fix it because AVG (and probably other anti-virus programs) will remember the file and not release it even after it's been completely regnereated.
New Post Next 50 | Previous 50
Post# Subject: Posted By: Time:
1 If you can't get this bug fix working for you, feel fre Justin Rich 3/9/2008 6:15:00 PM
New Post Next 50| Previous 50