I've installed google site map on my Umbraco (I installed it in 4.9, 4.8 and 4.7). I followed steps in [this site][1] http://our.umbraco.org/projects/website-utilities/google-sitemap-for-umbraco-4-%28jespercom%29 . But when I browse mydomain.com/GoogleSiteTree.aspx I get this error
This page contains the following errors:
error on line 2 at column 1: Document is empty
Below is a rendering of the page up to the first error.
I am unable to find the reason. Anyone knows the answer please help.
Can you open your masterpage and-or XSLT and make sure there is no whitespace at the top of the file?
You may need to bump up the macro in the masterpage that renders the macro, like so:
<%# Master ... %><asp:Content ContentPlaceHolderID="MyPlaceHolder" runat="server"><umbraco:Macro Alias="GoogleSitemap" runat="server" /></asp:ContentPlaceHolder>
This might fix your problem as I've seen similar issues when rendering XML or RSS feeds direct from a macro out to the HTTP response.
Related
I'm trying to get the pdf.js viewer to work in an asp.net MVC 5 application but while the pdf is definitely being process, it is not being displayed.
Configuration:
Web browser and its version: Microsoft Edge (41.16299.15.0) and Chrome (64.0.3282)
Operating system and its version: Windows 10 (Version 1709 - 16299.125)
PDF.js version: 1.9.426
Steps to reproduce the problem:
Include pdf.js in a asp.net mvc project
Include the code from the Viewer.html into an Index.cshtml view and remove the body and head tags.
Modify various path for the .js and .css
If I click on the download button, the pdf file gets downloaded successfully.
What is the expected behavior?
Expected behaviour would be to display the pdf document.
What went wrong?
I'm not sure but it is definitely loading the pdf. It's just not displaying it.
The Viewer is displaying correctly and so is the toolbar.
I can see the number of pages in the pdf.
I can see the progress bar when the pdf document is loading.
If I provide an invalid pdf filename, it displays an error i.e. 'file not found'
I don't know if it's related, I'm getting a few errors and a lot of warnings:
Error:
HTTP404: NOT FOUND - The server has not found anything matching the
requested URI (Uniform Resource Identifier).
(XHR)GET - http://localhost/PdfWeb/Scripts/pdf.js/web/
locale/locale.properties
Warnings:
http://localhost/PdfWeb/Scripts/pdf.js/web/locale
/locale.properties not found.
The locale.properties is definitely located in this location.
"en-ie" resource not found.
I've created a copy of en-UK and renamed it to en-ie but that this seem to have any effects.
I get dozens if not hundreds of 'undefined' errors. Here are a few of them:
#document_outline_label is undefined.
#attachments is undefined.
#attachments_label is undefined.
...
#page_scale_percent is undefined.
I've attached a few snapshots highlighting the fact that the pdf is definitely being loaded and processed but as you can see it is not displayed, nor is a preview generated when I'm trying to print it.
I hope someone can help me with a) my issue where the pdf document is not being displayed and b) removing the error and the many warnings.
UPDATE-1:
I've partially figured out the problem. It is down to a CSS issue where the viewerContainer is not resized accordingly.
When I change the viewerContainer from:
<div id="viewerContainer" tabindex="0">
<div id="viewer"></div>
</div>
to
<div id="viewerContainer" tabindex="0" style="width: 1000px; height:1000px">
<div id="viewer"></div>
</div>
It displays the pdf document but the viewer/page is obviously not the correct size as it should be the same size as the toolbar and take the browser's remaining height as it does with the viewer.html sample provided.
I will check tomorrow whether there is a conflict in CSS with the default one provided with the ASP.NET MVC template but the fact that the viewer.html works would make me think that problem is not with the CSS provided by pdf.js.
While the above is partially sorted, I've noticed that the problem remains with the thumbnail view and printing is still displaying blank pages so there must be more than just the 'viewerContainer' that's affected.
Anyone's got any ideas on how I can resolve this problem?
Looking at the jqm repository, they have a tool called https://github.com/jquery/jquery-mobile/blob/master/tools/config-props.html config-props.
However, downloading the repo, and running it on my local machine ends up with the following error:
Uncaught SyntaxError: Unexpected token < file:///C:/Users/Ryan/Downloads/jquery-mobile-1.3-stable/jquery-mobile-1.3-stable/js/:1
From config-props.html
<script src="../external/jquery/jquery.js"></script>
<script src="../js/"></script>
The issue is that chrome is treating the /js/ directory as a html index page listing the contents of the folder, instead of including all the javascript files within into the page.
Is this a problem with chrome? Does the tool have errors? or is there some sort of preprocessing that needs to be performed first?
You can view this page online on their documentation.
It isn't very well published, but some url tweaking / exploring after following a broken link led to this
http://jquerymobile.com/resources/#Tools
Broken link on page: http://jquerymobile.com/test/tools/log-page-events.html
Which looks similar to https://github.com/jquery/jquery-mobile/blob/e377564aa121d0439a21bc97f7854ee618c3f72d/tools/log-page-events.html
redirected to
http://view.jquerymobile.com/master/demos/
Which looked suspiciously like a hosted version of the github repo.
changing to
http://view.jquerymobile.com/1.3-stable/tools/ resulted in an index page that led to
http://view.jquerymobile.com/1.3-stable/tools/config-props.html
I've run into a bug where my website will not allow a user to click a valid hyperlink from a microsoft word document (2010, 2013 tested) and correctly go to the website.
The website is using MVC architectural patterns, so any action such as index, help, etc do not work.
Has anyone ran into this issue, if so, how was it resolved? I can't seem to find any other issues like this being listed.
It would be helpful to see the exact error message - was it "invalid browser error"? Errors like that are usually related to an issue with Internet Explorer trying and failing to handle the URL, even though it may not be your default browser.
See here and here.
In my ASP.NET MVC 4 project, I am using the Microsoft.Web.Helpers (from the NuGet package) and my code is a very basic implementation of ReCaptcha. In my view I have:
#ReCaptcha.GetHtml(theme: "clean")
In my controller I have:
Microsoft.Web.Helpers.ReCaptcha.Validate();
The complexity comes with the SSL implementation we are using.
I have added the appropriate settings to my web.config:
<system.net>
<defaultProxy>
<proxy proxyaddress="http://***proxy script settings**"
autoDetect="False"
usesystemdefault="False"
bypassonlocal="True" />
</defaultProxy>
</system.net>
There seems like there is nothing further I can do in terms of config, but I am getting the error message
The remote server returned an error: (404) Not Found
when I hit the recaptcha validate method on the form post method in my controller.
Ive found a number of other answers on here but they all seem to suggest that you change the url, or upgrade. As Im using a NuGet package I would have thought I was using the latest version. Any ideas or links with more information greatly appreciated. Ive already done quite a bit of looking both on this site and google
edit:
I have found that earlier versions of firefox have trouble actually rendering the recapture box given our network conditions, but the latest one is fine. As the validation is done on the controller though, I suppose there is no issue here.
After much pulling of hair and general confusion, I discovered that the problem was that the POST (but not the GET) to the google API was being blocked by our corporate firewall. I had previously discounted this, because I could navigate to the service that recaptcha uses (http://www.google.com/recaptcha/api/verify).
I found this by constructing an HTML page of the requisite parts for the post and submitting it in a browser. The corporate "This page is blocked" appeared - however in code the error that is returned is a 404. The error is somewhat misleading, but this is bizarre behavior from our infrastructure department.
I have built a basic website for a company where I build a word document(.docx) file dynamically by using a template word doc and content controls and Open XML SDK. Its an ASP.NET MVC 2. I used the same code shown in this link where they build a Sales Contract document using Open XML. You can find it at almost the last section of the page seen in the following link:
http://msdn.microsoft.com/en-us/library/dd469465(v=office.12).aspx
My problem is everything works fine on my development system. But when I host the application on GoDaddy servers and at the end when the Word Document is saved, Microsoft Word says the document is corrupt and has to be recovered.
I saw a similar question in the following link:
Why are .docx files being corrupted when downloading from an ASP.NET page?
I tried the same and it did not work for me and I get the same error and now I am clueless as to where the error actually is.
Any help would be greatly appreciated.