Hi,
I have a file like this compiled into a dll file and placed in the bin folder
1
Imports System
Imports System.Web
Namespace Conexiones
Public Class sql_conexiones
Shared Sub consulta..
...
By doing
from Conexiones import *
from the .aspx.py file it works fine.
I have this other file in the APP_SCRIPT in a py file (no namespaces declared)
2
import clr
clr.AddReference('System')
import System
clr.AddReference('System.Data')
from System.Data import *
clr.AddReference('System.Web')
import System.Web
def consulta ...
By doing
from funciones import *
from the .aspx.py file it works fine.
Now I want the code from funciones in a dll file. I have funciones.dll in the bin folder and I have
from funciones import *
in the .aspx.py .
I get "no module named funciones" May be I have to explicity add the dll? I do
clr.AddReference("funciones.dll")
from funciones import *
and I get "Could not add reference to assembly funciones.dll"
My question is, How do I have to do to be able to use functions in a file with code similar to #2, placed in a dll file in the bin folder in ASP.NET IronPython? The only difference I see between #1 and #2 is #1 has a namespace declared