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. Web Development
  3. ASP.NET
  4. Creating / Running a seperate aspx instance/application on the server.

Creating / Running a seperate aspx instance/application on the server.

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsharepointdatabasesysadmin
4 Posts 3 Posters 1 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
    dekart_roo
    wrote on last edited by
    #1

    I'm wondering if anyone knows how to create/start an instance of a separate aspx or c# application on the server, read its output, and terminate it, all from inside of an asp.net instance... or, if such a thing is possible at all. My initial searches on google have been fruitless, and I was wondering if anyone has done something like this before and/or could link me to an article/documentation outlining some of the procedures. -Reasons- I've begun authoring to Microsoft Sharepoint 2007, which fully runs on asp.net 2.0. However, it has some limitations (probably for security purposes.) It seems to be completely lacking in support of DirectoryServices, and throws a very generic error ("An operations error occurred.") when you so much as run an LDAP query through System.DirectoryServices.DirectorySearcher.FindAll(). This (security feature?) can be completely avoided, if I can find a way to create then initialize an application to perform the basic AD query, and report back basic information. Thanks a bunch! -Roo

    B N D 3 Replies Last reply
    0
    • D dekart_roo

      I'm wondering if anyone knows how to create/start an instance of a separate aspx or c# application on the server, read its output, and terminate it, all from inside of an asp.net instance... or, if such a thing is possible at all. My initial searches on google have been fruitless, and I was wondering if anyone has done something like this before and/or could link me to an article/documentation outlining some of the procedures. -Reasons- I've begun authoring to Microsoft Sharepoint 2007, which fully runs on asp.net 2.0. However, it has some limitations (probably for security purposes.) It seems to be completely lacking in support of DirectoryServices, and throws a very generic error ("An operations error occurred.") when you so much as run an LDAP query through System.DirectoryServices.DirectorySearcher.FindAll(). This (security feature?) can be completely avoided, if I can find a way to create then initialize an application to perform the basic AD query, and report back basic information. Thanks a bunch! -Roo

      B Offline
      B Offline
      badgrs
      wrote on last edited by
      #2

      If you can run another web application then you can make a request to that from your code just as a use does. The System.Net.WebRequest (I think thats it) is probably your best bet, just give it the Url and params and it'll get you the response. Thats the simple solution, to return a JSON string or CSV-like data from either an aspx page or a web service (ascx file), as if the code is a client browser making an Ajax request. Slightly more work but a better solution would be a 'proper' web service, where the calling code (inside Sharepoint) has a reference to the web service and uses it like any other class, no idea if you can do that with Sharepoint though but if you can there are tonnes of tutorials on web services out there.

      1 Reply Last reply
      0
      • D dekart_roo

        I'm wondering if anyone knows how to create/start an instance of a separate aspx or c# application on the server, read its output, and terminate it, all from inside of an asp.net instance... or, if such a thing is possible at all. My initial searches on google have been fruitless, and I was wondering if anyone has done something like this before and/or could link me to an article/documentation outlining some of the procedures. -Reasons- I've begun authoring to Microsoft Sharepoint 2007, which fully runs on asp.net 2.0. However, it has some limitations (probably for security purposes.) It seems to be completely lacking in support of DirectoryServices, and throws a very generic error ("An operations error occurred.") when you so much as run an LDAP query through System.DirectoryServices.DirectorySearcher.FindAll(). This (security feature?) can be completely avoided, if I can find a way to create then initialize an application to perform the basic AD query, and report back basic information. Thanks a bunch! -Roo

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        dekart_roo wrote:

        create/start an instance of a separate aspx or c# application on the server, read its output, and terminate it,

        Yes, it's called a web service


        only two letters away from being an asset

        1 Reply Last reply
        0
        • D dekart_roo

          I'm wondering if anyone knows how to create/start an instance of a separate aspx or c# application on the server, read its output, and terminate it, all from inside of an asp.net instance... or, if such a thing is possible at all. My initial searches on google have been fruitless, and I was wondering if anyone has done something like this before and/or could link me to an article/documentation outlining some of the procedures. -Reasons- I've begun authoring to Microsoft Sharepoint 2007, which fully runs on asp.net 2.0. However, it has some limitations (probably for security purposes.) It seems to be completely lacking in support of DirectoryServices, and throws a very generic error ("An operations error occurred.") when you so much as run an LDAP query through System.DirectoryServices.DirectorySearcher.FindAll(). This (security feature?) can be completely avoided, if I can find a way to create then initialize an application to perform the basic AD query, and report back basic information. Thanks a bunch! -Roo

          D Offline
          D Offline
          dekart_roo
          wrote on last edited by
          #4

          Thanks, I took a very quick glance at web services, and it looks to be just what I need. I appreciate the quick response! I'll go bury my nose in tutorials and documentation, and hopefully I'll have a working solution soon.

          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