abc
abd
abe
abf
abg
abh
abi
abj
abk
abl
abm
abn
abo
abp
abq
abr
abs
abt
abu
abv
abw
abx
aby
abz
acb
acd
ace
acf
acg
ach
aci
acj
ack
acl
acm
acn
aco
acp
acq
acr
acs
act
acu
acv
acw
acx
acy
acz
adb
adc
ade
adf
adg
adh
adi
adj
adk
adl
adm
adn
ado
adp
adq
adr
ads
adt
adu
adv
adw
adx
ady
adz
aeb
aec
aed
aef
aeg
aeh
aei
aej
aek
ael
aem
aen
aeo
aep
aeq
aer
aes
aet
aeu
aev
aew
aex
aey
aez
afb
afc
afd
afe
afg
afh
afi
afj
afk
afl
afm
afn
afo
afp
afq
afr
afs
aft
afu
afv
afw
afx
afy
afz
agb
agc
agd
age
agf
agh
agi
agj
agk
agl
agm
agn
ago
agp
agq
agr
ags
agt
agu
agv
agw
agx
agy
agz
ahb
ahc
ahd
ahe
ahf
ahg
ahi
ahj
ahk
ahl
ahm
ahn
aho
ahp
ahq
ahr
ahs
aht
ahu
ahv
ahw
ahx
ahy
ahz
aib
aic
aid
aie
aif
aig
aih
aij
aik
ail
aim
ain
aio
aip
aiq
air
ais
ait
aiu
aiv
aiw
aix
aiy
aiz
ajb
ajc
ajd
aje
ajf
ajg
ajh
aji
ajk
ajl
ajm
ajn
ajo
ajp
ajq
ajr
ajs
ajt
aju
ajv
ajw
ajx
ajy
ajz
akb
akc
akd
ake
akf
akg
akh
aki
akj
akl
akm
akn
ako
akp
akq
akr
aks
akt
aku
akv
akw
akx
aky
akz
alb
alc
ald
ale
alf
alg
alh
ali
alj
alk
alm
aln
alo
alp
alq
alr
als
alt
alu
alv
alw
alx
aly
alz
amb
amc
amd
ame
amf
amg
amh
ami
amj
amk
aml
amn
amo
amp
amq
amr
ams
amt
amu
amv
amw
amx
amy
amz
anb
anc
and
ane
anf
ang
anh
ani
anj
ank
anl
anm
ano
anp
anq
anr
ans
ant
anu
anv
anw
anx
any
anz
aob
aoc
aod
aoe
aof
aog
aoh
aoi
aoj
aok
aol
aom
aon
aop
aoq
aor
aos
aot
aou
aov
aow
aox
aoy
aoz
apb
apc
apd
ape
apf
apg
aph
api
apj
apk
apl
apm
apn
apo
apq
apr
aps
apt
apu
apv
apw
apx
apy
apz
aqb
aqc
aqd
aqe
aqf
aqg
aqh
aqi
aqj
aqk
aql
aqm
aqn
aqo
aqp
aqr
aqs
aqt
aqu
aqv
aqw
aqx
aqy
aqz
arb
arc
ard
are
arf
arg
arh
ari
arj
ark
arl
arm
arn
aro
arp
arq
ars
art
aru
arv
arw
arx
ary
arz
asb
asc
asd
ase
asf
asg
ash
asi
asj
ask
asl
asm
asn
aso
asp
asq
asr
ast
asu
asv
asw
asx
asy
asz
atb
atc
atd
ate
atf
atg
ath
ati
atj
atk
atl
atm
atn
ato
atp
atq
atr
ats
atu
atv
atw
atx
aty
atz
aub
auc
aud
aue
auf
aug
auh
aui
auj
auk
aul
aum
aun
auo
aup
auq
aur
aus
aut
auv
auw
aux
auy
auz
avb
avc
avd
ave
avf
avg
avh
avi
avj
avk
avl
avm
avn
avo
avp
avq
avr
avs
avt
avu
avw
avx
avy
avz
awb
awc
awd
awe
awf
awg
awh
awi
awj
awk
awl
awm
awn
awo
awp
awq
awr
aws
awt
awu
awv
awx
awy
awz
axb
axc
axd
axe
axf
axg
axh
axi
axj
axk
axl
axm
axn
axo
axp
axq
axr
axs
axt
axu
axv
axw
axy
axz
ayb
ayc
ayd
aye
ayf
ayg
ayh
ayi
ayj
ayk
ayl
aym
ayn
ayo
ayp
ayq
ayr
ays
ayt
ayu
ayv
ayw
ayx
ayz
azb
azc
azd
aze
azf
azg
azh
azi
azj
azk
azl
azm
azn
azo
azp
azq
azr
azs
azt
azu
azv
azw
azx
azy
……
Siverlight访问WCF The remote server returned an unexpected response: (404) Not Found 解决办法写完上一个试验项目,基本上技术上没有什么大的难点了,我马上开始写我计划了好几天的项目。
不过,刚一开始,就遇到点小麻烦:Silverlight程序访问WCF服务时,调试错误信息如下:
用户代码未处理 System.ServiceModel.ProtocolException
Message="The remote server returned an unexpected response: (404) Not Found."
StackTrace:
位于 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
位于 TISCS.Bamhut.Paper.BamhutService.BamhutServiceClient.BamhutServiceClientChannel.EndUserLogin(IAsyncResult result)
位于 TISCS.Bamhut.Paper.BamhutService.BamhutServiceClient.TISCS.Bamhut.Paper.BamhutService.IBamhutService.EndUserLogin(IAsyncResult result)
位于 TISCS.Bamhut.Paper.BamhutService.BamhutServiceClient.OnEndUserLogin(IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
InnerException:
郁闷!到网上找了找资料,参考了一下这两个帖子:
一:http://forums.iis.net/t/1149643.aspx 二:http://www.cnblogs.com/invinboy/archive/2008/06/29/1232037.html
大概的意思是添加一个clientaccesspolicy.xml文件(点击下载此文件),文件内容如下:
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
至于这个文件的存放位置,帖子二做了较详细的说明,但我个人认为还不够详细,其实,这个文件,是要放在IIS站点的根目录下的,不是WCF所在目录,也不是Web项目根目录,更不是Silverlight所在的目录,一定要在localhost所在的物理目录!
在管理Git项目上,很多时候都是直接使用https url克隆到本地,当然也有有些人使用SSH url克隆到本地。这两种方式的主要区别在于:使用https url克隆对初学者来说会比较方便,复制https url然后到git Bash里面直接用clone命令克隆到本地就好了,但是每次fetch和push代码都需要输入账号和密码,这也是https方式的麻烦之处。而使用SSH url克隆却需要在克隆之前先配置和添加好SSH key,因此,如果你想要使用SSH url克隆的话,你必须是这个项目的拥有者。否则你是无法添加SSH key的,另外ssh默认是每次fetch和push代码都不需要输入账号和密码,如果你想要每次都输入账号密码才能进行fetch和push也可以另外进行设置。欢迎分享,转载请注明来源:夏雨云
评论列表(0条)