I have been trying to post my code since yesterday. I keep getting this error:
Access Denied
You don't have permission to access "http://docs.microsoft.com/answers/questions/ask.html" on this server.
Reference #18.358d1bb8.1637296202.73e8545
All, I am trying to show my gridview code and the forum is not letting me put my code.
can you please advise what should I do.
As soon as I tried to log in and put my userName and password. Both my password and userName are accepted and then I see the page saying SSL error. The networking team gave me two URL's that has been configured in the azure portal:
http://localhost:44347/login/oauth2/code/
https://localhost:44347/login/oauth2/code/
Unfortunately, as a developer, I am not allowed to see the settings in the Azure portal, but there is a separate java application running on my computer which is created by someone else, and that java application successfully connects to the Azure portal. The only difference is that the Java application is a using Tenant, client Id, and client secret ID. In my application, I am not using client secret ID. I am not sure where to use the client secret ID. Please let me know if you need any additional details.
The URL when the application initially runs is this:
https://localhost:44368/
Below is the screenshot of the first page:

The second and third pages ask for sign in and password. The URL for that is below followed by the tenant Id and the final page URL is
https://localhost:44347/login/oauth2/code/
below is the screenshot:

sometimes, I get SSL error and sometimes, I get ERR_Connection_Refused.
I can get help from my networking team, but I need to ask them a specific question.
Please let me know if you need more information.
https://login.microsoftonline.com/
Thank you.
Hi BruceZhang,
Thanks for the detailed explanation. The issue, I am having is I am connecting to the Azure active directory and our Azure reply URL is configured to Port #5000. When I changed the Http in applicationconfig file to 5000 and changed the web properties URL to 5000 and created the virtual directory, I started getting error ERR_SSL_PROTOCOL_ERROR. Not sure, why am I getting this error, but I am thinking, it could be realted to a different port # in https, but now that you explained to me that https port # can never be changed then do you have any suggestions to get rid of ERR_SSL_PROTOCOL_ERROR. I configured my application to connect to the azure active directory based on this Microsoft article:
This is how my web.config looks like:
<appSettings>
<add key="ClientId" value="XXXX" />
<add key="Tenant" value="XXXXXX" />
<add key="Authority" value="https://login.microsoftonline.com/{0}/v2.0" />
<add key="redirectUri" value="https://localhost:5000/login/oauth2/code/" />
</appSettings>
any help will be highly appreciated
Hi Yijing Sun,
After uploading the file, I am unable to show the gridview because I don't know how to bind the gridview with the data. In my case, there is no data coming from the database other than the drop down box data inside the gridview. I want to show the recent file/files uploaded by the user, a datepicker control so that the user can pick up any date, a drop down list inside the gridview. I want to show something like this:
In the above screenshot, "Type" column is the drop-down box and it has the data coming from the database, other than that, all other fields are dynamically showing the data as soon as the file is uploaded.
Trash icon is there and it will remove the row if clicked. "Name" column is showing the files that I recently uploaded. For each file, that I uploaded, there are different types and I am letting the user choose "Drivers license" as the first type and "Wedding certificate" as the second type. "Record dt" and "destruction dt" is a date picker control and I want to let users choose the date that they want. I want to read all these values in the code behind and save those in the database when the commit button is clicked.
Please let me know if you need any additional information. The screenshot that I posted above is basically what I want to do once the file is uploaded.
Your help will be greatly appreciated.