文章詳情頁
XML解析錯誤:未組織好 的解決辦法
瀏覽:1117日期:2022-06-04 11:38:27
主要問題:XML文件完整,在liunx系統(tǒng)下可正常顯示,但是windows系統(tǒng)提示出錯,
I use iis to develope a new .net website. I promise the code is right, but most pages running in Firefox 2.0 reported this error:
復(fù)制代碼 代碼如下:
XML解析錯誤:未組織好
位置:http://localhost/Lanxum/dTeam.aspx
行:1,列:2
< %@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="dTeam, App_Web_hkuu-y0n" title="Untitled Page" theme="iAffron" stylesheettheme="iAffron" %> -^
And in IE, error reported as below:
復(fù)制代碼 代碼如下:
無法顯示 XML 頁。字符開頭。
處理資源 ‘http://localhost/Lanxum/default.aspx" 時出錯。
第 1 行,位置: 2
The reason is that I install visual studio first(together with .net framework 2.0) and then install IIS. It made .net FK didn"t register in IIS. Just run this command with DOS:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
Once if you have install .net FK and IIS correctly, this sentence will follow:
開始安裝 ASP.NET 。
…………………………………..
ASP.NET 安裝完畢
Then refresh the page, you will find that the problem is fixed.
I use iis to develope a new .net website. I promise the code is right, but most pages running in Firefox 2.0 reported this error:
復(fù)制代碼 代碼如下:
XML解析錯誤:未組織好
位置:http://localhost/Lanxum/dTeam.aspx
行:1,列:2
< %@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="dTeam, App_Web_hkuu-y0n" title="Untitled Page" theme="iAffron" stylesheettheme="iAffron" %> -^
And in IE, error reported as below:
復(fù)制代碼 代碼如下:
無法顯示 XML 頁。字符開頭。
處理資源 ‘http://localhost/Lanxum/default.aspx" 時出錯。
第 1 行,位置: 2
The reason is that I install visual studio first(together with .net framework 2.0) and then install IIS. It made .net FK didn"t register in IIS. Just run this command with DOS:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
Once if you have install .net FK and IIS correctly, this sentence will follow:
開始安裝 ASP.NET 。
…………………………………..
ASP.NET 安裝完畢
Then refresh the page, you will find that the problem is fixed.
標(biāo)簽:
XML/RSS
相關(guān)文章:
1. 不使用XMLHttpRequest對象實現(xiàn)Ajax效果的方法小結(jié)2. 用xslt將xml解析成xhtml的代碼3. asp下利用xml打包網(wǎng)站文件4. 氣象 XML 數(shù)據(jù)源應(yīng)用程序開發(fā)指南-操作檢查列表5. 怎樣打開XML文件?xml文件如何打開?6. python生成xml時規(guī)定dtd實例方法7. Android Studio實現(xiàn)格式化XML代碼順序8. 一個用xslt樣式將xml解析為xhtml的類TransformBinder(兼容FF和IE7.0)9. 前端Website sitemap.xml文件搜索引擎優(yōu)化10. 不同瀏覽器對XML的解析是不同的
排行榜
