New ASP.NET Website Using DotNetNuke

Currently, DNN 5.2.x is used, and we use only 1 portal on the site. We need to make a mobile version of the portal and eliminate most of the additional DNN material, since information will only be displayed. Therefore, we decided to create a separate ASP.NET Web Forms website and use DNN providers (membership, roles, etc.) to login. However, we are having problems. In particular, this ("an unknown exception is trying to write to the log"). We moved most of the DNN Global.asax files (i.e. SimpleContainer) to the new website and added the necessary sections and links to web.config, however we get this error when the user logs in. We copied the same website. config is the machine key to the new website.Connection strings also exist (application settings and connection string strings are called SiteSqlServer).

So my question is: has anyone created a new site around DNN without using DNN, except for membership? that is, there are no modules, no skins, etc. Just confirm the user and get the roles.

If you need to run DNN 5.2.x (or later) to register a user and return roles, can you post your steps?

+3
source share
4 answers

, . DNN . , DNN. DLL DNN, "bootup" global.asax. UserInfo . UserInfo, DNN DNN, . , . , , ..

0

DNN ASP.NET. , , - , ASP.NET, DNN.

, , , , , .

0

, dnn , (Users, Roles, UserRoles, Profile ..). aspnet_Membership aspnet_Users Username.

0

, .

In addition to the above, I also suggest another smart way to do this. Since you are considering a mobile site, why not try and discover the browser using Request.Browser and create a separate skin for dnn, which is smaller. We can easily switch skins dynamically for service requests.

Hope this helps. If you have any further questions, I will be happy to help. Just write me and email, and I will try to help you get closer to you, so you get started.

Luck

0
source

Source: https://habr.com/ru/post/1795327/


All Articles