Microsoft jscript运行时错误:自动化服务器无法创建对象 [英] Microsoft jscript runtime error: Automation server can't create object

查看:74
本文介绍了Microsoft jscript运行时错误:自动化服务器无法创建对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,







我在vista home premium上使用VS.net 2010。当我在javascript中创建activex对象时,它显示错误microsoft jscript运行时错误:自动化服务器无法创建对象。我正在给代码片段。请仔细阅读并告诉我解决方案。





< script>



var fso = new ActiveXObject('Scripting.SystemObject');



var fileobject = fso.OpenTextFile(Filename,1,true,0);



var line,i = 0;



while((line = fileobject.ReadLine())!= null)



{



i ++;



}





< / script>

谢谢和问候

Sivarjun





I am using VS.net 2010 on vista home premium. when i tred to create activex object in javascript it is showing the error "microsoft jscript runtime error: Automation server can't create object". I am giving the code snippet. Please go through and suggest me the solutions.


<script>

var fso = new ActiveXObject ('Scripting.SystemObject');

var fileobject = fso.OpenTextFile(Filename,1,true,0);

var line,i=0;

while((line=fileobject.ReadLine()) != null)

{

i++;

}


</script>
thanks&regards
Sivarjun

推荐答案

嗨西瓦,

尝试这可能会有所帮助

Link 1 [ ^ ]





如果您面临任何问题,请发布这里



谢谢

Ganesh
Hi Siva,
try this might helps
Link 1[^]


if u r facing any problmes, then post here

Thanks
Ganesh


这篇关于Microsoft jscript运行时错误:自动化服务器无法创建对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆