View Single Post
  #2 (permalink)  
Old May 27th, 2004, 07:32 AM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This question is a little confusing but I think I know what the problem is.

You are trying to upload an ASP.NET page: Webform1.aspx
This page needs to inherit from the class "something.Webform1".
This class will live in your compiled DLL. If c:/inetpub/wwwroot/something/ is NOT configured as an application, then the class "something.Webform1" is assumed to live in an assembly that is located in c:/inetpub/wwwroot/bin. You can put the assembly in c:/inetpub/wwwroot/something/bin but it will not be found by the ASP.NET runtime unless c:/inetpub/wwwroot/something is an application.

When you create the directory for "something", you need to go into IIS and make that directory an application. To do this:
- Start IIS manager
- Navigate to the subdirectory "something" under the default web site
- Right-click, and choose properties
- On the directory tab, look for "Application Settings"
- Under that, you should find a "Create" button.
- Click "Create" button. This creates an application on that subdirectory.

Now when the aspx page is run, the .NET runtime will look for assemblies under something/bin.

Peter
-------------------------
Work smarter, not harder