Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't c++ offered as a code-behind language for asp.net?

I was curious why C++ isn't offered as a code-behind language for ASP.NET applications?

like image 751
Xaisoft Avatar asked Dec 17 '25 00:12

Xaisoft


2 Answers

Most ASP.NET applications run in limited trust modes. And C++ generally compiles into something that requires higher trust levels.

like image 191
Foxfire Avatar answered Dec 19 '25 13:12

Foxfire


C++ is supported, but as another answer says - most C++ apps require a higher level trust mode that ASP.NET cannot support. You can, however, use C++ to create assemblies and web components that can then be consumed by ASP.NET & IIS.

There is a project to include C++ as a code-behind language.

Article on creating consumable assemblies

like image 33
Daniel May Avatar answered Dec 19 '25 13:12

Daniel May



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!