1. I used copy webSite for All the projects that i develop until now i. and i wanted to ask what the different between copy webSite and deploy?
and, if i create one dll for my web site its affect the performence or anything else, in contradiction of copy webSite?
2. I created one dll of my website, is that dll include all the images, styles, aspx, ascx, and other resources of my site, or just the code behid like visual studio 2003?
3. After i create my webSite dll, where do i put it so i will be able to run the site?
I tried to take those dll's from "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" and put them in my BIN folder, or in the GAC, and still the same error, why is that?
Copy -> copying the configuration fiele and actual aspx file to the hosting
Deploy -> using windows installer class to copy compiled files and other setup features/settings.
If you're using COPY WEBSITE -> VS will copy all DLL's for you.
HOWEVER, if you want to setup other settings such as inserting DLL into GAC (global assembly cache), manipulate security polity, setup launch condition, use DEPLOY.
DLL will include images and other referenced files, ONLY IF YOU EMBEDDED during COMPILATION. (refer to your VB/C# doc & make sure you have assemlyinfo.vb/cs)
BIN/ROOT/CACHE, it's up to you. (If you are not aware of this, you should seriously consider a. learning about deply b. not use it - deployment is very powerful feature which can affect other application in same machine)
I don't know that .cs code, so I won't get into it. BUT that error is asking you to check IMPORTS/USING statement in VB.net/C# respectively.Perhaps the namespace is not in the .net framework or references to it from DLL itself during compilation is incorrect.
(or not embedded correctly during compilation)
Hope this helps and let me know if this worked for you.
what do you mean by that:"ONLY IF YOU EMBEDDED during COMPILATION"?
and, what i ment to ask about the diferent between copy webSite and deploy is, between two of them, who is the better one(let sey if i copy my webSite as is, or deploy my webSite to one dll)is the performence affected when i upload one compiled dll, instead
of using copy WebSite?
and, i didn't understood your answer about where to upload my deploy files, if i deploy my webSite and i get one dll, i can put it under the its virtual directory and just call to the first page in the project?
1. Embedding during compilatoin -> is making sure your referenced files are INCLUDED in DLL. (so it's more modular and portable)
2. Difference between copy and deploy. -> which suits you better? (i've given you the pros and cons of each. - choice is yours.)
My take is that you probably should do website copy. (easier to manager updates to the code)
Precompiled DOES react faster (just a bit - since webserver will compile it for you if compiled code is not there, but caches the compilation - thus delay occurs on first time only)
3. ASPX pages goes to the webroot and DLL goes to the BIN.
Based on your questions (how to embed during compilation), I think you shouldn't opt for deployment just yet. Deployment has options such as embedd resources, updatable, strict-named, ...etc.
If you're not comfortable with this, don't try it. All of these options are built toward efficient and faster performance but lacks updatable/changes to the application as options get larger.
So if you must require my advice, go for website copy. It's the easiest to manage codes.
may215
Member
157 Points
232 Posts
deploy problem
Jan 17, 2007 11:47 AM|LINK
hi..
I have some questions about deployment:
1. I used copy webSite for All the projects that i develop until now i. and i wanted to ask what the different between copy webSite and deploy?
and, if i create one dll for my web site its affect the performence or anything else, in contradiction of copy webSite?
2. I created one dll of my website, is that dll include all the images, styles, aspx, ascx, and other resources of my site, or just the code behid like visual studio 2003?
3. After i create my webSite dll, where do i put it so i will be able to run the site?
4. I want to use IncrementBuildNumber.cs class from http://weblogs.asp.net/bradleyb/archive/2005/12/02/432150.aspx, and i get the following errors, about the following dll's:
"The type or namespace name 'Build' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?"
Microsoft.Build.Framework.dll, Microsoft.Build.Utilities.dll.
I tried to take those dll's from "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" and put them in my BIN folder, or in the GAC, and still the same error, why is that?
thank you...
jae.lee
Participant
843 Points
196 Posts
Re: deploy problem
Jan 17, 2007 01:18 PM|LINK
Deploy -> using windows installer class to copy compiled files and other setup features/settings.
If you're using COPY WEBSITE -> VS will copy all DLL's for you.
HOWEVER, if you want to setup other settings such as inserting DLL into GAC (global assembly cache), manipulate security polity, setup launch condition, use DEPLOY.
Hope this helps and let me know if this worked for you.
Jae.
jae.lee
Participant
843 Points
196 Posts
Re: deploy problem
Jan 17, 2007 09:38 PM|LINK
Did above post work for you?
Jae.
may215
Member
157 Points
232 Posts
Re: deploy problem
Jan 18, 2007 06:53 AM|LINK
Hi...
thank you for your answers...
what do you mean by that:"ONLY IF YOU EMBEDDED during COMPILATION"?
and, what i ment to ask about the diferent between copy webSite and deploy is, between two of them, who is the better one(let sey if i copy my webSite as is, or deploy my webSite to one dll)is the performence affected when i upload one compiled dll, instead of using copy WebSite?
and, i didn't understood your answer about where to upload my deploy files, if i deploy my webSite and i get one dll, i can put it under the its virtual directory and just call to the first page in the project?
thank you...
jae.lee
Participant
843 Points
196 Posts
Re: deploy problem
Jan 18, 2007 08:08 AM|LINK
1. Embedding during compilatoin -> is making sure your referenced files are INCLUDED in DLL. (so it's more modular and portable)
2. Difference between copy and deploy. -> which suits you better? (i've given you the pros and cons of each. - choice is yours.)
My take is that you probably should do website copy. (easier to manager updates to the code)
Precompiled DOES react faster (just a bit - since webserver will compile it for you if compiled code is not there, but caches the compilation - thus delay occurs on first time only)
3. ASPX pages goes to the webroot and DLL goes to the BIN.
Based on your questions (how to embed during compilation), I think you shouldn't opt for deployment just yet. Deployment has options such as embedd resources, updatable, strict-named, ...etc.
If you're not comfortable with this, don't try it. All of these options are built toward efficient and faster performance but lacks updatable/changes to the application as options get larger.
So if you must require my advice, go for website copy. It's the easiest to manage codes.
Hope this helps.
Jae.