harmmeijer
Programmer
What am I doing wrong????
1. Made a class library project.
code in the project looks like this:
Public Class clsauthors
' some real working code is here, tested it in an application project
End Class
2. In the solutions explorer it stays there as Classlibrary1 allthough I changed the assambly name and the Root namespace to Authors.
3. Compiled in in the bin directory of a pubs directory (4. Made the web.config file containing the following text:
<configuration>
<system.web>
<compilation>
<assemblies>
<add assembly="Authors.clsauthors"/>
tried allso: <add assembly="Authors"/>
tried allso: <add assembly="clsauthors"/>
tried allso: <add assembly="Classlibrary1"/>
</assemblies>
</compilation>
</system.web>
</configuration>
5. The start of the aspx page looks like this (allthough I never get to that part):
<%@ Import Namespace="Authors.clsauthors" %>
tried: <%@ Import Namespace="Authors" %>
tried: <%@ Import Namespace="clsauthors" %>
tried: <%@ Import Namespace="ClassLibrary1" %>
The error I get when opening the page is:
File or assembly name Authors.clsauthors, or one of its dependencies, was not found.
Source File: c:\inetpub\ Line: 5
So the error is allready there in the web.config.
How can I fix this, what am I doing wrong. All the examples use a class.vb file and the example projects in of .net make a shtload of files, I only want the 3 (web.config, authors.dll, authors.aspx).
1. Made a class library project.
code in the project looks like this:
Public Class clsauthors
' some real working code is here, tested it in an application project
End Class
2. In the solutions explorer it stays there as Classlibrary1 allthough I changed the assambly name and the Root namespace to Authors.
3. Compiled in in the bin directory of a pubs directory (4. Made the web.config file containing the following text:
<configuration>
<system.web>
<compilation>
<assemblies>
<add assembly="Authors.clsauthors"/>
tried allso: <add assembly="Authors"/>
tried allso: <add assembly="clsauthors"/>
tried allso: <add assembly="Classlibrary1"/>
</assemblies>
</compilation>
</system.web>
</configuration>
5. The start of the aspx page looks like this (allthough I never get to that part):
<%@ Import Namespace="Authors.clsauthors" %>
tried: <%@ Import Namespace="Authors" %>
tried: <%@ Import Namespace="clsauthors" %>
tried: <%@ Import Namespace="ClassLibrary1" %>
The error I get when opening the page is:
File or assembly name Authors.clsauthors, or one of its dependencies, was not found.
Source File: c:\inetpub\ Line: 5
So the error is allready there in the web.config.
How can I fix this, what am I doing wrong. All the examples use a class.vb file and the example projects in of .net make a shtload of files, I only want the 3 (web.config, authors.dll, authors.aspx).