I have created housie game page, but it is loading slow. Can some one suggest is it coding issue or network issue.
If i run code locally on my pc, it runs fast, but once uploaded on site winmilestone com, it becomes slow.
page winmilestone com / housie
Host server isin usa location, does the site becomes slow if accessed from different countries.
for example, if I click/mark number in housie game, it takes time to refresh but when i test it in my local server, housie game is fast.
how can i test my website speed access across different countries, to check if site is fast in usa and slow in other countries.
Dim found As Boolean = False
cm = New SqlCommand("select * from tblbill where SalesOrderNo like '" & txtInvoiceFor.Text & "'", cn)
dr = cm.ExecuteReader
If dr.HasRows Then found = True Else found = False
If found = True Then
cm = New SqlCommand("update tblbill set INno = @INno where SalesOrderNo=@SalesOrderNo", cn)
I have the following that is supposed to read from web.config file.
publicstring ReadConfig(string ValueToGet)
System.Configuration.AppSettingsSection section = (System.Configuration.AppSettingsSection)config.GetSection("appSettings");
// get the report URLstring URL = Master.ReadConfig("DailyReport");
The application runs perfectly on my local machine but again when run from the server, it gives the following error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Which line of code raised the error? The actual problem is usually not to difficult to resolve once you know which reference is the problem. You may wish to edit your question and show the actual contents of the config file. Are you sure all refernces are correctlym spelled?
Is the user actually authenticating to your application? You need to make sure anonymous authentication is turned off, and Kerberos/Windows authentication is turned on.
Depending on your group policy settings, Internet Explorer, Edge, and Chrome should automatically sign the user in to any site which is part of IE's "local intranet" zone. Firefox will need additional configuration in the about:config page:
network.automatic-ntlm-auth.allow-proxies = True
network.negotiate-auth.allow-proxies = True
network.automatic-ntlm-auth.trusted-uris = comma-separated list of host names which should use integrated authentication
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I just turned off Anonymous Authentication and enabled Windows Authentication and now it works.
The only issue (a minor one) is that unlike running on my local machine where the application automatically authenticates my account and allows me in, the application is asking me to sign in using my Windows account.
Once this is done, I am automatically in and it works now.
When this app runs on our production server, users are not explicitly asked to sign in. Their identities are automatically recognized and they are in without having to sing in.
Oh well, this is our test site. I guess we have to deal with having to sign in all the time.
UPDATE: I set .Net Rules in IIS as well to deny anonymous users and now it is no longer challenging for authentication.
Many thanks. You have never failed me. Thank you sir.
In our web solution we have a WebAPI solution, a WebApplication and a local ADFS server.
ADFS server need be setup with exact URL of web app....
For simplicity sake we decided to use (local) IIS hosting and debugging, as in "<a href="http://localhost/myAPI">http://localhost/myAPI</a>" and "https://localhost/myWebApp"
The problem starts when.. and HTTPS app need a certificate...
So I got to:
IIS Management Studio > Default Web Site > Bindings...
And add the ISS Express Development Certificate.
Unfortunately, it feels like Visual Studio is deleting that setting every second time I press F5 / try to debug. And I continuously have to open IIS Management Console and setup the HTTPS binding again and again and again.
we are integration our application with Azure AD.
After integration application is not working in Chrome and Edge browser, but works in IE.
In Chrome and Edge its navigating to login and after successful login getting redited to Internet Information Services (Windows Server) Page.
During debug, found below line gives Object Reference error in Edge and Chrome browser, whereas giving value in IE.