Recently i have created a .msi package file for my website to publish it.
After executing this .msi file i am able to publish my website now.
when i open it from the desktop shortcut it will open the homepage.aspx.
But when i enter loginid and password and click on submit button then Google chrome says that:
Oops! Google Chrome could not find homepage.aspx
and Firefox says that..
Oops! This page appears broken. DNS Error - Server cannot be found.
I found one thing when the homepage loads first time the url looks like:
http://MyWebsiteName:8081/
and after login the url looks like in google chrome as:
http://homepage.aspx/ but it should be http://MyWebsiteName:8081/HomePage.aspx to work fine.
and when i open it in firefox it after login it looks like:
http://iobit.mybrowserbar.com/cgi/errors.cgi?q=http://homepage.aspx/%3fau%3dmsg&type=dns&ISN=3981F0D571D94B14B0BAE273FAB84748&ccv=133&cnid=685749&cco=US&ct=3&sc=804b001e
With error mentioned above...
It sounds like your login page or routine has an invalid redirect. Do you see anything in the code-behind like Response.Redirect() or Server.Transfer()? If so, could you post your code?
Response.Redirect("Homapage.aspx") should work instead. This function does not recognize "~" the way most controls do. If Homepage.aspx is in a different directory than the login page, you can use ../ to go down a level.
rajputpankaj
Member
62 Points
47 Posts
Error:Oops! Google Chrome could not find homepage.aspx
Apr 26, 2011 04:22 PM|LINK
Hi all,
Recently i have created a .msi package file for my website to publish it.
After executing this .msi file i am able to publish my website now.
when i open it from the desktop shortcut it will open the homepage.aspx.
But when i enter loginid and password and click on submit button then Google chrome says that:
Oops! Google Chrome could not find homepage.aspx
and Firefox says that..
Oops! This page appears broken. DNS Error - Server cannot be found.
I found one thing when the homepage loads first time the url looks like:
http://MyWebsiteName:8081/
and after login the url looks like in google chrome as:
http://homepage.aspx/ but it should be http://MyWebsiteName:8081/HomePage.aspx to work fine.
and when i open it in firefox it after login it looks like:
http://iobit.mybrowserbar.com/cgi/errors.cgi?q=http://homepage.aspx/%3fau%3dmsg&type=dns&ISN=3981F0D571D94B14B0BAE273FAB84748&ccv=133&cnid=685749&cco=US&ct=3&sc=804b001e
With error mentioned above...
What is going wrong .
Can anyone suggest me...
Thanks & Regards
(Dotnetspider-Mentor,MVM)
(Life is a continuous process of learning)
AZMatt
Star
10620 Points
1892 Posts
Re: Error:Oops! Google Chrome could not find homepage.aspx
Apr 26, 2011 09:30 PM|LINK
It sounds like your login page or routine has an invalid redirect. Do you see anything in the code-behind like Response.Redirect() or Server.Transfer()? If so, could you post your code?
Matt
arifcse12
Contributor
4600 Points
755 Posts
Re: Error:Oops! Google Chrome could not find homepage.aspx
Apr 27, 2011 04:33 AM|LINK
Hi,
Please check if login works by publishing in local IIS ? I think this might be a problem with .msi creation.
Thanks.
Please do not forget to click 'Mark as Answer' if this answer helps.
rajputpankaj
Member
62 Points
47 Posts
Re: Error:Oops! Google Chrome could not find homepage.aspx
Apr 27, 2011 04:49 AM|LINK
Hi,
I am using the below code on sign in time:
if (UserInside == 4)
{
if (chbxrememberme.Checked)
{
Response.Cookies.Add(new HttpCookie("UserName", txtusername.Text));
Response.Cookies["UserName"].Expires = DateTime.Now.AddYears(100);
Response.Cookies.Add(new HttpCookie("CompanyCode", txtownercompanyserial.Text));
Response.Cookies["CompanyCode"].Expires = DateTime.Now.AddYears(100);
}
// Add Printerport into session and update active_users.
if (Session["CompanyID"] != null)
{
var com = context.Companies.Where(cm => cm.CompanyID == (int)Session["CompanyID"]).FirstOrDefault();
if (com.Active_Users == null)
{
com.Active_Users = 0;
}
com.Active_Users += 1;
context.InOrUp_Company(com.CompanyID,
com.Active, com.CompanyName, com.Logo,
com.Notes, com.MainCompany, com.Supplier, com.Customer,
com.Transport, com.Farm, com.Phone, com.Fax,
com.CompanyContact, com.ContactEmail, com.CompanyURL, com.EnaPrefix, com.SubsidiaryOf, com.VersionID, com.Expiry,
com.UserData1, com.UserData2, com.UserData3, com.UserData4,
com.UserData5, com.OwnerCompanyID, com.CountryID, com.CompanyCode, com.SystemSignInMessage,
com.EmployeeId, com.VerifiedDate, com.Users, com.EmailAuthenticated, com.Resetcode, com.Consultant, com.BusinessTypeID, com.CompanyName,
com.EmployeeId, com.Verify_Email_IP, com.Company_Creation_Date, com.Active_Users);
//Add session field Printor Port.
HttpContext.Current.Session.Add("PrinterPort", com.Users);
// Concurrent user detection check per companyID.
Concurrent_user_Detection();
}
Response.Redirect("~/HomePage.aspx");
}
and following on signout time:
if (Session["CompanyID"] != null)
{
ProducpakDataContext context = new ProducpakDataContext();
var com = context.Companies.Where(cm => cm.CompanyID == (int)Session["CompanyID"]).FirstOrDefault();
if (com.Active_Users == null)
{
com.Active_Users = 0;
}
com.Active_Users -= 1;
context.InOrUp_Company(com.CompanyID,
com.Active, com.CompanyName, com.Logo,
com.Notes, com.MainCompany, com.Supplier, com.Customer,
com.Transport, com.Farm, com.Phone, com.Fax,
com.CompanyContact, com.ContactEmail, com.CompanyURL, com.EnaPrefix, com.SubsidiaryOf, com.VersionID, com.Expiry,
com.UserData1, com.UserData2, com.UserData3, com.UserData4,
com.UserData5, com.OwnerCompanyID, com.CountryID, com.CompanyCode, com.SystemSignInMessage,
com.EmployeeId, com.VerifiedDate, com.Users, com.EmailAuthenticated, com.Resetcode, com.Consultant, com.BusinessTypeID, com.CompanyName,
com.EmployeeId, com.Verify_Email_IP, com.Company_Creation_Date, com.Active_Users);
}
if (!string.IsNullOrEmpty(Convert.ToString(Session["CompanyID"])))
{
Session["CompanyID"] = null;
}
if (!string.IsNullOrEmpty(Convert.ToString(Session["EmployeeID"])))
{
Session["EmployeeID"] = null;
}
Response.Redirect("~/HomePage.aspx");
}
I am unable to track the issue cause with signout and signnin.
even when i publish it in local iis server then also after login page can not displaying error comes....
AZMatt
Star
10620 Points
1892 Posts
Re: Error:Oops! Google Chrome could not find homepage.aspx
Apr 27, 2011 01:04 PM|LINK
Response.Redirect("Homapage.aspx") should work instead. This function does not recognize "~" the way most controls do. If Homepage.aspx is in a different directory than the login page, you can use ../ to go down a level.
Matt