 |
| ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

December 12th, 2005, 01:29 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
VS 2003 developer needs help with 2005
What's up all,
I just recently upgraded to VS.NET 2005 and I am getting SO frustrated with trying to deploy/build a web site in it.
I am used to creating a new "web project" in 2003, clicking the build option, have it create one .dll file...Copying my .aspx and the one .dll file down to my IIS server and having it work.
I know I can use that "publish web site" option and choose the directory to publish to...but that creates to much of a mess.
I downloaded the Web Deployment addon from MS, and that will create one .dll file for me, but everytime I move the files to my IIS server, I get a parsing error that it can't find the dll file that VS created.
What's the deal?? I am about 3 secs away from uninstalling 2005 and go back to 2003! :-)
Thanks very much in advance!
|
|

December 12th, 2005, 01:59 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Well, I guess my answer comes too late then.... ;)
Anyway, did you read the documentation that comes with the web deployment projects tool? What deployment model do you use?
Also, what mechanism do you use to publish your site? FTP is not supported with web deployment projects.
Finally, is the error message right? Is there no DLL file in your BIN folder after you successfully ran web deployment projects?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

December 12th, 2005, 02:07 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
I don't see the doc that came with the add on, but I have read through this, which seems pretty straight forward:
http://weblogs.asp.net/scottgu/archi...06/429723.aspx
Yes the file is in the bin directory of the site.
I am building the site in a different directory and then just copying the need files down to the web site. Always gives me the parsing error saying:
"Could not load the assembly 'nsWFDeployment'. Make sure that it is compiled before accessing the page."
I am using Windows 2003 server for my OS...Do I need to set an environment variable to look in the bin dir or something?
Thanks!
|
|

December 12th, 2005, 02:27 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
By design, .NET looks in the Bin folder if a website has been marked as an application.
is that the case with your remote app? Are you sure it's not just a folder, but that it has been changed in to an Application under IIS?
The docs for the web projects can be downloaded here: http://msdn.microsoft.com/asp.net/re...p/default.aspx
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

December 12th, 2005, 02:46 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
Ok, I didn't have to do that before, but I make the bin dir on my wwwroot folder and application from within IIS manager, still nothing.
THanks!
Gary
|
|

December 12th, 2005, 05:35 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You shouldn't make the Bin folder an application, but the Bin's parent folder.
So if you have this:
C:\Inetpub\wwwroot\MyApplication and
C:\Inetpub\wwwroot\MyApplication\Bin
then C:\Inetpub\wwwroot\MyApplication should be marked as an app in IIS, with the Bin folder belonging to that app.
Also, make sure that the account used by the webserver has the necessary permissions....
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

December 13th, 2005, 11:50 AM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks again Imar...
Right now, I am just playing around right now with a new app, so I am just putting my .aspx pages in wwwroot folder and putting my .dll files in the bin folder underneath the wwwroot folder.
c:\inetpub\wwwroot
c:\inetpub\wwwroot\bin
With 2003 I usually just had 1 bin folder for all of my .dll files for all of the .aspx pages.
So you are saying that you put a bin subfolder in all of your application folders?
Thanks again!
|
|

December 14th, 2005, 02:22 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Gary,
It all depends on what you configured to be an application.
If c:\inetpub\wwwroot is marked as an application then c:\inetpub\wwwroot\bin is the place to put the DLL files for that site.
If c:\inetpub\wwwroot\App1 and c:\inetpub\wwwroot\App2 are also marked as applications, their DLLs should be stored in c:\inetpub\wwwroot\App1\bin and c:\inetpub\wwwroot\App2\bin respectively....
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

December 14th, 2005, 02:47 PM
|
|
Registered User
|
|
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
Thanks for the info!
Is that new? I never had to do that when using 2000 server with VS 2003?
I just put all of my DLL files in the bin dir and could put my aspx files in any directory and it would just refer to the wwwroot\bin folder for all code-behind files.
I never had to specifically make the wwwroot folder it's own application.
I did just notice that the "aspnet_client" folder is not under my site wwwroot folder so that might be my problem also.
Thanks!
Gary
|
|

December 14th, 2005, 03:05 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
No, that's not new. In ASP.NET 1.1, each app had its own Bin folder as well.
However, the Default Website (by default at C:\Inetpub\wwwroot) is already an application when you have IIS installed.
You can also have different folders beneath wwwroot that share the same parent application and Bin folder. However, they would never be a separate app; e.g. those subfolders all share the same session and application state for example.
Be aware that you may need to configure IIS to use .NET 2. When you install IIS on a machine with the 1.1 framework, it doesn't update the sites to use v2. So, by default, sites will still run under 1.x.
Although at registration time you do get the aspnet_client folder, I don't think you need it anymore. The necessary files are streamed from the V2 assemblies automatically. Look at the source in the browser of an ASP.NET 2.0 page that uses validation and you'll see what I mean.
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Jennifers Body by Hole (Track 5 from the album: Live Through This) What's This?
|
|
 |