473,480 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

could not load type "namespace.classname"

Hi,

I have a folder with a web.config file using forms authentication thus
requiring that folder to be an IIS application. When I attempt to visit a
webpage in that folder, default.aspx, I receive the error: could not load
type "namespace.classname"

I found MS KB #306155 and followed the recommended steps of performing a
build on the web project. I am still receiving the error. I thought I had
this problem solved in a previous post but I was mistaken. I can
consistently reproduce this error.

Thanks,

Andy
Nov 19 '05 #1
4 3374
Are you using VS.NET? Do you have a bin directory? Is your compiled .dll in
there?

"Andy Sutorius" wrote:
Hi,

I have a folder with a web.config file using forms authentication thus
requiring that folder to be an IIS application. When I attempt to visit a
webpage in that folder, default.aspx, I receive the error: could not load
type "namespace.classname"

I found MS KB #306155 and followed the recommended steps of performing a
build on the web project. I am still receiving the error. I thought I had
this problem solved in a previous post but I was mistaken. I can
consistently reproduce this error.

Thanks,

Andy

Nov 19 '05 #2
I am using VS.NET. I have a bin directory. The compiled dll is in there.

Andy
"Tampa .NET Koder" <Ta***********@discussions.microsoft.com> wrote in
message news:C3**********************************@microsof t.com...
Are you using VS.NET? Do you have a bin directory? Is your compiled .dll in there?

Nov 19 '05 #3
Well I would delete the folder for your app from the Temporary ASP.NET files
in your framework directory. I would then restart Kill the aspnet_wp
process. Restart IIS using iisreset from cmd prompt. Possiblily rebuild
your app again. And see what happens.

"Andy Sutorius" wrote:
I am using VS.NET. I have a bin directory. The compiled dll is in there.

Andy
"Tampa .NET Koder" <Ta***********@discussions.microsoft.com> wrote in
message news:C3**********************************@microsof t.com...
Are you using VS.NET? Do you have a bin directory? Is your compiled .dll

in
there?


Nov 19 '05 #4
Had the same problem when attempting to apply Forms Authentication to a
folder below the Virtual Root Directory. Solution:

· If you have created an Authentication section for a sub-folder,
remove that code and change the sub-folder back a regular folder
(remove App Name in IIS).
· Set Authentication for the entire Virtual Directory to Forms.
· Deny access to un-authenticated users for the sub-folder that you
want to control. - Use the Authorization section to accomplish this.

Only requests for pages in the sub-folder will be prompted to logon. -
Liberty and Hurwitz have a good chapter on this in Programming ASP.Net.

Take care,
Hardy

Nov 19 '05 #5

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

Similar topics

3
5716
by: Ante Perkovic | last post by:
Hi, Sorry if this is OT :( I have some old CSS files that have all class names preceded with tagname, like "TD.verysmall" or "span.important". I'm exeprimenting with Dreamwiever and I noticed...
1
5653
by: Peter King | last post by:
if you assign multiple classes in order to keep your classes generic e.g ..classA { position.absolute; left:5 top:5 height:200 width:800 } ..classB { background-color: red} ..classC {...
5
1921
by: cppaddict | last post by:
It is typical to put the line: using namespace std; at the top of a file which makes use of std library objects. To take a simple example: #include <iostream> using namespace std;
5
9991
by: SenthilSS | last post by:
My application produces XML Data files which have XML namespace qualified XML elements (nodes), but the namespace itself is not declared in the data file. My task is to read these data files in a...
0
2968
by: maxim mat | last post by:
Hi I need to build client for web service. But when I'm using Visual Studio .NET to add Web Reference, I get error: "Custom tool error: Unable to import WebService/Schema. Unable to import...
1
2526
by: Kris | last post by:
Hey everyone, I am trying to make a multi-project web application in visual studio that uses the server.transfer method in C# to get to the different aspx pages. However, when I call out to the...
3
2273
by: Chris | last post by:
Hi, 1) In file test.aspx, i put: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %> <%@ import namespace="System.Data"%> <%@ import...
4
1954
by: bill tie | last post by:
I'm trying to re-construct missing classes in somebody else's code. Salient points: Dictionary<string, Projectprojects = new Dictionary<string, Project>(); .... WeeklyAggregation aggregation...
2
16367
by: shalong | last post by:
Hi all, VS 2008 is complaining that HttpWebRequest class is not in System.Net namespace I have referenced System.Net and have coded "using System.Net" I think its a setup problem rather than a...
0
7032
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6730
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
5321
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,...
1
4767
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.