Can't run DLL

T

tedqn

I created a DLL, reference it in namespace and didn't work so I tried a
very basic one and same error. I've done this before on another machine
and it was pretty plug n play. Don't know what's wrong with this
win2003 server.
- Indexing service is already disabled. I even manually unchecked the
index box in the Microsoft Framework xxx folder in c"\windows.
- Aspnet account already in the Security list.
- I manually located the dll as the error says and it's not there ...

==============================================================

<%@Import Namespace="TestCls1" %>
<%@ Assembly Name="TestCls1" %>

Dim o as new TestABC
Response.Write(o.Hello())

'compiled dll content into TestCls1.dll, placed in bin\
Public Class TestABC
Public tls As ArrayList
Public tls2 As ArrayList
Public Shared Function Hello() As String
Return "Hello World"
End Function
End Class


Parser Error Message: The format of the file 'TestCls1' is invalid.

=== Pre-bind state information ===
LOG: DisplayName = TestCls1
(Partial)
LOG: Appbase = file:///C:/MySites/DevSite
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: TestCls1
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/0a068d83/1d5ea45c/TestCls1.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/0a068d83/1d5ea45c/TestCls1/TestCls1.DLL.
LOG: Attempting download of new URL
file:///C:/MySites/DevSite/bin/TestCls1.DLL.
 
T

tedqn

Never mind. Visual Studio 2005 is fixed into using .Net Framework 2.0.
A default installation of Windows 2003 Server with ASP.NET comes with
Framework 1.1. Any dll built by VS 2005 aren't recognized by Framework
1.1 .. made you think you messed up somewhere. Uninstalled Visual
Studio 2005 and reinstalled VS.Net (2002) .. things work again.
 
T

tedqn

Never mind. Visual Studio 2005 is fixed into using .Net Framework 2.0.
A default installation of Windows 2003 Server with ASP.NET comes with
Framework 1.1. Any dll built by VS 2005 aren't recognized by Framework
1.1 .. made you think you messed up somewhere. Uninstalled Visual
Studio 2005 and reinstalled VS.Net (2002) .. things work again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top