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 :blush: )
I tried everything I could think of, but it won't work :(
tnx in advance!
greetz
nickname
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
1 Attachment(s)
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.
Re: configure ASP.net beta 2 on server
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 :)
Re: configure ASP.net beta 2 on server
no offence taken :)
complements to you for taking that much time to explain :thumb:
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
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
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".
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?
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.
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 :rolleyes:
greetz
nickname
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?
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
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.
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! :) :thumb:
tnx, I'm gonna try!
greetz
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 :thumb:
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 :thumb:
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
Re: configure ASP.net beta 2 on server
also struggled with an old MDAC driver :rolleyes: but now everithing works fine!
tnx again..
greetz
nickname
Re: configure ASP.net beta 2 on server (SOLVED)
interesting find guys, well done