How to set up smartphones and PCs. Informational portal
  • home
  • Security
  • What is a php framework in human language? What is Microsoft.Net Framework.

What is a php framework in human language? What is Microsoft.Net Framework.

07/09/17 33.4K

If you frequently install programs, you have probably encountered Microsoft .NET Framework errors. The two most common - it is either not installed, or the wrong version is installed.

Why is this happening? What is it and why is NET Framework needed?

What is the .NET Framework?

You probably know that the main occupation of programmers is writing code. In doing so, they use different programming languages ​​to tell the computer what it should do:


But there is one problem - programming languages ​​are pretty primitive. With their help, you can easily perform simple actions like addition and multiplication. Everything else requires a long and hard work. Want to display text or images on the screen? Then you have to write a lot of code using the simplest elements of the language.

This is where the .NET Framework comes in. In fact, this is an extensive set of written code snippets ( created and maintained by Microsoft) which programmers can use to write programs faster.

For example, the .NET Framework takes care of all the operations for drawing windows on the screen. The programmer only needs to insert text, think over the program menu, set the behavior of the buttons when the user clicks on them, etc.

But the .NET Framework is much more than just a bunch of extra code. It includes tools to reduce development time and additional APIs that programmers can use to easily interact with services such as the Windows Store. Instead of manually writing all the necessary code to support the Universal Windows Platform, you can use the .NET Framework:


There is only one drawback to developing applications using the .NET Framework - they cannot be run if .NET is not installed on your system.

NET Framework has two parts. The first part includes a set of pre-written code ( officially called SDK, Dev Packs or "Developer Packs"). The second part includes a program that can interpret .NET Framework code into commands for the operating system. This part, which is called " runtime"Allows you to run programs written using the .NET Framework.

In this respect, the .NET Framework is similar to Java - you need to download the Java Runtime Environment to use the applications written in it.

In short, why you need the Microsoft NET Framework: If you are a simple user who is not going to do programming, you only need the .NET Framework runtime.

How to install the .NET Framework

Most Windows computers already have the .NET Framework installed, but the version may be out of date. For example, Windows 8 and 8.1 comes with version 4.5.1, and Windows 10 comes with version 4.6, 4.6.1, or 4.6.2.

At the time of this writing, the latest version is .NET Framework 4.7. This is what we will install:


.NET Framework can be installed via Windows Update... But many people turn off Windows update, so this method would be preferable.

Before Installation - .NET Framework 4.7 can be installed on Windows 10, Windows 8.1 and Windows 7 SP1 on both 32-bit and 64-bit systems. Microsoft recommends that you have at least 2.5 GB of free space on your hard drive to ensure installation runs smoothly.

Microsoft offers two types of installers: web installer and offline installer. The web installer is less than 2MB and downloads all the necessary components during installation. Therefore, you will need a stable internet connection.

The standalone installer weighs about 60 MB and does not require internet access during installation.

Both installers contain the same NET Framework versions, but we prefer to use the offline installer. It is more reliable, and will always be at hand if you need to reinstall the .NET Framework. Once downloaded, the installation process should be straightforward - just follow the instructions that appear on the screen. And then you will quickly understand why you need NET Framework 4.

NET Framework 4.7 Web Installer

NET Framework 4.7 Offline Installer


Note that version 4.7 is an ongoing update from versions 4, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, and 4.6.2. Therefore, do not uninstall previous versions after installation. .NET Framework 3.5 SP1 and older are installed separately.

By default, the .NET Framework installs the English version no matter which installer you use. For localization, you need to download the appropriate language pack. Currently, language packs for version 4.7 are only available as offline installers.

Will I be able to write my modules (any and of any complexity) for my CMS on the framework. Surely more than one framework does not have the function of analyzing its own content (for subsequent promotion) according to the principle of search robots. Will the framework prevent me from creating such modules due to its limited functionality.

No. You don't quite understand what the frameworks are for. A framework is a base (foundation) for your application or site. Formally, a framework is a ready-made structure for more convenient development. It makes no sense to integrate anything on the framework into a ready-made clumsy CMS in pure php.
Will I be able to improve any module of the framework (for example, adding comments) to my needs without interfering with its updating (if a new version is released). Or will I have to rewrite everything with the release of a new version, as I have to do on a CMS like DLE.

There is no need to rewrite anything that has already been written.
For example, if you use only one of the major frameworks on the market (say, Laravel), you don't have to be afraid of compatibility. For example, if you started writing to 5.0, you can upgrade to 5.1 before losses, and when you upgrade to 5.2, you will need to change only two lines of code in one single file. When a global change is released in the documentation, an instruction for a painless transition is attached.
How much will I depend on the release of new versions? For example, I want to download now and then do anything with it without fear, as in the previous question, that they will find some kind of vulnerability and again have to update it and rewrite all my codes in hundreds of php files.

The vulnerability will not be found. For example, the same Laravel has already gone through several major releases, and it is being developed for the fifth year. Its protection is at the maximum level, and no major security bugs have been found since the release of the fifth version. And believe me - more than one person is struggling to find a bug in the laravel, because it is used on more than a dozen sites. Sites on it number in the thousands.
Will it be possible (except for the option that I will copy the site to LAN and for a year I will rewrite it from scratch to the framework) gradually, without disrupting the operation of the site, transfer my own CMS to the framework, given that they have dozens of modules, their own admin panels, etc. etc.

Anything is possible if desired. But the architecture of frameworks, and the same Laravel is such that after studying and understanding it, you will want to write everything from scratch. And, believe me, it will take you very little time (compared to the time you spent writing everything from scratch).
And finally, I chose, say, a framework. And the developer covered up its further development. Can I leave the framework and continue using it without rewriting all the files to the new framework again.

If you choose a large player (I recommend Laravel, again) - you don't have to think about supporting it. This is at least an open source project, hundreds of web developers are independently working on improving and supporting it.
And in which case you can also contribute by forking the project, making your own changes.

The framework consists of a virtual machine and many different integrated components. It also includes class libraries that are used to describe functions in machine code.

The framework does several things:
- makes it easier to work with complex technologies;
- ties together discrete objects or components into something more useful;
- Forces the command to implement the code in such a way that it facilitates sequential coding;
- allows you to make fewer mistakes and create more flexible applications;
- makes it easy to check and debug the program code because it is structured.

The framework provides an excellent database that you can use in your Windows and Linux programs. It creates a "work environment" that allows programs to run and function outside of existing constraints. It also provides user interface and data management.

Framework architecture

An architecture is a style of programming code that includes specific structural elements. This is implemented to provide a specific methodology for implementation into the program. The class documents provided in the Microsoft Foundation Classes (MFC) package are the building blocks of the architecture. Essentially, the architecture implements the relationships between objects. These relationships include heredity, encapsulation, etc.

The framework architecture has attributes that you can safely ignore or replace if you don't need them. This organization is very useful because it creates the ability to use reusable frameworks that provide some advanced functionality. But once you start using them, serious refactoring problems can arise in later stages of development.

Design patterns

The usage patterns of a particular architecture are also a methodology. Their use provides a special method of interaction. However, if you use behaviors, the entire application will adhere to this exact implementation. Basic design patterns are pretty primitive and very easy to remember. They do not have to be complex and based on the fact that components and objects interact with each other.

The Microsoft .net framework is a Windows OS integrated, consistent and comprehensive programming model. It is used to create high quality software with a superior interface, and is distinguished by the security and transparency of network connections.

The core of the platform is a multilingual programming environment called the Common Language Runtime (CLR). It is believed that the framework was developed as a response to the then popular Java platform from Sun.

Why install it?

When one of the applications or a game during installation requests the installation of the microsoft .net framework, not many agree, not understanding why it is needed. Some of the users do not install the bundled package because they already have one of the frameworks installed.

However, both are wrong. Be sure to install exactly the version (v4.0, 2.0, 3.5, 4.5) of microsoft .net framework that this or that application requires. Since it will only work stably on the platform on which it was developed, even if you have installed the latest version of the software package.

This relationship of applications to the platform is very simple to explain. This is done so that the developer is not tied to the operating system and the bitness of the user's processor. For example, if a program created on a platform version v4.0, 2.0, 3.5, 4.5 was launched on a PC, you need to install support (or implementation) in the form of software microsoft .net framework v4.0, 2.0, 3.5, 4.5 ...

Important ingredients

You need to know that the microsoft .net framework consists of two parts:

  • performer's environment;
  • plug-in library.

The main component can be called the Common Language Runtime (CLR). It can run the software part of ordinary applications or server-side, being an execution environment.

The second half is needed at least. The Framework Class Library (FCL) is a class library that contains enough elements to deal with:

  • databases;
  • networks;
  • interfaces;
  • files;
  • data input and output.

All this allows the developer to use ready-made classes to create programs, bypassing the low-level part.

Installing platform support

Microsoft .net framework installer is added to OS windows by default. The platform version v4.0, 2.0, 3.5, 4.5 depends on the operating system. But almost any of them can be installed as needed on your own, if your computer meets the requirements.

.Net platform requirements

As is the case with any applications, the .Net platform also has its own requirements for the normal operation of programs. The newer the version of microsoft.net (v4.0, 2.0, 3.5, 4.5), the more PC characteristics it requires.

However, applications developed on this platform are more sensitive to performance. That is, if you are using an old computer, then you will not install programs on it under windows 8, which means that you do not need the 4.5 platform either.

To install microsoft .net framework of any version (v4.0, 2.0, 3.5, 4.5) you will need:

  • operating system of the Windows family, starting with XP sp3 or server 2003 Sp2;
  • a computer with a processor from 1 GHz;
  • not less than 512 MB of RAM;
  • any version of the processor architecture starting from x86.

Software installation process

It is necessary to take into account the following fact: for installation you will need two programs, usually built into the operating system. If you are using XP without updates, then you need to download them from the official Microsoft website. The minimum versions you need are:

  • Browser version 5.

You can find out which version you have installed by looking at all the components. But before starting the installation, it is advisable to update all the system software. In order to do this, fulfill the following conditions:

  1. Open the control panel;
  2. Find "Windows Update";
  3. Check for important updates and install them.

You can download any version (v4.0, 2.0, 3.5, 4.5) of microsoft .net framework on the official website of Microsoft.

Some of the applications themselves offer the installation of the version (v4.0, 2.0, 3.5, 4.5) that they need. Adding one component may include several more, depending on the needs of the software, as well as the platform itself (for example, 3.0 and 2.0 are installed along with platform 3.5).

The installation itself is very simple and intuitive. If during the installation of the component a failure occurs, or the system displays an error message, you need to disable or remove all versions (v4.0, 2.0, 3.5, 4.5) microsoft.net

Removing and disabling the Framework

Why remove the framework? If you have a problem after updating one of the windows components, you can follow these steps:

  1. Try to disable the last installed item;
  2. Remove it using standard means;
  3. Use the special utility net framework cleanup tool.

Restoring work using standard Windows tools

To disable the component, you need to go to the "Control Panel", "Enabling and disabling components." Find the version (v4.0, 2.0, 3.5, 4.5) that was installed last and uncheck (deactivate), then click the "OK" button.

If the problem did not occur during installation, but when windows started, then most likely there was a failure in the system. If the error is critical and does not allow you to boot, then you need to solve the problem in safe mode. In order to get rid of the crashes, uninstall the framework programs through the standard Add or Remove Programs.

When uninstalling, start with the highest installed version and end with the lowest. That is, uninstall v4.0 - 3.5 - 3.0 - 2.0 - 1.1 in turn. After that, you need to download the versions you need from the official website.

Using additional software

Due to the many versions, failures are quite varied. The standard windows tools do not always help to completely remove the software, leaving unnecessary registry entries, settings files and system libraries.

This can cause even more serious problems later on. Therefore, a special uninstallation program was created - the net framework cleanup tool.

The utility is very simple. After launching it, you need to click the "Cleanup Now" button. The net framework cleanup tool works in such a way that it completely removes all traces of the component's activity, including:

  • software;
  • related updates;
  • registry entries;
  • settings files;
  • system libraries.

Thanks to this program, you can remove unnecessary old components without any problems and consequences, as well as get rid of operating system errors in case of incorrect installation or component failure.

Top related articles