« Previous Next »

Thread: Setting IIS folder for ASP.Net application

Last post 01-29-2009 7:00 AM by djbreizh. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 01-27-2009, 11:28 AM

    • djbreizh
    • Not Ranked
    • Joined on 07-16-2003, 7:50 AM
    • us
    • Posts 3

    Setting IIS folder for ASP.Net application

    Hello,

    I am trying to plug my ASP.Net 2.0 app to a sharepoint website. My goal is to make them sharing session data.

    I developed a simple app to store and retrieve session data. I configure Sharepoint web.config to enable session state and I declare my app in IIS as a virtual directory. When I wanted to try with the main app (with custom class...), it didn't work, "BC30002: Type 'XXX' is not defined."

    When I declare my app as virtual application it works but without session sharing. Does I need something to declare in sharepoint web.config (it crashes on a custom class) ? Can we use a virtual directory (not application) to run ASP.Net website ?

    Thank you

     Adrien

  • 01-27-2009, 12:35 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,235
    • IIS MVPs

    Re: Setting IIS folder for ASP.Net application

    You'll get a better answer in a SharePoint forum, but I think the problem is that you can't set your folder as an application - that puts into a different scope than the SharePoint app.

  • 01-28-2009, 3:51 AM In reply to

    • djbreizh
    • Not Ranked
    • Joined on 07-16-2003, 7:50 AM
    • us
    • Posts 3

    Re: Setting IIS folder for ASP.Net application

    OK but concerning IIS, can you answer me that question :

    Can we use a virtual directory (not virtual application) to run ASP.Net website ?

     

    Thank you

    Adrien

  • 01-28-2009, 5:19 AM In reply to

    Re: Setting IIS folder for ASP.Net application

    djbreizh:

    OK but concerning IIS, can you answer me that question :

    Can we use a virtual directory (not virtual application) to run ASP.Net website ?

    Hi,

    Its not really clear what you are asking. You can run an Asp.Net application in a virtual directory but if you want a separate site then you need to create a separate web site in IIS.

    Layout of ASP.NET Web Applications (IIS 6.0)

    Regards,

     


    Paul Lynch | www.iisadmin.co.uk
  • 01-28-2009, 5:28 AM In reply to

    Re: Setting IIS folder for ASP.Net application

  • 01-29-2009, 7:00 AM In reply to

    • djbreizh
    • Not Ranked
    • Joined on 07-16-2003, 7:50 AM
    • us
    • Posts 3

    Re: Setting IIS folder for ASP.Net application

    Hello Paul,

     

    Thank you for your answer. I found a solution to my problem.

    To remember, my goal is to extend sharepoint site with my ASP.Net app sharing session information between both. Therefore I had to use a virtual directory which do not compile files, so I move App_code and Bin directories to root folder of website and it works now. 

     

    Thank you

    Adrien

Page 1 of 1 (6 items)
Microsoft Communities