Click here to Skip to main content
15,881,248 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 7:01
Member 1299665513-Jan-21 7:01 
GeneralRe: Problem with jQuery and autocomplete Pin
Richard Deeming13-Jan-21 22:14
mveRichard Deeming13-Jan-21 22:14 
QuestionI have created housie game page, but it is loading slow. Pin
Member 150388166-Jan-21 0:04
Member 150388166-Jan-21 0:04 
AnswerRe: I have created housie game page, but it is loading slow. Pin
thatraja8-Jan-21 5:12
professionalthatraja8-Jan-21 5:12 
Questionhow to code following vb code to asp.net code Pin
Asanka Prabath1-Jan-21 19:07
Asanka Prabath1-Jan-21 19:07 
AnswerRe: how to code following vb code to asp.net code Pin
Mycroft Holmes2-Jan-21 20:03
professionalMycroft Holmes2-Jan-21 20:03 
AnswerRe: how to code following vb code to asp.net code Pin
Richard Deeming4-Jan-21 23:04
mveRichard Deeming4-Jan-21 23:04 
QuestionUnable to read from web.config Pin
samflex11-Dec-20 7:35
samflex11-Dec-20 7:35 
Sorry for another thread.

I have the following that is supposed to read from web.config file.

public string ReadConfig(string ValueToGet)
{
    System.Configuration.AppSettingsSection section = (System.Configuration.AppSettingsSection)config.GetSection("appSettings");
    return section.Settings[ValueToGet].Value;
}

// get the report URL
string 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.

Any idea how to fix this?

Thanks again in advance
AnswerRe: Unable to read from web.config Pin
Richard MacCutchan11-Dec-20 7:42
mveRichard MacCutchan11-Dec-20 7:42 
GeneralRe: Unable to read from web.config Pin
samflex11-Dec-20 9:02
samflex11-Dec-20 9:02 
GeneralRe: Unable to read from web.config Pin
Richard MacCutchan11-Dec-20 22:20
mveRichard MacCutchan11-Dec-20 22:20 
GeneralRe: Unable to read from web.config Pin
samflex12-Dec-20 4:16
samflex12-Dec-20 4:16 
QuestionServer not recognizing AD info (SOLVED) Pin
samflex10-Dec-20 10:42
samflex10-Dec-20 10:42 
AnswerRe: Server not recognizing AD info Pin
Richard Deeming11-Dec-20 0:25
mveRichard Deeming11-Dec-20 0:25 
GeneralRe: Server not recognizing AD info Pin
samflex11-Dec-20 3:20
samflex11-Dec-20 3:20 
GeneralRe: Server not recognizing AD info Pin
Richard Deeming11-Dec-20 3:29
mveRichard Deeming11-Dec-20 3:29 
GeneralRe: Server not recognizing AD info Pin
samflex11-Dec-20 7:12
samflex11-Dec-20 7:12 
QuestionSSL Certificate problem with Local IIS, ADFS and Visual Studio Pin
Super Lloyd9-Dec-20 15:54
Super Lloyd9-Dec-20 15:54 
Questionpass the id to the modal Pin
Member 149089649-Nov-20 8:42
Member 149089649-Nov-20 8:42 
AnswerRe: pass the id to the modal Pin
Richard Deeming9-Nov-20 22:02
mveRichard Deeming9-Nov-20 22:02 
QuestionASP.NET Code with Azure AD Authentication Not working in Chrome and Edge Pin
Member 111541884-Nov-20 4:51
Member 111541884-Nov-20 4:51 
AnswerRe: ASP.NET Code with Azure AD Authentication Not working in Chrome and Edge Pin
Richard MacCutchan4-Nov-20 21:46
mveRichard MacCutchan4-Nov-20 21:46 
QuestionLogin using windows authentication using asp.net C# Pin
Member 1497830828-Oct-20 22:13
Member 1497830828-Oct-20 22:13 
AnswerRe: Login using windows authentication using asp.net C# Pin
Richard Deeming28-Oct-20 22:57
mveRichard Deeming28-Oct-20 22:57 
QuestionAuto enter key press Pin
Member 1216078023-Oct-20 8:22
Member 1216078023-Oct-20 8:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.