?
Solved

XML and javascript

Posted on 2005-04-20
2
Medium Priority
?
195 Views
Last Modified: 2010-04-07
When I try to save a
file on my machine using the Javascript inside my .aspx file. Like
follows:

var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("testfile222.xml", true);

It gives me error on the first line saying that: "Microsoft JScript
runtime error: Automation server can't create object".

I guess it has to do something with creation of automation objects in
Javascript while the script is running on IIS server.
0
Comment
Question by:praneetha
2 Comments
 
LVL 23

Accepted Solution

by:
b1xml2 earned 2000 total points
ID: 13826593
nowadays, the security of MSIE is tighter that in most cases, the above code will no longer work unless you change the security settings.

The error is indicating that the COM object "Scripting.FileSystemObject" could not be instantiated. This might be a result of 2 things:

1. Security (Most Likely)
2. Absence of the COM dll (which I doubt).
0
 
LVL 15

Author Comment

by:praneetha
ID: 13837523
Thanks again :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month15 days, left to enroll

839 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