Several years before I started working at this job another developer who is no longer here wrote an application in classic ASP using HTML, vbscript and javascript. This is fine but the problem is that 2 pages were written in C# with an HTML file and a code behind file. There was no solution files for these two pages. They may have been originally created in Visual Studio but they don't exist in it now.
That is important because there is a lot of things that Visual Studio just does for you without even thinking.
My problem is that in these two C# pages I need to get them to reference a DLL. This is a simple task when using Visual Studio. You just add a reference to the project and life is good. But outside of VS nothing seems to work.
I tried putting the dll in the same folder as the pages and then I tried the following:
Using myDLL;
myDLL dll = new myDLL();
myDLL dll = myDLL();
I found some code online that said to create an internal static class and use [DLLImport()] but that didn't work either.
Outside of having to rewrite these pages in vbscript (which I don't have the time to do) I am at a loss.
Has anyone ran into this problem before? Is there something that I can put in the web.Config? Or is this just impossible and I am hosed.
BTW this is all running under the 2.0 .net framework.
Thanks,
Robert
Loading
Robert LawsonPosted Jun 29, 2012, 4:59 PM
After I did that the Using
There was one other thing that I did different, I created a new VS project and added all of my files, the .ASPX, .CS, .ASP, .JS and everything else. I published this all to the web server, selecting the copy All Project Files option. That may have made some difference but I don't know what it would have been because nothing worked until I made the change in IIS.
Mahesh ChandPosted Jun 28, 2012, 8:12 PM
I would recommend you create a new empty project, add those files, add new code (DLL reference or anything else), compile DLL and put new DLL on IIS.
It won't be easy. Not sure how C# code is being referenced from the UI pages.