471,310 Members | 990 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Remote Objects hosted in IIS problem..

I keyed in the example for MS Knowledgebase Article:

Remoting Example: Hosting in Internet Information Services (IIS)

It works for the most part, however I run across 1 glitch I caught in a
try / catch block:

// Code Section on ServerClass.cs:

// Use the HttpContext to acquire what IIS thinks the client's identity
string temp = HttpContext.Current.User.Identity.Name;

// Error that surfaces when method is called:

System.NullReferenceException: Object reference not set to an instance
of an object.

It's basically throwing on the "HttpContext..." portion. This is all
on my LocalHost box. I haven't bumped it up to a Remote Server yet.

Any ideas why this exception is thrown, and how I might be able to fix

Feb 3 '06 #1
0 919

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by anuke | last post: by
3 posts views Thread by Jay | last post: by
3 posts views Thread by Yves Gagnon | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.