Friday, September 10, 2004

70-320 and .net Remoting

over the last 2 weeks i have been studying for 320 and hell... its bloody extensive... i was told be prepared to think hard for the exams... i am having to think hard well before the exams....

though its been fun most of the times... Amit's Kalani's book gets a very good feedback from me.... Remoting is so much fun... though it sort of reminds me COM programming not even close to it in complexity... we used to have ClassFactory out there... there was even a ClassFactory2... though i only used it to the extent of object creation and returning the object. In remoting we can use it to expose Remotable object as a client activated object by using Class Factory as a bait and making the host think its the Class Factory (usually set as Server Activated) we are after...

Tried all sort of stuff.. the best part about remoting is that its not complex... and you can set most of the stuff in config file. Had a look at IIS hosted Remoting and just a piece of advice. If you are connecting to SQL Server (with Remotable object) and are using Trusted Connection..
a. Disable Anonymous Access (Keeping it in Windows Authentication mode)
b. set impersonate identity = true in the applications (web application's) web.config

if you want to debug a IIS... start the client and attach to the aspnet worker process...

went nuts trying to figure out what was wrong... then found out it was authentication failure on sql server for NT Authority/Network Service

oh well...

No comments: