473,394 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP .NET 2.0 Visual Studio 2005 - deploying - no DLLs

Hi,

I usually deploy my ASP .NET application to the server by publishing, using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard
Jun 27 '08 #1
10 1891
ASP.NET 2.0 compiles your application on a fly. So it's important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard

Jun 27 '08 #2
All source code (code behind, and source siles in the App_Code folder) is on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:
ASP.NET 2.0 compiles your application on a fly. So it's important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard


Jun 27 '08 #3
re:
!I thought that the application would be compiled on the server the first
!time it was ran, and this would create the DLL files in the BIN folder.

If you don't pre-compile, the only dlls created will be
located in the ASP.NET Temporary Files directory.

re:
!I've been asked to publish by copying the files manually instead.

That is not such a good idea if you don't pre-compile.

Figure out your ASP.NET 2.0 publishing options in these articles :

http://weblogs.asp.net/scottgu/archi...h-VS-2005.aspx

http://maordavid.blogspot.com/2007/0...plication.html

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...
All source code (code behind, and source files in the App_Code folder) is on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:
>ASP.NET 2.0 compiles your application on a fly. So it's important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microso ft.com...
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard



Jun 27 '08 #4
For some reason, the DLLs for thie website are not in the .NET temporary
files folder, although I can see other project's folders with the DLLs inside.

Why is that this project didn't compile?

"Richard" wrote:
All source code (code behind, and source siles in the App_Code folder) is on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:
ASP.NET 2.0 compiles your application on a fly. So it's important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,
>
I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.
>
I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.
>
The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.
>
How does this work? How can I still use copy to deploy, and get a compiled
website?
>
Thanks in advance,
>
Richard
Jun 27 '08 #5
Are you having a problem or it's just a theoretical question..
Why do you worry so much where DLLs are.. Who cares....May be it was
compiled and all DLLs only exist in memory only (I know that .NET does not
do that, but why not... )

Let try more reasonable approach:
a). If your application works then look harder in .NET temp folders....
b). If your application does not work then you should be getting an error
message. Let us know exact error you getting....
George.
"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:32**********************************@microsof t.com...
For some reason, the DLLs for thie website are not in the .NET temporary
files folder, although I can see other project's folders with the DLLs
inside.

Why is that this project didn't compile?

"Richard" wrote:
>All source code (code behind, and source siles in the App_Code folder) is
on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:
ASP.NET 2.0 compiles your application on a fly. So it's important to
copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on
the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would
have
triggered a compilation of the website, but there are no DLL files in
the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a
compiled
website?

Thanks in advance,

Richard

Jun 27 '08 #6
re:
!Why is that this project didn't compile?

If your development server is running IIS, you can precompile the app in place with:
Aspnet_compiler -v /WebAppVirtualName

Then, manually copy the application's files to your server.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:32**********************************@microsof t.com...
For some reason, the DLLs for thie website are not in the .NET temporary
files folder, although I can see other project's folders with the DLLs inside.

Why is that this project didn't compile?

"Richard" wrote:
>All source code (code behind, and source siles in the App_Code folder) is on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:
ASP.NET 2.0 compiles your application on a fly. So it's important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard

Jun 27 '08 #7
Thanks, I'll try that. The problem is that developers have no access to Test
and Production environments, so we depend on the infrastructure people to
deploy,but it's not their responsibility to compile or use any development
tool, but at the same time, the policy best practices do not allow source
code to be on the server.

All these constraints make me waste so much time! If they just let me
publish from my Visual Studio to the server, that'd take 5 minutes, but you
know how it is :-P

"Juan T. Llibre" wrote:
re:
!Why is that this project didn't compile?

If your development server is running IIS, you can precompile the app in place with:
Aspnet_compiler -v /WebAppVirtualName

Then, manually copy the application's files to your server.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:32**********************************@microsof t.com...
For some reason, the DLLs for thie website are not in the .NET temporary
files folder, although I can see other project's folders with the DLLs inside.

Why is that this project didn't compile?

"Richard" wrote:
All source code (code behind, and source siles in the App_Code folder) is on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:

ASP.NET 2.0 compiles your application on a fly. So it's important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,
>
I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.
>
I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.
>
The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.
>
How does this work? How can I still use copy to deploy, and get a compiled
website?
>
Thanks in advance,
>
Richard



Jun 27 '08 #8
No George, not for the sake of knowledge. I replied to Juan explaining why I
need to know that.
Thank you for your advice. The folder and the DLLs were under the ASP .NET
temp folder, but the folder had an old timestamp, and didn't have the
application's name like most of the others, so it took me some time to open
each folder and the subfolders,and then figure out what application the DLLs
belonged to.

Thanks anyways

"George Ter-Saakov" wrote:
Are you having a problem or it's just a theoretical question..
Why do you worry so much where DLLs are.. Who cares....May be it was
compiled and all DLLs only exist in memory only (I know that .NET does not
do that, but why not... )

Let try more reasonable approach:
a). If your application works then look harder in .NET temp folders....
b). If your application does not work then you should be getting an error
message. Let us know exact error you getting....
George.
"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:32**********************************@microsof t.com...
For some reason, the DLLs for thie website are not in the .NET temporary
files folder, although I can see other project's folders with the DLLs
inside.

Why is that this project didn't compile?

"Richard" wrote:
All source code (code behind, and source siles in the App_Code folder) is
on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:

ASP.NET 2.0 compiles your application on a fly. So it's important to
copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,
>
I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on
the
server, with the compiled DLLs.
>
I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.
>
The application ran normally, and I expected that first use would
have
triggered a compilation of the website, but there are no DLL files in
the
Bin
folder, like when I publish with Visual Studio.
>
How does this work? How can I still use copy to deploy, and get a
compiled
website?
>
Thanks in advance,
>
Richard



Jun 27 '08 #9
I understood why you want that.
But I would advice against of grabbing your "temp" dlls and move them to
production...
Who knows what is going on behind the scene....

Just precompile your app on your development server. It will create bunch of
DLLs in BIN folder.
http://articles.techrepublic.com.com...3-6116804.html
I think I advised you to do so in the beginning but you kept looking from
DLLs thus confused me since I did not understand exactly what you want.

PS: if you need to change something in your project you will need to remove
all DLLs from production and copy new precompiled one... since the names of
dlls pretty much random...

George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
No George, not for the sake of knowledge. I replied to Juan explaining why
I
need to know that.
Thank you for your advice. The folder and the DLLs were under the ASP .NET
temp folder, but the folder had an old timestamp, and didn't have the
application's name like most of the others, so it took me some time to
open
each folder and the subfolders,and then figure out what application the
DLLs
belonged to.

Thanks anyways

"George Ter-Saakov" wrote:
>Are you having a problem or it's just a theoretical question..
Why do you worry so much where DLLs are.. Who cares....May be it was
compiled and all DLLs only exist in memory only (I know that .NET does
not
do that, but why not... )

Let try more reasonable approach:
a). If your application works then look harder in .NET temp folders....
b). If your application does not work then you should be getting an error
message. Let us know exact error you getting....
George.
"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:32**********************************@microso ft.com...
For some reason, the DLLs for thie website are not in the .NET
temporary
files folder, although I can see other project's folders with the DLLs
inside.

Why is that this project didn't compile?

"Richard" wrote:

All source code (code behind, and source siles in the App_Code folder)
is
on
the server.
I thought that the application would be compiled on the server the
first
time it was ran, and this would create the DLL files in the BIN
folder.

Isn't that the way it works?

"George Ter-Saakov" wrote:

ASP.NET 2.0 compiles your application on a fly. So it's important to
copy
not only your aspx pages but .cs (or .vb) files as well from
directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look
up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...
Hi,

I usually deploy my ASP .NET application to the server by
publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on
the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would
have
triggered a compilation of the website, but there are no DLL files
in
the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a
compiled
website?

Thanks in advance,

Richard



Jun 27 '08 #10
You can publish your site to a directory on your computer and then copy
up what you want.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com:
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in
the Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a
compiled
website?

Thanks in advance,

Richard
Jun 27 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michael | last post by:
Hi! I've written some simple games and now I want to create installers for them. I've added the thrid party dlls that I use (fmod, libsdl..) but my games also need certain Visual Studio .NET dlls....
21
by: Paul Tremblay | last post by:
Hi All, I am a veteran C/C++ programmer (Unix background) and I want to get to speed with Visual Studio .Net I have legacy C/C++ code that I want to use in my application. However, I'm not...
0
by: BradleyB | last post by:
Visual Studio 2005 Web Deployment Projects (Beta Preview) Visual Studio 2005 Web Deployment Projects provide additional functionality for building and deploying Web site applications that you...
5
by: Mads Peter Nymand | last post by:
Hi, Background: I'm a Java programmer new to c# and Visual Studio. Problem: When I compile in Visual Studio 2005, the compiler complains, that it can not find several different namespaces....
8
by: Peter Afonin | last post by:
Hello, I'm just starting to work with ASP.NET 2.0 and VS 2005. If I understand correctly, even if I precompiled my application, I still need to upload aspx.vb files to the server, correct? The...
8
by: Kuldeep | last post by:
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 Hi All, Could any one of you please let me know how to use NDoc in Visual Studio 2005. If there is a source where...
2
by: clintonb | last post by:
I'm using: Microsoft Visual Studio 2005 Version 8.0.50727.42 Issue 1: We have a solution with a web project and some class library projects. The web project references the class library...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
0
by: =?Utf-8?B?UGFy?= | last post by:
Hi I have a question on how to import unmanaged DLLs into Visual Studio 2005, C# environment. The background is that an instrument we bought is controlled through a couple of DLL files. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.