Click here to Skip to main content
15,887,214 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Datalist control Pin
Otekpo Emmanuel12-Aug-15 11:00
Otekpo Emmanuel12-Aug-15 11:00 
GeneralRe: Datalist control Pin
User 418025413-Aug-15 3:44
User 418025413-Aug-15 3:44 
QuestionForms and Master Pages - Best Practice Pin
JBHowl6-Aug-15 6:50
JBHowl6-Aug-15 6:50 
AnswerRe: Forms and Master Pages - Best Practice Pin
Afzaal Ahmad Zeeshan6-Aug-15 7:23
professionalAfzaal Ahmad Zeeshan6-Aug-15 7:23 
QuestionHow to open local files in browser using asp.net. Pin
Mukesh Pr@sad5-Aug-15 23:35
professionalMukesh Pr@sad5-Aug-15 23:35 
QuestionCreating a webservice o target 64 bit process to call 64 bit interiop dll Pin
sma123#5-Aug-15 20:24
sma123#5-Aug-15 20:24 
AnswerRe: Creating a webservice o target 64 bit process to call 64 bit interiop dll Pin
Jawad Siddiqui5-Aug-15 21:51
Jawad Siddiqui5-Aug-15 21:51 
QuestionWebservice except type causing an error Pin
Stephen Holdorf5-Aug-15 5:42
Stephen Holdorf5-Aug-15 5:42 
I Was running a Fortify scan and I received the error (Poor Error Handling: Overly Broad Catch). Here is the code:

            try
            {
                if (!string.IsNullOrEmpty(xsdFilePath))
                {
                    XmlSchemaSet schemas = new XmlSchemaSet();

                    schemas.Add(null, xsdFilePath);

                    XDocument xdoc = XDocument.Parse(xmlString);

                    //validates that an XMLDocument conforms to an XSD
                    xdoc.Validate(schemas, (o, e) =>
                    {
                        msg += e.Message + Environment.NewLine;
                    });
                }
                if (msg != "")
                    throw new Exception(msg);
            }
            catch (Exception e)
            {
                WriteErrorLog("Error in ValidateXml");
                LogError(e);
                msg = e.Message;
                return "Error - Document is invalid: " + msg;
            } <pre>

Simple I thought. I just the "catch (Exception e)" to "catch (ArgumentOutOfRangeException e)". Now when I run the application it receive the follow error:

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

Does anyone know what the problem is?

Thanks,

Steve Holdorf

AnswerRe: Webservice except type causing an error Pin
jkirkerx7-Aug-15 9:27
professionaljkirkerx7-Aug-15 9:27 
QuestionSorting number in gridviewfix Pin
Member 115621495-Aug-15 3:09
Member 115621495-Aug-15 3:09 
AnswerRe: Sorting number in gridviewfix Pin
Herman<T>.Instance27-Aug-15 5:13
Herman<T>.Instance27-Aug-15 5:13 
QuestionAsp.NET MVC and Web API Pin
narkhik2-Aug-15 18:44
narkhik2-Aug-15 18:44 
AnswerRe: Asp.NET MVC and Web API Pin
F-ES Sitecore2-Aug-15 22:40
professionalF-ES Sitecore2-Aug-15 22:40 
GeneralRe: Asp.NET MVC and Web API Pin
Afzaal Ahmad Zeeshan3-Aug-15 1:40
professionalAfzaal Ahmad Zeeshan3-Aug-15 1:40 
GeneralRe: Asp.NET MVC and Web API Pin
F-ES Sitecore3-Aug-15 2:08
professionalF-ES Sitecore3-Aug-15 2:08 
AnswerRe: Asp.NET MVC and Web API Pin
Afzaal Ahmad Zeeshan3-Aug-15 1:40
professionalAfzaal Ahmad Zeeshan3-Aug-15 1:40 
Questioni have issue for calculating Total in Grid control of ASP.net Pin
bablug30-Jul-15 2:25
bablug30-Jul-15 2:25 
AnswerRe: i have issue for calculating Total in Grid control of ASP.net Pin
Richard Deeming30-Jul-15 7:43
mveRichard Deeming30-Jul-15 7:43 
AnswerRe: i have issue for calculating Total in Grid control of ASP.net Pin
User 41802543-Aug-15 10:17
User 41802543-Aug-15 10:17 
QuestionOnly authenticate user can access the authenticated page otherwise redirect to login page uaing ASP.NET webfroms Pin
Member 1115728828-Jul-15 21:40
Member 1115728828-Jul-15 21:40 
AnswerRe: Only authenticate user can access the authenticated page otherwise redirect to login page uaing ASP.NET webfroms Pin
Wendelius28-Jul-15 21:47
mentorWendelius28-Jul-15 21:47 
Questioncalculate the weighted average Pin
jkirkerx27-Jul-15 13:43
professionaljkirkerx27-Jul-15 13:43 
AnswerRe: calculate the weighted average Pin
Kenneth Haugland28-Jul-15 1:19
mvaKenneth Haugland28-Jul-15 1:19 
AnswerRe: calculate the weighted average Pin
deepankarbhatnagar28-Jul-15 2:14
professionaldeepankarbhatnagar28-Jul-15 2:14 
GeneralRe: calculate the weighted average Pin
jkirkerx28-Jul-15 6:25
professionaljkirkerx28-Jul-15 6:25 

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.