因?yàn)闃I(yè)務(wù)需要,我需要使用Mono平臺(tái)來運(yùn)行asp.net程序,但是移植過去后,程序中其他功能正常,可是使用HttpWebRequest來做http請(qǐng)求報(bào)錯(cuò),錯(cuò)誤信息如下:System.NotImplementedException: The requested feature is not implemented. at System.Net.HttpWebRequest.set_DefaultCachePolicy (System.Net.Cache.RequestCachePolicy value) [0x00000] in :0 at Maticsoft.Common.WebClient.CreateRequest (System.String url, System.String method) [0x00000] in :0 at Maticsoft.Common.WebClient.Post (System.String url, System.Byte[] postData) [0x00000] in :0 at Maticsoft.Common.WebClient.Post (System.String url, System.String postData) [0x00000] in :0 at PX.BLL.T_CourseInfoBLL.GetModelListByCache (Boolean flag, System.String username, Int32 year, Int32 month) [0x00000] in :0 不知道到底什么原因,求解!
1 回答

慕哥6287543
TA貢獻(xiàn)1831條經(jīng)驗(yàn) 獲得超10個(gè)贊
使用了MoMA驗(yàn)證dll發(fā)現(xiàn)dll里那個(gè)http請(qǐng)求的寫法在mono下不兼容,換了另一種http請(qǐng)求的寫法就ok了,moma這個(gè)工具還真是強(qiáng)大。
- 1 回答
- 0 關(guān)注
- 665 瀏覽
添加回答
舉報(bào)
0/150
提交
取消