473,405 Members | 2,310 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,405 software developers and data experts.

Code behind page DLL missing?

Dear All,

I have migrated a VS2003 ASPNET project to VS2008.

Strange issue, there used to have a DLL in the bin directory which
containts all the code behind page. But now it gone missing. The Web
site is still working perfectly.

I believe that this DLL might have moved or stored is some unknow
location.

May I know how can I find out where it is stored?

Or maybe where can I find the output directory after compile?

Thanks in advance.
Jul 16 '08 #1
4 1985
Did you create the VS 2008 project using File | New | Web Site? If so then
you don't get a compiled application into a single dll. The Web Site Project
was created for VS 2005 as a dynamic compilation site type. A lot of
developers didn't like it and MS later released the Web Application Project,
which behaves like the old projects in VS 2003. To create a Web Application
Project go to File | New | Project and look under the web node for ASP.Net
Web Application.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"CKKwan" <ck****@my-deja.comwrote in message
news:40**********************************@z66g2000 hsc.googlegroups.com...
Dear All,

I have migrated a VS2003 ASPNET project to VS2008.

Strange issue, there used to have a DLL in the bin directory which
containts all the code behind page. But now it gone missing. The Web
site is still working perfectly.

I believe that this DLL might have moved or stored is some unknow
location.

May I know how can I find out where it is stored?

Or maybe where can I find the output directory after compile?

Thanks in advance.
Jul 16 '08 #2
Mark, thaks for the quick response.

If there is no single DLL, is that means I have to deploy my website
together with all the *.cs file?

If it is already a Web Site, how can I convert it to Web Application
Project?

Thanks in advance.

On Jul 16, 12:20*pm, "Mark Fitzpatrick" <markf...@fitzme.comwrote:
Did you create the VS 2008 project using File | New | Web Site? If so then
you don't get a compiled application into a single dll. The Web Site Project
was created for VS 2005 as a dynamic compilation site type. A lot of
developers didn't like it and MS later released the Web Application Project,
which behaves like the old projects in VS 2003. To create a Web Application
Project go to File | New | Project and look under the web node for ASP.Net
Web Application.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
Jul 16 '08 #3
You can "precompile" the site, but it generates tons of dlls, one for each
page typically. It's a mess too.

What I usually do is create a new Web Application Project, copy the files
over into it, then right-click and use the Convert to Web Application on
each .aspx page. This makes a couple tweaks including creating a
..designer.cs file that defines all the controls in the page. In a Web Site
project, this file isn't needed as the page is parsed and discovered when
it's first run and compiled.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
<st*********@gmail.comwrote in message
news:71**********************************@d45g2000 hsc.googlegroups.com...
Mark, thaks for the quick response.

If there is no single DLL, is that means I have to deploy my website
together with all the *.cs file?

If it is already a Web Site, how can I convert it to Web Application
Project?

Thanks in advance.

On Jul 16, 12:20 pm, "Mark Fitzpatrick" <markf...@fitzme.comwrote:
>Did you create the VS 2008 project using File | New | Web Site? If so
then
you don't get a compiled application into a single dll. The Web Site
Project
was created for VS 2005 as a dynamic compilation site type. A lot of
developers didn't like it and MS later released the Web Application
Project,
which behaves like the old projects in VS 2003. To create a Web
Application
Project go to File | New | Project and look under the web node for
ASP.Net
Web Application.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
Jul 16 '08 #4
"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:eF**************@TK2MSFTNGP04.phx.gbl...
You can "precompile" the site, but it generates tons of dlls, one for each
page typically. It's a mess too.

What I usually do is create a new Web Application Project, copy the files
over into it, then right-click and use the Convert to Web Application on
each .aspx page. This makes a couple tweaks including creating a
.designer.cs file that defines all the controls in the page. In a Web Site
project, this file isn't needed as the page is parsed and discovered when
it's first run and compiled.
I don't understand why this option is still in VS2008. I always choose Web
Application. Seems odd.
Jul 16 '08 #5

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

Similar topics

13
by: R Reyes | last post by:
is there a way to avoid the validateRequest error page in my code behind file? i can't seem to find a way to handle the error w/o an error code or exception being thrown... i am NOT looking for...
2
by: adiel | last post by:
Hello, I am trying to access the properties and methods from a user control within the code-behind file for a webform but I am receiving the message: Name 'MenuBar1' is not declared It does...
2
by: Ken Tucker | last post by:
I've read about this issue in many articles across the net... But haven't found a solution. I see all kinds of custom code to perform sorting with datagrids, but my example is so simple, I must...
7
by: Cliff Cavin | last post by:
How do I programatically change the background color of an aspx page in code? Is there something like Page.BgColor = "#FFFFFF" ? For that matter, how do I access any of the DOCUMENT...
8
by: Brett Robichaud | last post by:
I understand how code-behind can handle events for a page, but can I call a code-behind method from within a <script> tag in my ASP.Net page, or can I only call methods defined in other <script>...
1
by: William Parker | last post by:
I have a web control I made called header.ascx. It has its own properties and methods I defined. But I cannot figure out how to access this control from my code behind page. I can create the...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
19
by: Alan Silver | last post by:
Hello, I have been developing ASP.NET with a text editor so far (better way to learn initially), and have now been trying Visual Web Developer. I want to create a project for an existing site...
7
by: Alan Silver | last post by:
Hello, I have installed the 2.0 framework, and am looking at converting some of my 1.1 pages to use partial classes. I don't (yet) have VS2005, so I'm doing this by hand, but am having problems....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.