Solved

Javascript not working NOW in Windows Server 2008 / IIS 7.0

Posted on 2009-05-18
2
1,759 Views
Last Modified: 2012-05-07
I have an web application hosted under Windows Server 2008/IIS 7.0, few days back javascript used to work on a webpage control but now it has stopped working. Javascript still works if I run the same application and in the same environment (server 2008/IIS 7.0), when running the application in debug mode. But as soon as I publish the site, it doesn't work. I tried to put a break point (debugger;), but it doesn't come over there. Any idea why the javascript works when running the application in Visual Studio 2008 debug mode and DOES NOT run when the same code is published. I have attached code also.

Thanks,
Ammar
0
Comment
Question by:ammarg110
2 Comments
 
LVL 37

Accepted Solution

by:
meverest earned 50 total points
ID: 24421680
Hi,

javasript is a client side code - if it doesn't work, then there is something preventing the client to access the script.  How is the javascript implemented? probably something like:

<javacript src="path/script.js"/>

in which case make sure that 'path' exists on the server, and that 'script.js' exists in that path.

Cheers!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now