[.NET] 搬Server:server2003->server2008 ajax錯

看板Visual_Basic作者 (clover)時間14年前 (2011/10/26 15:54), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
.net版本 是vs2008 原本在server2003上很正常(有Domain的網站) 要換到server2008,先建一個localhost的網站(在server2008主機上) 也正常(不管是本機run或是別台主機連線都ok, 別台主機打server2008的ip來連線 ex:server2008的ip是200.200.200.201, 網站資料夾位置C:\prj\prj_test(iis設名稱是prj_test) 別台要連線就打http://200.200.200.201/prj_test/ 以上沒有錯誤。 但是當正式放到domain時 ex:http://abc.test123.com.tw 就會出現跟ajax相關的錯誤出來。很奇怪放上去才會出現錯誤!!? 錯誤訊息就類似下面的test010沒有宣告這種的。 aspx端寫javascript <script type="text/javascript"> ..... var chk = test010.chk(....) vb端寫: load時有宣告 Partial Class test010 ... .. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Ajax.Utility.RegisterTypeForAjax(GetType(test010)) --->宣告在此 ... .. <Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)> _ Public Function chk(.....) .... ... End Function ------------- 請問有人網站架在server2008上的有沒有類似這種ajax相關問題的&有解嗎? 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.32.178.183
文章代碼(AID): #1EfxoU_0 (Visual_Basic)