c# - WSE032 error, WebServicesConfiguration cannot load config. section -


i have developed small tool upload salary information swiss administration , used wse 3.0 success. now, 1 of customers has reported on machine, program crashes following stack trace:

wse032: there error loading microsoft.web.services3 configuration section.   @ microsoft.web.services3.configuration.webservicesconfiguration.get_current()   @ microsoft.web.services3.configuration.webservicesconfiguration.get_messagingconfiguration()   @ microsoft.web.services3.webservicesclientprotocol..ctor()   ... 

i've tried figure out means, must admit bit lost here. program has .exe.config file following contents:

<?xml version="1.0"?> <configuration>   <configsections>     <section name="microsoft.web.services3" type="microsoft.web.services3.configuration.webservicesconfiguration, microsoft.web.services3, version=3.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>     ...   </configsections>   <startup>     <supportedruntime version="v2.0.50727"/>   </startup>   <microsoft.web.services3>     <security>       <x509 allowtestroot="false" storelocation="currentuser" skimode="rfc3280"/>     </security>   </microsoft.web.services3> ... </configuration> 

removing <security> node xml above sort of fixes issue (the wse032 error vanishes) not solution in case, need configure security way in order able sign data transmitting later on.

any idea issue. obviously, wse 3.0 has been installed on customer's machine, since otherwise, stack trace not have shown in callers before wse032 error happens.

it appears customer executing program drive letter mounted on share; though thought .net 3.5 sp1 allowed full trust privilege exes launched localintranet_zone, seems issue loading of wse configuration section of executable.

to fix this, ran caspol can found here:

c:\windows\microsoft.net\framework\v2.0.50727\caspol.exe 

the command line along lines of:

caspol -m -ag localintranet_zone -url n:\* fulltrust -n "name" -d "description" 

for share mounted on drive letter n:; note name , description purely informational.

this command gives executables found on drive n: fulltrust privilege, if started local resource (hard disk drive, instance).

see how to: grant permissions on folders , assemblies on msdn.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -