Results 1 to 20 of 20

Thread: configure ASP.net beta 2 on server (SOLVED)

  1. #1

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Resolved configure ASP.net beta 2 on server (SOLVED)

    Hello..

    I made a webapplication in ASP.net beta 2 and now it is finished I would like to publish it on my server.. But I don't know how?

    Is there someone who can explain me how to publish my webapplication on my server? (step by step )

    I tried everything I could think of, but it won't work

    tnx in advance!

    greetz

    nickname
    Last edited by nickname; Jun 9th, 2005 at 08:07 AM.
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  2. #2
    Member CommanderEl's Avatar
    Join Date
    Feb 2005
    Location
    Adelaide, Australia
    Posts
    40

    Re: configure ASP.net beta 2 on server

    complie it, take the compiled code, asp code, web.config and globals.asax to a folder on a web server that supports asp.net 2.0
    there should be a patch to update iis to 2.0 when you download the new 2.0 framework

  3. #3
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: configure ASP.net beta 2 on server

    1- Compile your application

    2- Download and install the .NET Framework 2.0 Beta 2 Redistributable onto the server.

    3- From the server's command prompt run;
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\aspnet_regiis.exe -i

    4- Copy over your ASP.NET files (the .aspx and .config files and the bin directory) to the web server.

    5- Configure IIS so that it knows the directory is an application. I.E. if the source is now located in D:\wwwroot\MyDotNet\ you need to locate the MyDotNet directory in the tree. Right click it and choose Properties. Click on the 'Create' button as highlighted in the attached image.

    That *should* be about it really Hope that helped.
    Attached Images Attached Images  
    Last edited by TomGibbons; Jun 9th, 2005 at 02:44 AM.

  4. #4
    Member CommanderEl's Avatar
    Join Date
    Feb 2005
    Location
    Adelaide, Australia
    Posts
    40

    Re: configure ASP.net beta 2 on server

    pretty much what i said

  5. #5
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: configure ASP.net beta 2 on server

    Indeed. But if someone is asking for something step by step, they're probably a beginner or otherwise unsure as to what they need to do. Hence I explained it step by step

    I didn't feel your post was clear enough. No offense

  6. #6
    Member CommanderEl's Avatar
    Join Date
    Feb 2005
    Location
    Adelaide, Australia
    Posts
    40

    Re: configure ASP.net beta 2 on server

    no offence taken
    complements to you for taking that much time to explain

  7. #7

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    Hello..

    tnx very very much! Tis is what I needed..

    Now, I'm going to try it out..

    I'l let you know how it went..

    greetz

    nickname

    PS: indeed, configuring a server for ASP.net is new to me
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  8. #8

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    Hello..

    For some reason it wont work..
    Maybe I'm putting the wrong files on the server?

    When I chose for 'Build' ->'publish' in Visual Studio it creates an directory 'precompiled'.. Those files I put on the server..

    greetz

    nickname
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  9. #9
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: configure ASP.net beta 2 on server

    No I'm not sure what publish does for ASP.NET applications, I've only ever used for Windows applications (which rocks, by the way). From the build menu choose "Build Solution".

  10. #10

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    Quote Originally Posted by TomGibbons
    No I'm not sure what publish does for ASP.NET applications, I've only ever used for Windows applications (which rocks, by the way). From the build menu choose "Build Solution".
    .. and then just putting the files

    - Default.aspx
    - Default.aspx.vb
    - web.config

    on the server?
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  11. #11
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: configure ASP.net beta 2 on server

    You don't need to copy over the .vb files because that's the source that gets compiled. The assemblies are in the 'bin' directory which you need to copy over to the server.

  12. #12

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    Quote Originally Posted by TomGibbons
    You don't need to copy over the .vb files because that's the source that gets compiled. The assemblies are in the 'bin' directory which you need to copy over to the server.
    Maybe a stupid question, but where can I find that 'bin' directory? It is not in my project directory

    greetz

    nickname
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  13. #13
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: configure ASP.net beta 2 on server

    I assume you're using codebehind because of the .aspx.vb files... were there any errors when you tried to compile?

  14. #14

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    Quote Originally Posted by TomGibbons
    I assume you're using codebehind because of the .aspx.vb files... were there any errors when you tried to compile?
    nope, everything works just fine..

    Even when I put the files

    -Default.aspx
    -Default.aspx.vb
    -Web.config

    on my local IIS, other users can go to the page and it works..

    Only on the server it wont work..

    greetz
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  15. #15
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: configure ASP.net beta 2 on server

    Oh I'm sorry. I've been misleading you a little bit with the compiling. I didn't realise how much they'd changed it in 2005. I'm giving you instructions for 2003 here.

    Okay I've worked out what's going on. You do indeed need to publish the project. By default that's created a load of files in my documents folder here;
    F:\Documents and Settings\Tom\My Documents\Visual Studio\Projects\WebSite3\PrecompiledWeb\WebSite3

    There you will find the files you need to copy over, including the bin directory.

    My sincerest apologies for that

    P.S. I've given you the location of my files for you to use as a reference. You should be able to work out where yours are, if you followed the default like I did.

  16. #16

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    Quote Originally Posted by TomGibbons
    Oh I'm sorry. I've been misleading you a little bit with the compiling. I didn't realise how much they'd changed it in 2005. I'm giving you instructions for 2003 here.

    Okay I've worked out what's going on. You do indeed need to publish the project. By default that's created a load of files in my documents folder here;
    F:\Documents and Settings\Tom\My Documents\Visual Studio\Projects\WebSite3\PrecompiledWeb\WebSite3

    There you will find the files you need to copy over, including the bin directory.

    My sincerest apologies for that

    P.S. I've given you the location of my files for you to use as a reference. You should be able to work out where yours are, if you followed the default like I did.
    Now thats a valuable post for me!

    tnx, I'm gonna try!

    greetz
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  17. #17
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: configure ASP.net beta 2 on server

    Even though that was so confusing, I do like how they've only put what you need to copy over in that folder. Good call Microsoft

  18. #18

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    Quote Originally Posted by TomGibbons
    Even though that was so confusing, I do like how they've only put what you need to copy over in that folder. Good call Microsoft
    The only thing left for me to do is making it possible for other users to access the server, and I'm finished.. It's a windows 2000 server.. But that doesn't belong in this post I guess ;-)

    tnx very very much!

    greetings from belgium

    nickname
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  19. #19

    Thread Starter
    Addicted Member nickname's Avatar
    Join Date
    Sep 2004
    Location
    Europe - Belgium
    Posts
    170

    Re: configure ASP.net beta 2 on server

    also struggled with an old MDAC driver but now everithing works fine!

    tnx again..

    greetz

    nickname
    Software Engineer
    DBA
    Webdesigner
    --
    to code or to be coded, that's the question

  20. #20
    Member CommanderEl's Avatar
    Join Date
    Feb 2005
    Location
    Adelaide, Australia
    Posts
    40

    Re: configure ASP.net beta 2 on server (SOLVED)

    interesting find guys, well done

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width