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

ASP.NET

 
GeneralRe: GridView Not Refreshing after search function Executing. Pin
20212a27-Jan-21 1:17
20212a27-Jan-21 1:17 
GeneralHow to distribute the processing load of one system on several systems؟ Pin
arminizadiankalantary24-Jan-21 20:18
arminizadiankalantary24-Jan-21 20:18 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Richard Deeming24-Jan-21 20:54
mveRichard Deeming24-Jan-21 20:54 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
arminizadiankalantary24-Jan-21 22:33
arminizadiankalantary24-Jan-21 22:33 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Richard Deeming24-Jan-21 22:39
mveRichard Deeming24-Jan-21 22:39 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
arminizadiankalantary24-Jan-21 23:38
arminizadiankalantary24-Jan-21 23:38 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Richard Deeming24-Jan-21 23:45
mveRichard Deeming24-Jan-21 23:45 
GeneralRe: How to distribute the processing load of one system on several systems؟ Pin
Nelek25-Jan-21 3:00
protectorNelek25-Jan-21 3:00 
QuestionProblem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 4:35
Member 1299665513-Jan-21 4:35 
AnswerRe: Problem with jQuery and autocomplete Pin
Richard Deeming13-Jan-21 4:47
mveRichard Deeming13-Jan-21 4:47 
GeneralRe: Problem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 4:56
Member 1299665513-Jan-21 4:56 
GeneralRe: Problem with jQuery and autocomplete Pin
Richard Deeming13-Jan-21 5:09
mveRichard Deeming13-Jan-21 5:09 
GeneralRe: Problem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 5:23
Member 1299665513-Jan-21 5:23 
GeneralRe: Problem with jQuery and autocomplete Pin
Richard Deeming13-Jan-21 6:20
mveRichard Deeming13-Jan-21 6:20 
GeneralRe: Problem with jQuery and autocomplete Pin
Member 1299665513-Jan-21 6:21
Member 1299665513-Jan-21 6:21 
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 
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 
Richard, thanks for your response.

This is the ReadConfig () method:

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


The first error is on this line:

return section.Settings[ValueToGet].Value;


Then ReadConfig tries to call the report with this:

// get the report URL
string URL = Master.ReadConfig("DailyReport");


This is the line that generated the second error.

Then this is the web.config content that Master.ReadConfig("DailyReport"); is trying to call:

<add key="DailyReport" value="http://servername/ReportServer?/Reports/DailyReport"/>


I have had similar issues with ReadConfig() function which I was able to resolve.

For instance, This line was generating exact same error:
appVersion.Text = ReadConfig("AppVersion");


and I was able to resolve it with this:
WebConfigurationManager.AppSettings["AppVersion"]


But the Master.ReadConfig(...) line is a bit too challenging.

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.