S
Steve Richter
When I build a C# class and install it in the GAC, my code works as it
should, my .aspx code finds the DLL and can run a static method:
<%@ Assembly Name="AutoCoder, Culture=neutral,
Version=1.0.1922.22245, PublicKeyToken=0a4067d718757385" %>
<%@ Import Namespace="AutoCoder" %>
Trace.Write( "AutoCoder", AutoCoder.Common.GetConnectionString( )) ;
But I cant locate the assembly in its directory using the src=
property.
- in IIS I map a virtual directory
- use the following @Assembly directive to reference the DLL:
<%@ Assembly src="\src#\AutoCoder\AutoCoder\bin\release\AutoCoder.dll"
%>
Parser Error Message: There is no build provider registered for the
extension '.dll'. You can register one in the
<compilation><buildProviders> section in machine.config or web.config.
Make sure the appliesTo attribute includes the value 'Web' or 'All'.
Why do I have to provide a build provider when using src= to reference
the assembly, but dont have to the assembly is founc in the GAC?
-Steve
should, my .aspx code finds the DLL and can run a static method:
<%@ Assembly Name="AutoCoder, Culture=neutral,
Version=1.0.1922.22245, PublicKeyToken=0a4067d718757385" %>
<%@ Import Namespace="AutoCoder" %>
Trace.Write( "AutoCoder", AutoCoder.Common.GetConnectionString( )) ;
But I cant locate the assembly in its directory using the src=
property.
- in IIS I map a virtual directory
- use the following @Assembly directive to reference the DLL:
<%@ Assembly src="\src#\AutoCoder\AutoCoder\bin\release\AutoCoder.dll"
%>
Parser Error Message: There is no build provider registered for the
extension '.dll'. You can register one in the
<compilation><buildProviders> section in machine.config or web.config.
Make sure the appliesTo attribute includes the value 'Web' or 'All'.
Why do I have to provide a build provider when using src= to reference
the assembly, but dont have to the assembly is founc in the GAC?
-Steve