Unable to open the landing page on server - asp.net

I am using asp.net 3.5.
My Hosting provider has given me a folder to upload my publish application, now when I am entering www.example.com, I am not getting my homepage, but when I am running the same application on my local I am getting home page.
Please let me know what I have to modify so that when usertype www.example.com it will open like www.example.com/homepage.aspx
Please help.
Thanks in advance

The standard default page name for ASP.Net is Default.aspx, not homepage.aspx.
Rename the landing page to Default.aspx
Or, create a Default.aspx page and have it do a redirect homepage.aspx
Or, see if your hosting provider will configure your site to serve up homepage.aspx as the default page.

Could it be a domain name issue?
Locally you probably use http://localhost/homepage.aspx?
Has the domain name "www.mysite.com" been configured/activated for you by your provider?

Related

Classic ASP GoDaddy Plesk How to bind my domain name with login.asp

I do not know how to launch my website at GoDaddy using Plesk. I have uploaded my files to all root directory. At IIS Settings,I have added login.asp to the default documents and move up the order.
Now when I click Preview
I get the following site and Default.aspx loads
If I add login.asp at the back of the URL, my login.asp page loads Ignore the error
But if I click on Open at Plesk, I get error
Now how to I bind www.mydomain.com to login.asp?
Called the support and they will fix it.

browsing an application's default page redirects to localhost/default.aspx and gives 404 error

There is a login page on my app, once I login, it should redirect to Default.aspx:
On VS local setup, the URL for redirect is like this-
"http://mydomain.com/testApp/account/Login.aspx?ReturnUrl=/Default.aspx"
which redirects to "http://mydomain.com/testApp/Default.aspx"
Now I have published an application on IIS7, and I am able to browse it directly.
But when I login, the redirect page is always coming as :
mydomain.com/Default.aspx instead of mydomain.com/testApp/Default.aspx.
I did try setting default page as testApp/Default.aspx, but this does not help.
Do I need to change the querystring for running on IIS?
If I run the app directly and type mydomain.com/testApp/Default.aspx, it works fine.
Any pointers?
Note: Please replace mydomain.com with locahost.
I figured the issue. The relative path in Query string for redirect should have ~ to access root folder after deployment on IIS.

How to block access to directory listing and certain pages in asp.net?

I have several issues with how I am configuring my web.config due to my inexperience.
I want to set a page, login.aspx, as my default page. If the user logs in successfully, he will be redirected to a page in a protected folder /Protect/Edit.aspx . All users can still access a page in root folder named Show.aspx, will be redirected to login.aspx if they try to click or write the path to Edit.aspx, and I am unsure on how to do this.
My other problem is that if I write just localhost it shows me the directory listing, and I want to avoid this, but setting
still gives me the directory listing. What am I doing wrong?
You need to implement forms authentification for your app. Here is a tutorial
Seems like you don't have a default.aspx page, so IIS couldn't find any document to load first. You can either configure IIS to use Show.aspx as a default page, or just add default .aspx.

How to set default page of ASP.NET website

I need some help, I have purchased a domain and I am using visual studio to publish the website via FTP. It publishes successfully but when I go into the website I get the Directory Listing Denied error, and I am assuming that this is due to the fact that there is no home page because when I go the address and append /Page.aspx to the address it works fine.
Is there any way that I could set the default page for the website I am publishing to point to the default page?
Please help.
Thanks in advance.
Easy answer: rename your default page to Default.aspx.
Or, if you have access to IIS configuration settings, you can specify the default documents.
YOU need to spesify what page you want to use as your default based on the iis Default Document
You should have access to a ISP control panel where you can specify the default page.
They are usually the same pages in most ISPs:
Default.aspx
Index.aspx

how to view the site after deploying it

This might be a really stupid question and make you guys laugh. I've deployed my whole website using the copy website tool to my FTP server, but then how do I go and visit the site that I just deployed?
The domain name is: H204716.dreamsparkhosting.com however when I navigate there through my browser it says
403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.
What is the file name of your default page? Its possible that if it's odd enough (ie, not home.html or default.aspx or index.html etc.) that the site doesn't know what page to load.
Have you tried
http://H204716.dreamsparkhosting.com/myDefaultPageName.html?
You may also want to log into your DreamHost account and explicitly set the default page for your website. That way your users can just type in http://yourdomain.com/ as opposed to ...yourdomain.com/i-know-the-defaultpagename.aspx

Resources