ASP.NET app in 2005 ?

C

Chris

Hi,

When creating an ASP.NET project in VisualStudio 2005 : where have
web.config, global.asax, ... gone ?

as well the declaration of the datamembers in the WebForm1-class ?

where is the compiled version ? not in bin-subdir anymore apparently !!!!

thanks
Chris
 
C

chris ciotti

Hi,

When creating an ASP.NET project in VisualStudio 2005 : where have
web.config, global.asax, ... gone ?

as well the declaration of the datamembers in the WebForm1-class ?

where is the compiled version ? not in bin-subdir anymore apparently !!!!

thanks
Chris

I've just started using VWD 2005 and am curious about this myself. I'd
appreciate any insight the group may have.

--chris
 
J

Juan T. Llibre

re:
Isn't a default web.config created for you ?
It should be. It is for me.

If you want a global.asax ( it's not an obligatory file to have ),
you only need to create it:

"File", "New", "File" ( or Control-N ) , and select "Global Application Class"

A global.asax template will be created, which you can modify.

re:
The /bin directory in Beta 2, and later versions of ASP.NET, will only
contain anything you compile yourself, like assemblies for controls,
components or other code you want to reference in your application.

The code in your code-behind, plus the code in the App_Code directory,
will be compiled to the ASP.NET Temporary Files directory by VS.Net,
from where it will be served by ASP.NET to the clients.

This change allows the new compilation model for ASP.NET 2.0
to merge your partial classes in a more efficient manner.
 
Q

Q. John Chen

I haven't use VS '05 yet, might be a silly question:

If the code-behind is compiled into Temporary Files directory. How can
I deploy it to the server?
 
J

Juan T. Llibre

You don't deploy the files in *your* "Temporary ASP.NET Files"
directory to the server.

You deploy your source code files to the server and the server compiles
them to the *server's* "ASP.NET Temporary Files directory", from
where they're served to the clients.

If you're not comfortable with your source files being at the server,
compile your source files manually, from the command-line,
and deploy them to your application's /bin directory.
 
Q

Q. John Chen

Last questions before I use/read more about VS2005.

What if I don't have compiler on the server?

Is there an option/config setting in IDE so I can choose rather than do
it MANUALLY from command-line?
 
W

Willy Denoyette [MVP]

You allways have the compiler on the server, its part of the framework.

Willy.
 
K

Kevin Spencer

What if I don't have compiler on the server?

Then you don't have ASP.Net on the server.
Is there an option/config setting in IDE so I can choose rather than do
it MANUALLY from command-line?

I've done it manually before, but never from command-line. ... Wait. What
exactly is "it?" We may be talking about different things here. ;-)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
 
Q

Q. John Chen

If you're not comfortable with your source files being at the server,
I was asking question to the above comments. I use ISP so the server is
not totally under my control even they are dedicated servers. I don't
want to deploy my source code.

Is there a way to avoid the command-line and set up in a configuration
of the project?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top