Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
Generalusing a switch for a range of numbers Pin
fou9900412-Feb-04 5:45
fou9900412-Feb-04 5:45 
GeneralRe: using a switch for a range of numbers Pin
leppie12-Feb-04 6:09
leppie12-Feb-04 6:09 
GeneralRe: using a switch for a range of numbers Pin
leppie12-Feb-04 8:56
leppie12-Feb-04 8:56 
GeneralRe: using a switch for a range of numbers Pin
LobsterDK14-Feb-04 8:46
LobsterDK14-Feb-04 8:46 
GeneralData Access Suggestions Pin
Jason Pyke12-Feb-04 4:52
Jason Pyke12-Feb-04 4:52 
GeneralRe: Data Access Suggestions Pin
Mazdak12-Feb-04 6:03
Mazdak12-Feb-04 6:03 
GeneralRe: Data Access Suggestions Pin
Jason Pyke12-Feb-04 6:16
Jason Pyke12-Feb-04 6:16 
GeneralRe: Data Access Suggestions Pin
Heath Stewart12-Feb-04 6:29
protectorHeath Stewart12-Feb-04 6:29 
Unlike Mazdak, I think you'd be well-off if you went with .NET technologies. They're here to stay and are very easy to change and code (decreased development times when you have people that understand .NET already, otherwise factor in your learning curve).

As far as your design, think carefully about what you want to expose as Web Services and what you want to expose as .NET Remoting objects. Web Services provide data, where .NET Remoting provides objects. Web Services are especially handy when providing access for unknown clients (like someone using Java, .NET, or any other SOAP clients). .NET Remoting - though it can use SOAP - is a complex structure that deals with instances of objects rather than just data (even though Web Services can serialize objects into SOAP and vice versa, they don't represent instances of objects - merely copies).

As far as using a client, ASP.NET and Windows Forms are both viable technologies. It's not uncommon for ASP.NET to make use of the same Web Services that external client would, even though they might have direct access to the same data. In cases where scalability is a concern, though, you might consider abstracting that data access layer so that the ASP.NET application and the Web Service (even if hosted in the ASP.NET application) use that to access the data. If you access the Web Services from ASP.NET, you take a performance hit for the serialization and setting up the proxies.

There are plenty of examples about using COM+ (already includes transactions, which negates the need for MTS unless you're talking about something else) from Remoting, and even some topics are included in the .NET Framework SDK, which you should read through (at least the topics and familiarize yourself with what's available in the base class library). MSDN[^] also includes a lot of examples and articles on this. I believe the CodeProject even has a few as well.

This is fairly common in .NET Remoting objects, because it exposes these proprietary technologies (COM+, MSMQ, etc.) to SOAP-compatible clients.

When designed properly, this should be very scalable, especially when using ASP.NET over traditional approaches like ASP or PHP. ASP.NET uses compiled objects; even the .ASPX pages are compiled when used for the first time, and using code-behind source files that must be compiled before publishing speeds things up - including debugging - considerably.

If you use .NET Remoting and Web Services, you can also create smart client applications that can be installed or launch from a URL. We currently have an application that does the latter and uses .NET Remoting. This leads me to warn you though that exposing .NET Remoting objects using IIS as the host automatically exposes them as Web Services - thereby requiring the HttpChannel be used, though you can still use either the binary or SOAP formatter.

I hope this helps.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Data Access Suggestions Pin
Jason Pyke12-Feb-04 8:09
Jason Pyke12-Feb-04 8:09 
GeneralRe: Data Access Suggestions Pin
Heath Stewart12-Feb-04 8:47
protectorHeath Stewart12-Feb-04 8:47 
GeneralRe: Data Access Suggestions Pin
Mazdak12-Feb-04 9:42
Mazdak12-Feb-04 9:42 
GeneralRe: Data Access Suggestions Pin
Heath Stewart12-Feb-04 10:58
protectorHeath Stewart12-Feb-04 10:58 
GeneralRe: Data Access Suggestions Pin
Mazdak12-Feb-04 20:08
Mazdak12-Feb-04 20:08 
GeneralOutlook Automation - MSG format Pin
Braulio Dez12-Feb-04 4:36
Braulio Dez12-Feb-04 4:36 
GeneralRe: Outlook Automation - MSG format Pin
Heath Stewart12-Feb-04 6:10
protectorHeath Stewart12-Feb-04 6:10 
QuestionWhat is SMTP server? Pin
shdelpiero12-Feb-04 4:30
shdelpiero12-Feb-04 4:30 
AnswerRe: What is SMTP server? Pin
Heath Stewart12-Feb-04 5:02
protectorHeath Stewart12-Feb-04 5:02 
AnswerRe: What is SMTP server? Pin
Kentamanos12-Feb-04 8:57
Kentamanos12-Feb-04 8:57 
GeneralSelecting a specificTabPage... Pin
profoundwhispers12-Feb-04 4:30
profoundwhispers12-Feb-04 4:30 
GeneralRe: Selecting a specificTabPage... Pin
Heath Stewart12-Feb-04 4:52
protectorHeath Stewart12-Feb-04 4:52 
GeneralNull Pointer COM error - StrRetToStr Pin
Tristan Rhodes12-Feb-04 4:16
Tristan Rhodes12-Feb-04 4:16 
GeneralRe: Null Pointer COM error - StrRetToStr Pin
Nick Parker12-Feb-04 6:19
protectorNick Parker12-Feb-04 6:19 
GeneralHTML EMail with embedded images Pin
Braulio Dez12-Feb-04 4:14
Braulio Dez12-Feb-04 4:14 
GeneralRe: HTML EMail with embedded images Pin
Heath Stewart12-Feb-04 4:48
protectorHeath Stewart12-Feb-04 4:48 
GeneralRe: HTML EMail with embedded images Pin
Mazdak12-Feb-04 5:56
Mazdak12-Feb-04 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.