It's not Mono in this case (which does a great job of handling .Net code, as long as you avoid the MS-proprietary extension libraries), you're feeding it malformed ASP.Net code. The entire structure of ASP code changed with ASP.NET, but you're feeding it escaped VBScript code that's not even ASP.Net, it's old-style ASP, which simply won't work. What it's actually doing is copying the escaped code into a C# file, then trying to compile that, and failing because your code is VBScript, not C#. Try something more like the following (borrowed from W3Schools example pages): _______________________________________________________
_______________________________________________________________ Be sure to save the file with the .ASPX extension, the .ASP extension is handled by a different interceptor (to maintain backward compatibility), that probably won't like this code. For C# in ASP.Net, it gets a bit more quirky, and it's not recommended if you still have legacy ASP, since ASP.Net C# code can't (usually) share a session with legacy ASP, only VB.Net code in ASP.Net can do that (easily) (I know it gets really confusing, what do you expect from a proprietary company) If you still have problems, it's best to get someone more familiar with ASP.Net to assist you, since you really have to know the development model and the server configuration options both to get it all working just right. FoulDragon@aol.com wrote: > So I'm told we need some form of .NET combatability for our FC4 server. > > I fire up Yum and install the mono-complete package, but the resultant > install seems to be incredibly easy to break. > > If I just put > > <% dim variablename; %> > > it has a fit. > > Error message: /tmp/apache-temp-aspnet-0/bbce3785/87108.0.cs(61,13) : error > CS0246: The type or namespace name `dim' could not be found. Are you missing a > using directive or an assembly reference? > > Forget about anything more complex for now. > > Is Mono more difficult to install than a conventional ball of RPMs? Does it > need some post-install cleanup? Or is it just the .NET version of WINE, > setting up elaborate dreams then leaving you wanting when it actually comes to > compatibility? Or am I misinterpeting the "ASP.NET for complete fools who can't > understand why PHP isn't good enough" sites? > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss >