Im getting an error when upgrading EPI 5.2 to EPI 6.0.
The error message is in swedish but it enterprate it like the assemblies are newer than the installer, so i downloaded a new version of the installer (deployment center) but i got the same message.
” An unhandled error has occured:
Det går inte att läsa in filen eller sammansättningen C:\EPiServer\Sites\Uppgra
deraSiteName\SiteName.Web\bin\Sitename.Web.dll eller ett av dess beroenden. Den hä
r sammansättningen har skapats med ett program av en senare version än det aktu
ella inlästa programmet och kan därför inte läsas in.
When executing
At C:\Program Files (x86)\EPiServer\Framework\6.0.318.113\Install\System Script
s\Install Site (SqlServer).ps1:147 char:27
+ Add-EPiAssemblyRedirect <<<< -TargetFilePath $targetWebConfigPath -Source
AssemblyPath $file.FullName
=
Get-EPiIsBulkInstalling
At C:\Program Files (x86)\EPiServer\Framework\6.0.318.113\Install\System Scripts\Install Site (SqlServer).ps1:147 char:27
+ Add-EPiAssemblyRedirect <<<< -TargetFilePath $targetWebConfigPath -SourceAssemblyPath $file.FullName
System.BadImageFormatException: Det går inte att läsa in filen eller sammansättningen C:\EPiServer\Sites\UppgraderaSiteName\SiteName.Web\bin\SiteName.Web.dll eller ett av dess beroenden. Den här sammansättningen har skapats med ett program av en senare version än det aktuella inlästa programmet och kan därför inte läsas in.
Filnamn: C:\EPiServer\Sites\SiteName\SiteName.Web\bin\SiteName.Web.dll
vid System.Reflection.AssemblyName.nGetFileInformation(String s)
vid System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
vid EPiServer.Install.Xml.Installers.AddAssemblyRedirectInstaller.Install(IDictionary savedState)
vid EPiServer.Install.InstallationManager.Install(Installer installer)
vid EPiServer.Install.Xml.XmlInstallationManager.AddAssemblyRedirect(String targetFilePath, String assemblyFilePath, String oldVersion)
vid EPiServer.Install.Xml.Cmdlets.AddAssemblyRedirectCmdlet.ProcessRecord()
vid System.Management.Automation.Cmdlet.DoProcessRecord()
vid System.Management.Automation.CommandProcessor.ProcessRecord()”
You are probably running Deployment Center on the wrong .NET Framework version.
Check this link if site is built against 4.0:
http://world.episerver.com/Blogs/Paul-Smith/Dates1/2011/3/Upgrading-CMS-6-R1-sites-compiled-against-NET-40/
For the record says to add this to your Deployment Center config:
<configuration>
<startup>
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
The Deployment Center configuration file can be found at the following path on the target machine:
{Program Files}\EPiServer\Shared\Install\EPiServerInstall.exe.config
Related
For some reason, my R notebook is producing a blank HTML document. When I'm ready to knit the document to an html notebook, my browser opens up the file and it is a blank document. I'm pressing the "knit" button, then "html" from R Studio.
Here is my code:
---
title: "Rate Hole Model"
output: html_document
---
```{r}
library(tidyverse)
library(plotly)
library(rmarkdown)
library(knitr)
```
```{r}
veh_age <- mc2 %>%
filter(cummulative < 51)
plot_ly(veh_age, x = ~unit_age, y = ~loss_ratio, color = ~rating_class_name) %>%
add_markers(text = ~paste(rating_class_name, "<br />", 'unit age: ',
unit_age, "<br />", 'loss ratio: ', loss_ratio), hoverinfo =
'text') %>%
layout(title = 'Comp Loss Ratio by Unit Age/Rating Class')
```
I'm not sure what happened. I'm on R version 3.5.1Has anyone ran into this problem?
My Libraries were installed to my Home directory : \Home\firstname.lastname\documents. This directory is a network located resource. When the last step of the process ran, the proper permission was not available to the called application (Pandoc). I am running 64 bit Win 10 with 64 bit RStudio version 1.1.456 and the 3.5 version of R. When I moved (reinstalled) the packages/libraries to a local folder : c:\Program Files\RStudio\Packages the HTML rendered in the browser.
I have this csv file
Nr_TipoCadeia,Designacao,Descricao
1,Hotel,O hotel � um edif�cio equipado e projectado para albergar as pessoas de forma tempor�ria.
2,Pousada,"As pousadas podem ser uma �tima alternativa aos hot�is, com pre�os mais atrativos e atendimento personalizado."
3,Motel,Motel � um estabelecimento de hospedagem que se diferencia dos demais porque as pessoas geralmente v�o at� ele com o objetivo de manter rela��es sexuais e n�o necess
ariamente para conseguir alojamento.
4,Pensao,"Casa em que se admitem h�spedes, mediante pagamento."
5,Resort," Os resorts possuem servi�os variados de est�tica, quadras poliesportivas e muitas piscinas."
I am trying to import the file to Neo4j using the following query:
load csv with headers from 'file:///TipoCadeia.csv' as line
create (tipocadeia:TipoCadeia {Nr_TipoCadeia: TOINT(line.Nr_TipoCadeia)})
set tipocadeia.Designacao = line.Designacao,
tipocadeia.Descricao = line.Descricao
return tipocadeia;
Everything is ok, except in the node where the third line of the csv file should be stored, it only appears <id>:317 when it should be like
<id>:317 Nr_TipoCadeia:3 Designacao:Motel Descricao:....
The other nodes are fine.
Why is this happening?
Need to convert DOCX document to PDF using LibreOffice in command line mode. But it crashes:
soffice.exe -headless -invisible -convert-to pdf myfile.docx
It also crashes when trying to open the same document:
soffice.exe -o myfile.docx
However, it opens the file perfectly when opening LibreOffice from the Start menu.
Here are Windows 7 (32-bit) error details (in Spanish, no translation yet):
Firma con problemas:
Nombre del evento de problema: APPCRASH
Nombre de la aplicación: soffice.bin
Versión de la aplicación: 4.3.2.2
Marca de tiempo de la aplicación: 541af548
Nombre del módulo con errores: MSVCR110.dll
Versión del módulo con errores: 11.0.51106.1
Marca de tiempo del módulo con errores: 5098858e
Código de excepción: 40000015
Desplazamiento de excepción: 000a327c
Versión del sistema operativo: 6.1.7601.2.1.0.256.1
Id. de configuración regional: 3082
Información adicional 1: da3c
Información adicional 2: da3c0e7aedc374a773565a4a8dfc0c7a
Información adicional 3: 7958
Información adicional 4: 795815baca3b4b1817fdd25f3f5f80de
It's a confirmed bug for LibreOffice 4.3.x on Windows
see:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=85777
And it can be workaround by
start /wait "lo" "C:\Program Files (x86)\LibreOffice 4\program\soffice" C:\a.ods
I'm using Matlab to output a multi-page PS file:
print(figure, '-dpsc2', fullfile(folder, [file '.ps']), '-r600', '-append')
and then using Matlab to invoke Ghostscript to convert the resulting PS file to a PDF:
system(['"' gsPath '" -sDEVICE=pdfwrite \
-dDEVICEWIDTHPOINTS=' num2str(int32(width*72)) ' \
-dDEVICEHEIGHTPOINTS=' num2str(int32(height*72)) ' \
-dPDFFitPage \
-o "' fullfile(folder, [file '.pdf']) '" "' fullfile(folder, [file '.ps']) '"']);
which is just a really hard-to-read way of writing something along the lines of
gswin64c -sDEVICE=pdfwrite ^
-dDEVICEWIDTHPOINTS=100 ^
-dDEVICEHEIGHTPOINTS=100 ^
-dPDFFitPage ^
-o "C:\folder\output.pdf" "C:\folder\input.ps"
where I've put in example values for device dimensions and input/output paths. When I use this code to print a single figure (one page) to PDF, everything works perfectly. However, when printing multiple figures (multiple pages) to PDF, Ghostscript throws an error:
GPL Ghostscript 9.06 (2012-08-08)
Copyright (C) 2012 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
**** Unable to open the initial device, quitting.
Now, if I remove the -dDEVICEWIDTHPOINTS=100 -dDEVICEHEIGHTPOINTS=100 part of my Ghostscript command and again attempt to print multiple figures to a PDF, it works fine (except for the page size being different than what I want).
GPL Ghostscript 9.06 (2012-08-08)
Copyright (C) 2012 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 4032872 2490784 2311720 1014184 2 done.
Has anyone else run into a similar problem and found a workaround for this issue? One of the keys here is that I need to be able to control the page size of the PDF produced. Thanks!
Below is an example that should run fine. First we create a multi-page PS file:
fname = 'test';
if exist([fname '.ps'], 'file'), delete([fname '.ps']); end
hfig = figure;
for i=1:10
plot(cumsum(rand(100,1)-0.5))
drawnow
print(hfig, '-dpsc2', '-append', [fname '.ps'])
end
close(hfig)
Next we convert it to PDF using Ghostscript, and properly crop the figures:
gs_path = 'C:\Program Files\gs\gs9.07\bin\gswin64c.exe';
gs_opts = '-dBATCH -dNOPAUSE -q';
% ps2pdf
cmd = sprintf('"%s" %s -sDEVICE=pdfwrite -dPDFFitPage -o %s %s', ...
gs_path, gs_opts, [fname '.pdf'], [fname '.ps']);
disp(cmd); system(cmd);
% get bbox
cmd = sprintf('"%s" %s -sDEVICE=bbox %s', ...
gs_path, gs_opts, [fname '.pdf']);
disp(cmd); [~,out] = system(cmd);
out = textscan(out, '%s', 'Delimiter','');
bbox = regexp(out{1}, '^%%BoundingBox: (\d+) (\d+) (\d+) (\d+)','tokens','once');
bbox = str2double(vertcat(bbox{:}));
bbox = [min(bbox(:,1:2)) max(bbox(:,3:4))];
% crop to bounding box
cmd = sprintf(['"%s" %s -o %s -sDEVICE=pdfwrite' ...
' -dDEVICEWIDTHPOINTS=%d -dDEVICEHEIGHTPOINTS=%d -dFIXEDMEDIA' ...
' -c "<</PageOffset [-%d -%d]>> setpagedevice" -f %s'], ...
gs_path, gs_opts, [fname '_cropped.pdf'], ...
bbox(3)-bbox(1), bbox(4)-bbox(2), bbox(1), bbox(2), [fname '.pdf']);
disp(cmd); system(cmd);
I'm struggling with a small program, I can't find how to correct one mistake.
My program:
program calcul
! ce programme permet d'effectuer des opérations mathématique de base
IMPLICIT NONE
REAL::x,y
character(len=1)::op
character(len=16)::op_msg
write(*,*)"entrer le type d'opération à effectuer(+,-,/,x,*)"
read(*,*)op
write(*,*)"entrer le premier nombre de l'opération"
read(*,*)x
write(*,*)"entrer le deuxième nombre de l'opération"
read(*,*)y
if(op=="+") then
write(*,*)x,"plus",y,"egale",x+y
else if(op=="-")then
write(*,*)x,"moin",y,"egale",x-y
else if ((op==("*").or.("x")) then
write(*,*)x,"multiplie par",y,"egale",x*y
else if (op=="/")then
write(*,*)x,"divise par",y,"egale",x/y
else
write(*,*)"erreur:operation incorrecte"
end if
end program calcul
The error message:
calculette.f90:21.26:
else if ((op==("*").or.("x")) then
1
Error: Invalid character in name at (1)
Any idea? I don't understand why "x" is an invalid character?
else if ((op==("*").or.op==("x")) then
You are evaluating two separate conditions, so each one needs a "left" and "right" side.