wcf - Index was outside the bounds of the array (please help) -



wcf - Index was outside the bounds of the array (please help) -

okey i've tried searhing week , can't work...

i've got error reads: "index outside bounds of array" i've done implement wcf, connection string sql database works fine, error when trying attemp populate info or trying reach info in database. i've done:

the appcofig:

<basichttpbinding> <binding name="basichttpbinding_icoreservice" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="strongwildcard" maxbuffersize="2147483647" maxbufferpoolsize="2147483647" maxreceivedmessagesize="2147483647" messageencoding="text" textencoding="utf-8" transfermode="buffered" usedefaultwebproxy="true"> <readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="16384" /> <security mode="none"> <transport clientcredentialtype="none" proxycredentialtype="none" realm="" /> <message clientcredentialtype="username" algorithmsuite="default" /> </security> </binding> <client> <endpoint address="http://localhost:4335/portalservice.svc" binding="basichttpbinding" bindingconfiguration="basichttpbinding_icoreservice" contract="wcfportalreference.icoreservice" name="basichttpbinding_icoreservice" /> <behaviors> <endpointbehaviors> <behavior name="portalbehaviour"> <datacontractserializer maxitemsinobjectgraph="2147483647" /> </behavior>

the webconfig:

<basichttpbinding> <binding name="basichttp" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647"> <readerquotas maxdepth="2147483646" maxarraylength="2147483646"/> </binding> <services> <service name="ttm.frx.wcfportal.portalservice" behaviorconfiguration="portalbehaviour"> <endpoint address="" bindingconfiguration="basichttp" binding="basichttpbinding" contract="ttm.frx.wcfportal.contract.icoreservice" /> <servicebehaviors> <behavior name="portalbehaviour"> <servicemetadata httpgetenabled="true" /> <servicedebug includeexceptiondetailinfaults="true" /> <datacontractserializer maxitemsinobjectgraph="2147483647" /> </behavior>

this error:

ttmsystem.wcfportalreference.coreserviceclient cli = new ttmsystem.wcfportalreference.coreserviceclient(); //pass custom credentials cli.clientcredentials.username.username = typeof(assemblyidentifierattribute).tostring().split(new char[] { '.' })[typeof(assemblyidentifierattribute).tostring().split(new char[] { '.' }).length - 1]; cli.clientcredentials.username.password = ((assemblyidentifierattribute)system.reflection.assembly.getexecutingassembly().getcustomattributes(typeof(assemblyidentifierattribute), false)[0]).identifier; homecoming cli;

it gives error when gets clientcredentials (steps on username, not password - username doesn't come through) can please help me this? first time working on , i've tried searching, can't find it... much in advance!!! need more info please say...

the error accessing element in array not exist.

your code has:

length -1

at end of 1 of lines.

if length 0 seek access element -1 of array, give error getting.

wcf binding connection portal

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -