Last post Feb 12, 2014 04:53 AM by Steven Cheng - MSFT
Feb 08, 2014 04:08 PM|NoelODonnell|LINK
I'm not very well-versed in ASP.net or Windows Secuirty, I come from a Linux background. However I'm working on a Web application in ASP.net / Razor, that will involve the user typing in a c# / c++ program in a web form then pressing a "compile" button that
will send the program to the server, which should then compile it, run it and send the output back to the web browser, or an error message if compilation failed. (something like codeacademy)
I'm pretty sure I could do this in UNIX, I'd probably use a perl script to compile and run the program then write the output to the database but in windows I'm not sure what way to do this. I don't want to make the mistake of doing it the really hard, long-winded
way only to find out later there's a much easier way I could have done it.
The other problem is security. I need to protect the server against malicious users writing programs that attempt to violate the server or hijack it. I'm pretty much a newbie when it comes to windows-based server/database stuff, any suggestions would help
Thanks in advance!
Feb 10, 2014 09:46 PM|Shawn - MSFT|LINK
web applications: Web Forms, ASP.NET MVC, and ASP.NET Web Pages. All three frameworks are stable and mature, and you can create great web applications with any of them.
Each frameworks targets a different development style. The one you choose depends on a combination of your programming assets (knowledge, skills, and development experience, .), the type of application you’re creating, and the development approach you’re
comfortable with. All three frameworks will be supported, updated, and improved in future releases of ASP.NET.
Below is an overview of each of the frameworks and some ideas for how to choose between them.
Based on your description, you are using "Web application in ASP.net / Razor", Razor is a markup syntax for adding server-based code to web pages and has the power of traditional ASP.NET markup, but is easier to learn, and easier to use.
For more informaiton, you could refer to:
About the security in asp.net, you could refer to the following link, from which you could also get started with asp.net:
Feb 11, 2014 04:25 AM|NoelODonnell|LINK
This answers nothing for me, I know you work for Microsoft so obviouslty you're told to answer any posts which are unanswered, but seriously did you even read my post? Maybe I'm in the wrong forum maybe I should be in some other forum.
Feb 12, 2014 01:30 AM|Steven Cheng - MSFT|LINK
My understanding is that you're going to develop an online judge system just like the URAL or USACO, correct?
For .NET/ASP.NET based web platform, I think you can take a look at the following approaches to see if they will help:
Hope this helps some.
Feb 12, 2014 02:27 AM|NoelODonnell|LINK
Thanks for the reply. I don't want to get into virtual machines just yet. For now I think what you've described: "System.Diagnostics.Process class to programmtically invoke them" is what I'll do for now. I'm designing it in a modular way. Ideally I'd like
to give the user access to a real (virtual) console through a web interface.
Feb 12, 2014 04:53 AM|Steven Cheng - MSFT|LINK
No problem! In case there is anything else we can help, feel free to post here