• Register
0 votes
58 views

Problem :

I have my newly created website. First time I was able to succesfully login.

The default address:

www.abc.com  

I typed above address on browser and it redirected me to my login page:

www.abc.com/pages/landingpage.aspx

When I entered my login credential and tried to log into the site.

After some time I just opened new tab and tried to enter my website address

www.abc.com

But now it gives me below error:

403 - Forbidden: Access is denied.
 You do not have permission to view this directory or page using 
 the credentials that you supplied.

So my whole story is, if I am not logged on to my site then I can open my site number of tabs and the browsers but as soon as I am logged in to my site, I am getting the above error.

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had the same problem recently. It turned out that I haven’t specify the default page and I didn't had any page that was named after my default page convention (default.html, defult.aspx etc). So the ASP.NET didnt allow a user to browse my directory and shows me a error message. To fix it, I just added one default page in my Web.Config as shown below and it worked.

<system.webServer>
    <defaultDocument>
        <files>
            <add value="myDefault.aspx"/>
        </files>
    </defaultDocument>
</system.webServer>

 

9 7 4
38,600 points

Related questions

0 votes
1 answer 69 views
69 views
Problem : Hi I am trying to develop the web application its working fine but since yesterday I had the problem when I try to click the link it gives me below error The length of the query string for this request exceeds the configured maxQueryStringLength value. ... to auto generate I am trying to use asp dotnet4 Ajax control toolkit and also using the update panel. Any suggestions on this ?
asked Feb 2, 2020 jwilliam 3.9k points
0 votes
2 answers 197 views
197 views
Problem : I am new to ASP MVC and I am facing one error. I am trying to access the Model's Data from the Controller section and I am getting following error when I try to create a Movie as a part of the exercise, whenever I try to click on the link "Create New" I ... am using the Visual Studio 2012 RC I am not sure if this is the root cause of my issue.Please let me know the solution for my issue.
asked Dec 3, 2019 alecxe 7.5k points
0 votes
1 answer 49 views
49 views
Problem : I came across a problem as follows if you set the autopostback property of a control to true, the page is posted back to the server Any solution on this ?
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 16 views
16 views
How can you find the mime type of a file based on the file signature, not the extension in .Net? I want a simple way to get a mime type where the file extension is incorrect or not given, something similar?
asked Aug 29, 2020 Aliza313 720 points
0 votes
1 answer 849 views
849 views
Problem : I have my facebook messenger application. It has the webhook subscribed to the page events. It used to work fine for me until few days ago, when a webhook was unsubscribed from the page and when I am trying to subscribe it again then it tells me: "Insufficient ... action." I am the owner and admin on both of the FB page and messenger app. Does somebody know what could be a problem?
asked Feb 4, 2020 jwilliam 3.9k points
0 votes
1 answer 58 views
58 views
Problem : I am very new to ASP.Net. I have created my first ASP.Net application which impersonates the user in order to create the AD group, and after that it launches the powershell process as the user saperately. But because of some reason the group ... I would rather not compromise with the security policy with the server ideally, and this application will be used by around 100+ users.
asked Dec 5, 2019 alecxe 7.5k points
0 votes
1 answer 21 views
21 views
Problem: I am facing below strange looking error when I tried to add a script Manager to a password strength of AJAX toolkit. "Only one instance of a ScriptManager can be added to the page." I had added the password strength alongside the ... "RequiredFieldValidator10" ControlToValidate="Password"    ErrorMessage="Password is required." />   </ContentTemplate> </asp:UpdatePanel> </td> </tr>
asked Aug 1, 2020 Raphael Pacheco 4.9k points
1 vote
2 answers 157 views
157 views
Problem : I have very recently purchased my new iPhone. Now want to sync my iphone with the itunes. But I keep on getting below error : Itunes could not connect to this iphone. you do not have permission. I have also tried to read some of the solutions on it of ... I have spent lot of time in fixing above error but unable to fix it as of now so looking for expert help in fixing above error.
asked Apr 21, 2020 stewart 4k points
0 votes
1 answer 112 views
112 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28, 2020 jwilliam 3.9k points