0

I have migrated from aspx page mvc to mvc razor.

I am using form authentication which is authenticated from the parent domain. Forms Authentication across Sub-Domains

<forms name=".auth" 
             loginUrl="http://external.com/Login/Login_form.aspx" 
             defaultUrl="~/Home/Index"
             domain="external.com" protection="All" timeout="30" path="/" 
             requireSSL="false" slidingExpiration="true" cookieless="externalProfile"/>

After authenticated the user, I am redirecting the user. I have cached the application error and checked, the redirection doesnot work.

It always redirecting to the default.aspx which is not there in my project and "The file '/Views/Shared/Site.Master' does not exist."

Jeeva J
  • 3,173
  • 10
  • 38
  • 85
  • I think your provided info still incomplete. Can you show ASPX page markup & other supporting configurations? Try arranging `RazorViewEngine` before `WebFormViewEngine` in `ViewEngines.Engines`. – Tetsuya Yamamoto Aug 10 '17 at 03:11
  • ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new RazorViewEngine()); I have added this to clear the webformviewengine. but still no luck – Jeeva J Aug 10 '17 at 03:44

0 Answers0