Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C#, COM, ASP and .NET... LOST

C#, COM, ASP and .NET... LOST

Scheduled Pinned Locked Moved C#
csharpquestionjavawcfcom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dato
    wrote on last edited by
    #1

    Just checking but... Previously I would write COM components in VB, insert them into MTS and call those components from ASP. The purpose was to avoid putting lots of code into ASP pages not to mention other benefits. My question is that if I wanted to do the same in .NET with C#, MTS, by compiling my C# into a dll and inserting it into MTS much the same way ( maybe putting a SOAP interface into my C#) Does this architecture still apply in .NET ? Am i on the right track ? I shouldn't have a problem with C# as I do know Java. I'm just trying to figure out if I'm on the right track or not at this point .. I must say at this point I'm a bit overwhelmed by all that .NET has to offer. Can anyone recommend a book for exactly these types of applications ??? Thanks in advance.. Dato. :-D

    J 1 Reply Last reply
    0
    • D Dato

      Just checking but... Previously I would write COM components in VB, insert them into MTS and call those components from ASP. The purpose was to avoid putting lots of code into ASP pages not to mention other benefits. My question is that if I wanted to do the same in .NET with C#, MTS, by compiling my C# into a dll and inserting it into MTS much the same way ( maybe putting a SOAP interface into my C#) Does this architecture still apply in .NET ? Am i on the right track ? I shouldn't have a problem with C# as I do know Java. I'm just trying to figure out if I'm on the right track or not at this point .. I must say at this point I'm a bit overwhelmed by all that .NET has to offer. Can anyone recommend a book for exactly these types of applications ??? Thanks in advance.. Dato. :-D

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      If you are using ASP.NET, the recommended way to structure your application is to let it use x-copy deployment (ie you should just be able to copy the files to a new server and it will work). With that said there are a couple different options available. Create a class library in C# that contains all of the code that would have been placed in MTS. Place this dll in the /bin directory of every application that needs it then it will be loaded when referenced by the ASP.NET pages. Create a separate web application that exposes your class library from above as a web-service, then use the webservice from your ASP.NET pages. I'm not sure but Professional ASP.NET programming might cover what you are looking for in both cases. A simple example of the first case is covered in the Beginning version of the book. James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups