Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 12th, 2005, 01:29 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!

  #2 (permalink)  
Old December 12th, 2005, 01:59 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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.
  #3 (permalink)  
Old December 12th, 2005, 02:07 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!

  #4 (permalink)  
Old December 12th, 2005, 02:27 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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.
  #5 (permalink)  
Old December 12th, 2005, 02:46 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #6 (permalink)  
Old December 12th, 2005, 05:35 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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.
  #7 (permalink)  
Old December 13th, 2005, 11:50 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!

  #8 (permalink)  
Old December 14th, 2005, 02:22 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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.
  #9 (permalink)  
Old December 14th, 2005, 02:47 PM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

  #10 (permalink)  
Old December 14th, 2005, 03:05 PM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't connect to the sql 2005 developer DB gulfpaddler BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 16 August 21st, 2008 04:17 AM
Visual Web Developer 2005 dipanjan22 ASP.NET 1.x and 2.0 Application Design 2 July 12th, 2007 12:22 AM
visual web developer express & net.2003 pirate_king ASP.NET 1.0 and 1.1 Basics 0 July 8th, 2007 11:08 PM
visual web developer 2005 carswelljr VB How-To 2 September 13th, 2006 03:40 PM



All times are GMT -4. The time now is 03:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.