c# - HttpNamespace Registration fails with no exception -


the following code works in development computer , able see service registered using netsh show urlacl.

processstartinfo netshpsi = new processstartinfo();                     // windows xp sp3, vista sp2, 7 sp1 or 8                                         netshpsi.filename = "netsh.exe";                     netshpsi.arguments = "http add urlacl url=http://+:8731/service1 user=everyone";                     netshpsi.createnowindow = true;                     process.start(netshpsi); 

however in target computer executes without raising exception , not register. missing here?

should wait process complete?

both computers logged in administrators , code executed elevated rights.

the problem target computer german , "jeder". had dynamically find name before using below code:

var sid = new securityidentifier(wellknownsidtype.worldsid, null); var account = (ntaccount) sid.translate(typeof(ntaccount));  string everyonename = account.tostring(); 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -