segunda-feira, 29 de agosto de 2016

iMIS - Force HTTP

iMIS - Force HTTPS

To force HTTP in all the pages, even if the user change the url, it will back to use HTTP in the page.


  
      
        
        
          
          
            
          
          
        
      
    

terça-feira, 31 de maio de 2016

iMIS - C# - Creating an user credential



Here is a piece of code to create an user credential and update the Asp_membership table.


objContact.CreateUserSecurity("username01", "123456");
objContact.UserSecurity.ExpiresOn = DateTime.Parse("01/01/2050");
objContact.UserSecurity.Save();
objContact.Save();
//Don't forge to update the aspnet_membership table. - Otherwise the forget password doesn't work.

MembershipUser objMembership = Membership.GetUser(sEmail);
objMembership.Email = sEmail;
Membership.UpdateUser(objMembership);

iMIS Template - Advice


I will put here all the stuff that I think is important to remember when you create a new iMIS Template and App_Theme.


Importing fonts on iMIS.

Create a CSS file just for fonts that will be loaded as the first css.

10 - Fonts.css

@import url(https://fonts.googleapis.com/css?family=Lato);


20 - Lodon_Responsive.css


If you don't do that, if you add the font in the master page, it won't load when you open a popup such as Register Someone.



sexta-feira, 13 de maio de 2016

iMIS - Error to Edit a Content Page



I was getting the error

Exception information: 
Exception type: ArgumentOutOfRangeException 
Exception message: 
Parameter name: contentItemKey Actual value was 00000000-0000-0000-0000-000000000000. at Asi.Business.ContentManagement.ContentItemCollection.get_Item(Guid contentItemKey) at AsiCommon_Controls_ContentManagement_WebPartLayout.WebPartManager_WebPartMoved(Object sender, WebPartEventArgs e) at AsiCommon_Controls_ContentManagement_WebPartLayout.Page_Load(Object sender, EventArgs e)



This was because the Layout.

If you go to Rise >> Manage Layout
Check others layout and see if those are the same style that you have in your page.

In my case I had tables(td and tr) instead of divs. I put div and it works.

sexta-feira, 22 de abril de 2016

iMIS - Change Password Message


iMIS - Password Message


Change the message "The password must be at least {0} characters long."


20.1.1.4
Rise >> System Settings >> Password requirements text. (PasswordRequirementsText)

20.2
Settings > Contacts > Account Management



quinta-feira, 21 de janeiro de 2016

iMIS - Certificate - HTTPS



Configure IIS

I was getting the error below when I tried to access the Cart Page or any page using HTTPs on iMIS.

This page can’t be displayed or This site can't be reached.



In order to work, I follow this tutorial below, in my case I was working on the dev environment then I created a self certificate.

Source: http://blogs.msdn.com/b/rakkimk/archive/2007/05/25/iis-7-how-to-configure-a-website-for-https.aspx

"

Getting a Web Server Certificate


To get a web server certificate, in IIS 6 manager, you will go into website’s properties àDirectory Security and you will bring the Server Certificate wizard by clicking on the Server Certificate button under Secure communications. But, here in IIS 7, you can select this in a global place in the IIS 7 manager. Follow the below steps for the same:


1. Open the IIS 7 manager.


2. Select the computer name under Connections (in the left hand side).


3. Select the Features View and double click on the “Server Certificates” feature.


4. You will find options to create a Certificate request, Complete Certificate Request, Create Domain Certificate and Create Self-Signed Certificate under the Actionspane (in the right hand side).


5. For this example, lets create a self signed certificate – Click on “Create Self-Signed Certificate…”.


6. Specify a friendly name for the certificate and click on OK.


7. Our self-signed certificate will be created and ready to use.


Configuring the SSL port for a website


In IIS 6 manager, you will go into website’s properties and give the port number in the SSL port textbox. But, here in IIS 7, it is little different. Follow the below steps for the same:


1. Open the IIS 7 manager.

2. Select the website under Connections (in the left hand side).

3. Click on Bindings under the Actions pane (in the right hand side).

4. Now, click on Add.

5. Select the type as https and enter the Port – default will be 443.

6. You cannot click on the OK button till you select the SSL certificate for the site.

7. If you haven’t installed any server certificate, you won’t see any certificate listed in the drop down box. To get a server certificate, please follow the above steps under “Getting a Web Server certificate”.

8. Select the certificate and click on OK.


Now, your website is configured for SSL and it will be accessible via https. But, you may see some certificate related errors since this is a self-signed certificate."




After the Tutorial above, you can add the Certificate on iMIS.