For security reasons DTD is prohibited in this XML document in sharepoint

Hi,
 I am new SharePoint and still learning it.
 I have been tasked to do the following on office 365 E3 SharePoint 2013 Online edition.
 1) I have to create a Web page in asp.net
 2) This page needs to show document from a given SharePoint folder and bind them in a grid
  My code is in C#
                        ClientContext clientContextApp = new ClientContext("Apps Url");
                        clientContextApp = SPOAuthe(clientContextApp);
                        List oListDocuments = clientContextApp.Web.Lists.GetByTitle("Documents");
                        CamlQuery camlQueryDoc = new CamlQuery();
                        var qDocuments = new CamlQuery() { ViewXml = "<View><Query><Where><Eq><FieldRef Name='Externalurl'
/><Value Type='URL'>" + decodedUrl + "</Value></Eq></Where></Query></View>" };
                        Microsoft.SharePoint.Client.ListItemCollection collListItemDoc = oListDocuments.GetItems(qDocuments);
                        clientContextApp.Load(collListItemDoc);
                        clientContextApp.ExecuteQuery();
                        foreach (Microsoft.SharePoint.Client.ListItem oListItemDoc in collListItemDoc)
                            startDate = Convert.ToDateTime(oListItemDoc["StartDate"].ToString());
                            endDate = Convert.ToDateTime(oListItemDoc["_EndDate"].ToString());
                            currentDate = System.DateTime.Now;
                            documentLocation = ((FieldUrlValue)oListItemDoc["DocumentLocation"]).Url.ToString();
      but it is following error occurred LINE-9(clientContextApp.ExecuteQuery();).
      "For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method"
                       What is missing my code?
 I am not also not sure what is the best way of achieving the functionality this?
 Thanks
 Krishna

Below link may be helpful,
http://social.technet.microsoft.com/Forums/sqlserver/en-US/11b1a418-7c70-4318-9535-6a60dd26539d/dtd-is-prohibited-in-this-xml-document-systemxml-error-while-accessing-xml-file-of-form-library?forum=sqlreportingservices
Regards, RSingh

Similar Messages

  • I am getting this error when i am doing CSOM on project server..For security reasons DTD is prohibited in this XML document.

    before two day my csom code was working fine..but from last two days when i tried to execute my code i am getting this error..
    For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

    Found in negative cache.... very strange.
    RFC found in negative cache
    What is the negative cache?

  • DTD is prohibited in this XML document. (System.xml)

    Hi,
    I am having issue with my SSRS report, XML Data Source, when I am try to execute my query I get this error:
    "Could not generate a list of fields for the query. Check the query syntax or click refresh Fields on the query
    Toolbar. DTD is prohibited in this XML document."
    This my query:
    <Query>
      <ElementPath>Action {}/Step {Obj,Details,Time,NodeArgs}</ElementPath>
    </Query>
    This is my Connection string:
    http://localhost/results.xml?NoRedirect=true
    Please help;
    Angel C. Barrientos
    angelatino2013

    Below link may be helpful,
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/11b1a418-7c70-4318-9535-6a60dd26539d/dtd-is-prohibited-in-this-xml-document-systemxml-error-while-accessing-xml-file-of-form-library?forum=sqlreportingservices
    Regards, RSingh

  • Getting inner exception "dtd is prohibited in this xml document exchange" while reading emails from outlook

    Getting error "The response received from the service didn't contain valid XML." with inner exception "dtd is prohibited in this xml document exchange" while reading emails from outlook(Not while reading every mail).
    Can anybody please tell me what might be the issue. Below is the code where I am getting error
    FindItemsResults<Item> RetrievedItems=null ;
    RetrievedItems = service.FindItems(FIds, new ItemView(4));
    String[] SignatureList = ConfigurationManager.AppSettings.Get("SignatureTypes").Split(',');
    if (RetrievedItems != null && RetrievedItems.Count() > 0)
    RetrievedItems.ToList().ForEach(x =>
    try
    List<String> Attachments = new List<String>();
    List<String> ScanFileName = new List<String>();
    bool IsAvailable = true;
    //Getting error while Load() - below line of code
    ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).Load();
    Vo.EmailMessage msg = new Vo.EmailMessage();
    msg.MessageId = ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).Id.UniqueId;
    msg.From = ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).From.Address;
    ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).ToRecipients.ToList().ForEach(z => msg.To += z.Address + ",");
    ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).ReplyTo.ToList().ForEach(y => msg.ReplyToEmailAddress += y.Address + ",");
    msg.Subject = ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).Subject;
    msg.Body = ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).Body.Text;
    msg.Dated = ((Microsoft.Exchange.WebServices.Data.EmailMessage)x).DateTimeSent;
    Please help.

    Hi,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    Niko Cheng
    TechNet Community Support

  • TS2446 im trying to change my password for my apple id but its says that my account has been disabled for security reasons, how can i solve this problem?

    im trying to change my password for my apple id but its says that my account has been disabled for security reasons, how can i solve this problem?

    Depending on why it's been disabled you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    Or you might need to contact Apple : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    If it then works on your computer's iTunes but not your phone/iPad then try logging out of your account on the phone/iPad by tapping on your id in Settings > Store (Settings > iTunes & App Stores on iOS 6) and then log back in and see if that 'refreshes' the account on it

  • I think the lock screen on my ipad takes pictures for security reasons,How do I access this?

    I think the lock screen on my ipad takes pictures for security reasons,How do I access this?

    If the pictures aren't in Photos it's not taking pictures. Didn't you ask this question two hours ago ?

  • HT5559 java is blocking yahoo games for security reasons- how can i change this

    please help- i have downloaded the latest java script and now i cannot play yahoo games--it is not letting me--how do i stop this from happenng?

    I reset the Apple ID and I change the password EVERY TIME I've to log in with my Apple ID.
    I try to login, the message appears, I change the password and then I can log in.
    But the next time (maybe the next day) I've to repeat the process.
    Why?

  • Disabled for security reasons.

    When trying to unsuccessfully log on just now, Firefox reported a problem with the server, so trying Safari, I got that My Apple ID has been disabled for security reasons.
    I read that this results from three unsuccessful log in attempts. Is this true?
    Does this mean that my old account roam is dead?

    No, it's not dead, just wait a while and try again, the log-in process has been flakey since yesterday and this might just be another manifestation of the problem. Several abortive tried to log in will disable the alias, but just for a while (not sure how long, keep trying).

  • Why is my Apple ID being locked out every time I go to use it?  I haven't even attempted to log in for about 4 or 5 days, but today on my first attempt to do so, it said my account had been locked for security reasons.  This is the third time.

    I only sign in to iTunes' store about once a week or so.  But during each of my last 3 attempts (on different days, several days apart) on my first attempt to enter my password and hit submit, I am immediately told that my Apple account has been locked for security reasons and it wants to take me to a page to reset my 'forgotten' password.  I am using the CORRECT password.
    Perhaps someone else is trying to break into my account or is mis-entering theirs but my account should not be getting locked like this.  It is very frustrating to have to go through the reset password procedure each and every time I want to go into the store.  It seems to me that Apple really doesn't want me to buy any more apps from them as they keep refusing me entry into my own account, each and every time I have tried to use it, for the past few weeks.  I am not their best customer, but they aren't giving me much of a welcome invitation to become one, if I'm going to be treated like this.
    I just bought my iPhone 4 less than 2 months ago.  I paid extra money to upgrade early, just to get this phone because it was so highly recommended by everyone I spoke with in different stores (BestBuy and Verizon).  I even bought the 2 year upgrade to my Apple services in case I needed to ever call them, and so far I haven't had to, yet.  But I definitely will call them if this isn't straightened out.
    It looks like this other user could be tracked and an email could be sent to them from Apple to let them know what they are doing - trying to sign into the wrong account, and are locking somebody else out of their own account because of their error....and to remind them of their correct information or how to get it and to write it down or save it somewhere so they don't keep on doing this.
    I have seen literally DOZENS of other people in these discussions with exactly the same issue that I'm having so it is NOT an isolated incident, and it seems to be a growing problem as Apple's sales and user base continues to grow, so this problem is seriously needing to be addressed in some way, and soon, before they start losing new customers because of it.  If I was still within my original 14 day return period with this phone, I would definitely be returning it and buying an Android model because of how frustrating this is to me.  If my bank was doing this to me, I'd have already switched banks by now if they hadn't fixed it - just to give an example of how I feel about this.

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • I rented a movie. I want to see it using different user on same mac for security reason. How can I do this? Home Sharing fails to do this, so far.

    I rented a movie. I want to see it using different user on same mac for security reason. How can I do this? Home Sharing fails to do this, so far.

    Copy the movie from the current library to the correct library.
    iDevices can only sync to one library at a time.

  • This Apple ID has been disabled for security reasons

    When I try to log in to my iTunes store account i get the following message:
    *This Apple ID has been disabled for security reasons*
    I've waited a while and tried again (as in a week or longer), and the account is still disabled.
    Can anyone tell me how to get the ID enabled again, since as of now I'm unable to buy / download any content from the store. Which makes my iPhone a sad phone
    My assumption is the problem is i have a rather desirable account name: i am constantly receiving notifications of failed logins to my account, presumably by scripts trying to hack it. But i have a secure password, so no problem. But perhaps this has led to the account being deactivated?
    Any help / or reactivating the account would be great.

    Contact customer support: http://www.apple.com/support/itunes/contact.html?form=account&topic=iTunes%20Sto re%20Account%20and%20Billing&subtopic=Billing%20Inquiries

  • "This Apple ID has been disabled for security reasons" Every few weeks

    I have had an iTunes account for years with no issue. Lately, I have been receiving the dreaded "This Apple ID has been disabled for security reasons" message every few weeks on my iPad 2(currenly, my only iOS device). I go through the process of reauthorizing my password and info and it works again for a while, then happens again some time later. It's getting annoying. I'm not sure what's changed. Only two computers are authorized to use my account and I am the only one who can log into either of them. No one knows my info and I live alone.
    The only thing I can think is that it's a bot spamming my e-mail address and passwords in an attempt to hack my account. If that's the case, am I really going to have to go through this every few weeks just to use my iPad? Don't get me started on how stupid it is to have to type in your password to update existing apps. And that's usually when I find out, not when I actually purchase one.
    Is anyone else having this issue? I'm wondering if it's more widespread. Some time ago, a chinese app was mysteriously purchased on my account. Apple refunded the purchase and reset my password. That was about the time that all of this started. The reviews on the app left no doubt that it was happening to numerous people and I have no idea how they would have forced a purchase on so many user accounts.

    Domin Harvey wrote:
    PLEEEEEEEASE, please, please fix this!!
    Everyone should keep a few things in mind:
    This is an occasional problem affecting a vanishingly small percentage of the installed base. Look at the numbers of actual instances in just this thread, look at the gaps in time, etc.
    Many many more ... me for example ... have never seen it at all. That doesn't mean it's not an irritation for those afflicted, but it does mean that it's not something likely to be seen as a critical issue affecting the whole base.
    You aren't talking to Apple here in these user-to-user forums, at all, for any reason. This sort of communication is handled through their established Feedback links. If you can suggest a better way for them to handle things then make your thoughts and feelings known at —        
    http://www.apple.com/feedback/ipad.html

  • My ipod i saying this when i try to log into my game center account, the apple id you entered has been disabled for security reasons.

    My ipod is displaying this message when i try to play games on the game center, the apple ID you entered has been disabled for security reasons, what does that meen

    See here: Apple ID: "This Apple ID has been disabled for security reasons" alert appears
    You may need to contact Apple directly.
    http://www.apple.com/contact/
    B-rock

  • Hi, My OS X is Leopard v10.5.8, w/Safari v5.0.6. I am considering downloading ClickToFlash 2.9.2 for general security reasons. I'm assuming this a good fit, being that Apple endorses this extension on their site. Does this mean i can download it w/out hav

    Hi, My OS X is Leopard v10.5.8, w/Safari v5.0.6. I am considering downloading ClickToFlash 2.9.2 for general security reasons. I’m assuming this a good fit, being that Apple endorses this extension on their site. Does this mean i can download it w/out having to worry about any conflicts?,.. that its coming from a safe source, etc? Does it have any downsides? Is it easy to install?, ..or uninstall if i dont like it?
       ALSO~ I’m assuming i dont need ClickToPlugin, because when on internet i always have “Enable Plugins” ~ DISABLED.
        Thanks for any advice,...  Jean in NJ

    I dont really understand~  When i open my Flash Player pane, click on Advanced tab, the heading "Updates" reads~ "Not updating may leave this computer vulnerable to security threats." The reason for my concern is that Adobe no longer offers FP updates for my OS [10.5.8],not even archived. So my original question probably should have read~ When visiting a web site does Flash automatically load onto safari.  If so, can using Click to Flash;... and NOT clicking to flash, prevent Flash from loading, and possibly carrying  a "security threat" [virus?], into Safari or my Mac?  Not trying to beat a dead horse,..just trying to understand what makes him run,   Thanks

  • I could not update my apps on my phone this morning,it told me my account was locked for security reasons ??to vist iforgot and reset my account and its looking for all my details again ,i have credit in my account,can you help

    i could not update my apps on my phone this morning,it told me my account was locked for security reasons ??to vist iforgot and reset my account and its looking for all my details again ,i have credit in my account,can you help

    Apple ID- "This Apple ID has been disabled for security reasons" alert appears

Maybe you are looking for

  • Switch Question

    I'm new to Java, but not to programming or IDE's. I'm in the early stages of developing a new Java application, so I've been playing with various example code from some of the number of books available on the topic. In particular I was interested in

  • ITunes cannot run because it has detected audio configuration problem?

    I've got Windows XP, recently did a system restore and was forced to re-install iTunes afterwards. After installation, I click the iTunes icon and get a pop up "iTunes cannot run because it has detected a problem with your audio configuration." I wen

  • ITunes doesn't open/work anymore.

    If I'm open iTunes it starts well, but after the iTunes appears at the screen it stops opening and the mac doesn't work anymore. I can't do anything. After a while i can hear the mac works for a few seconds and if I use the shortcut cmd "Q", iTunes c

  • Filter the content on different queries for the same infoprovider and user

    Hello, We are trying to make the following security scenario in BI, and have problem with the analysis object concept to filter at query level. The idea is to permit to : - user A   - to execute query Q1 and view information about sites 1,2,3   - to

  • Windows Mobile 5.0 not connecting to files on servers hosted on Windows 2008

     We recently upgraded our servers from Windows server 2003 to windows server 2008 and 2012. While on WM server 2003, we were using a PDA system that operates on Windows Mobile 5.0, since  our upgrade, we  are not able to connect to any files on the s