问题描述
Typet=GetType();Assemblya=t.Assembly;resourceStream=a.GetManifestResourceStream(t.Namespace+xsltName);if(resourceStream!=null){resourceReader=newStreamReader(resourceStream,Encoding.UTF8);resourceStream.Position=0;xmlReader=XmlReader.Create(resourceStream);XmlResolverxResolver=newXmlUrlResolver();XslCompiledTransformobjXSLT=newXslCompiledTransform();objXSLT.Load(xmlReader,XsltSettings.TrustedXslt,xResolver);message.Save(messageStream);messageStream.Position=0;XmlReadermessageReader=XmlReader.Create(messageStream);XsltArgumentListxArgumentList=newXsltArgumentList();xArgumentList.AddParam("base-dir-for-images","",converterSettings["base-dir-for-images"].ToString());xArgumentList.AddParam("website-root-dir-for-images","",converterSettings["website-root-dir-for-images"].ToString());xArgumentList.AddParam("image-file-predefine","",templateNameAndVer);htmlStream.Flush();objXSLT.Transform(messageReader,xArgumentList,htmlStream);}-----------------------------------上面是代码,当执行到“objXSLT.Transform(messageReader,xArgumentList,htmlStream);”时抛出异常,“thedeviceisnotready”这是怎么回事啊?前两天还运行正常,结果今天来了就报错,并且这段代码在别人电脑上运行正常,莫非我RP有问题?高手过来帮忙看看!小弟感激
解决方案
解决方案二:
markup顶起
解决方案三:
代码本身应该没有什么问题,检查一下自己的机器,十有八九是你的机器中毒了
解决方案四:
顶下
解决方案五:
UP
解决方案六:
UP