i've installed the visual studio 2013 today, but i can't create a simple new MVC solution.
Everytime i try to debug it, shows me the error:
"Erro de Servidor no Aplicativo '/'.
Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site
Descrição: Ocorreu uma exceção sem tratamento durante a execução da atual solicitação da Web. Examine o rastreamento de pilha para obter mais informações sobre o erro e onde foi originado no código.
Detalhes da Exceção: System.ArgumentOutOfRangeException: Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site
Erro de Origem:
Exceção sem tratamento foi gerada durante a execução da atual solicitação da Web. As informações relacionadas à origem e ao local da exceção podem ser identificadas usando-se o rastreamento de pilha de exceção abaixo.
Rastreamento de Pilha:
[ArgumentOutOfRangeException: Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +303
[HttpException (0x80004005): Argumento especificado estava fora do intervalo de valores válidos.
Nome do parâmetro: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9913572
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254"
anyone can help me solve this?
Thanks
You will have to kill the process ...webdev.webserr... in the Windows Task Manager.
Related
I am trying to install dockprom(https://github.com/stefanprodan/dockprom). I follow the stepsgiven by them but I am getting this errors:
ERROR: for caddy Cannot create container for service caddy: status
code not OK but 500: {"Message":"Unhandled exception: Filesharing has
been cancelled","StackTrace":" en
Docker.ApiServices.Mounting.FileSharing.d__6.MoveNext() en
C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:lĂnea
0\r\n--- Fin del seguimiento de la pila de la ubicaciĂłn anterior
donde se produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en Docker.ApiServices.Mounting.FileSharing.d__4.MoveNext()
en
C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\Mounting\FileSharing.cs:lĂnea
47\r\n--- Fin del seguimiento de la pila de la ubicaciĂłn anterior
donde se produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
Docker.HttpApi.Controllers.FilesharingController.d__2.MoveNext() en
C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.HttpApi\Controllers\FilesharingController.cs:lĂnea
21\r\n--- Fin del seguimiento de la pila de la ubicaciĂłn anterior
donde se produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Threading.Tasks.TaskHelpersExtensions.d__1`1.MoveNext()\r\n---
Fin del seguimiento de la pila de la ubicaciĂłn anterior donde se
produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext()\r\n---
Fin del seguimiento de la pila de la ubicaciĂłn anteCreating grafana
... error
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext()\r\n---
Fin del seguimiento de la pila de la ubicaciĂłn anterior donde se
produjo la excepciĂłn ---\r\n en
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n en
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)\r\n en
System.Web.Http.Dispatcher.HttpControllerDispatcher.d__15.MoveNext()"}
And it is not only for caddy, I get same errors for Prometheus, caddy and Alertmanager
I'm trying to identify and handle a specific error that I get as a response from SharePoint rest api, the problem is that the error text depends on the site language.
for example, here is the error in English site:
{
"error": {
"code": "-2147024809, System.ArgumentException",
"message": {
"lang": "en-US",
"value": "Feature '[guid]' for list template '[number]' is not installed in this farm. The operation could not be completed."
}
}
}
and in French site I get:
{
"error": {
"code": "-2147024809, System.ArgumentException",
"message": {
"lang": "fr-FR",
"value": "La fonctionnalité « [guid] » pour le modèle de liste « [number] » n'est pas installée sur cette batterie de serveurs. L'opération n'a pas pu être effectuée."
}
}
}
Is it possible to get the English text regardless of the site language?
I'm trying to parse JSON that I'm getting from an API using SwiftyJSON and it's giving me this error:
Optional(Error Domain=SwiftyJSONErrorDomain Code=901 "Dictionary["data"] failure, It is not an dictionary" UserInfo={NSLocalizedDescription=Dictionary["data"] failure, It is not an dictionary})
The JSON:
{
"status": 200,
"error": "",
"data": {
"cursusses": [
{
"cursus": {
"curId": 1,
"curNaam": "Lightroom Tips & Tricks",
"catId": 1,
"curInfo": "Praktische en korte Tips en Tricks om sneller en prettiger met Lightroom te kunnen werken.",
"curThumbnail": "lr5-tips-en-tricks.jpg"
}
},
{
"cursus": {
"curId": 2,
"curNaam": "Lightroom Fotobewerkingen",
"catId": 1,
"curInfo": "Per video wordt er in deze cursus een nabewerking uitgevoerd op een foto. Een leerzame manier om te zien hoe je in de praktijk foto's kunt nabewerken terwijl je daarnaast veel praktische tips krijgt over het gebruik van Lightroom 5.",
"curThumbnail": "lr5-bewerkingen.jpg"
}
},
{
"cursus": {
"curId": 3,
"curNaam": "Photoshop Fotobewerkingen",
"catId": 2,
"curInfo": "Per video wordt er in deze cursus een nabewerking uitgevoerd op een foto. Een leerzame manier om te zien hoe je in de praktijk foto's kunt nabewerken terwijl je daarnaast veel praktische tips krijgt over het gebruik van Photoshop.",
"curThumbnail": "photoshop-cc.jpg"
}
},
{
"cursus": {
"curId": 4,
"curNaam": "Basiscursus Lightroom 5",
"catId": 1,
"curInfo": "Leer de basisvaardigheden voor het werken met Adobe Photoshop Lightroom. Over het werken met catalogussen, importeren, het selectieproces, de nabewerking en het exporteren.",
"curThumbnail": "basiscursus-lightroom-5.jpg"
}
},
{
"cursus": {
"curId": 5,
"curNaam": "Photofacts Academy",
"catId": 3,
"curInfo": "Toelichting over het gebruiken van de Photofacts Academy website.",
"curThumbnail": "photofacts-academy.jpg"
}
},
{
"cursus": {
"curId": 6,
"curNaam": "Lightroom 5 web module",
"catId": 1,
"curInfo": "Met de Lightroom web module kun je eenvoudig van je foto's een online galerij maken.",
"curThumbnail": "lr5-web-intro.jpg"
}
},
{
"cursus": {
"curId": 7,
"curNaam": "Photoshop Tips & Tricks",
"catId": 2,
"curInfo": "Praktische tips voor het gebruik van Adobe Photoshop CC.",
"curThumbnail": "photoshop-cc-splash.jpg"
}
}
]
}
}
I'm currently trying to use this block of code to parse the data, this function is called in the completionHandler of an Alamofire request:
func succesCurResponse(let response : Response<String, NSError>) {
if let value = response.result.value {
let json = JSON(value)
let error = json["error"].stringValue
print(json["data"].error)
if(error.isEmpty) {
for(var i = 0; i < json["data"]["cursusses"].count; i++) {
let name = json["data"]["cursusses"][i]["cursus"]["curNaam"].stringValue
let id = json["data"]["cursusses"][i]["cursus"]["curId"].intValue
let catId = json["data"]["cursusses"][i]["cursus"]["catId"].intValue
let info = json["data"]["cursusses"][i]["cursus"]["curInfo"].stringValue
let thumbnail = json["data"]["cursusses"][i]["cursus"]["curThumbnail"].stringValue
let newCur = Cursus()
newCur.ID = id
newCur.name = name
newCur.info = info
newCur.thumbnail = thumbnail
}
}
else {
print(error)
}
}
}
Any suggestions?
Sorry, I don't know Swift. But the following Objective-C code will help you to resolve your issue.
Objective-C :
NSArray *cursussesArray = json[#"cursusses"];
for (NSDictionary *singlecursusseDict in cursussesArray) {
NSLog(#"%#", singlecursusseDict);
NSDictionary *cursus = singlecursusseDict[#"cursus"];
}
I give a try in Swift
let cursussesArray:NSArray = json[“cursusses”]
for singlecursusseDict: NSDictionary in cursussesArray {
print(singlecursusseDict)
cursusDict: NSDictionary = json[“cursus”]
print(cursusDict)
}
i have had some problems to set my constraint messages. Aparently, grails have problem to bind the message. Whem i display the errors validations messages i receive:
Field error in object 'br.com.tokenlab.pemaap.IndividualPerson' on field 'alternativeDoc': rejected value [Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus purus non erat tempus dictum. Nunc cursus tellus sed fermentum laoreet. Pellentesque vel ante dapibus, ullamcorper nisl id, rutrum ante. Etiam ex libero, aliquam consectetur orci aliquam.]; codes [br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.error.br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc,br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.error.alternativeDoc,br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.error.java.lang.String,br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.error,individualPerson.alternativeDoc.size.error.br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc,individualPerson.alternativeDoc.size.error.alternativeDoc,individualPerson.alternativeDoc.size.error.java.lang.String,individualPerson.alternativeDoc.size.error,br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.toobig.br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc,br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.toobig.alternativeDoc,br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.toobig.java.lang.String,br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc.size.toobig,individualPerson.alternativeDoc.size.toobig.br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc,individualPerson.alternativeDoc.size.toobig.alternativeDoc,individualPerson.alternativeDoc.size.toobig.java.lang.String,individualPerson.alternativeDoc.size.toobig,size.toobig.br.com.tokenlab.pemaap.IndividualPerson.alternativeDoc,size.toobig.alternativeDoc,size.toobig.java.lang.String,size.toobig]; arguments [alternativeDoc,class br.com.tokenlab.pemaap.IndividualPerson,Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus purus non erat tempus dictum. Nunc cursus tellus sed fermentum laoreet. Pellentesque vel ante dapibus, ullamcorper nisl id, rutrum ante. Etiam ex libero, aliquam consectetur orci aliquam.,1,255]; default message [Property [{0}] of class [{1}] with value [{2}] does not fall within the valid size range from [{3}] to [{4}]]
Soo, a input the data to invoke this exception intentionality. My problem is replace this worst error message to another.
My domain constraints code:
static constraints = {
cpf unique: false, blank: true, nullable: true, size: 1..255
rg blank: true, nullable: true, size: 1..255
alternativeDoc blank: true, nullable: true, size: 1..255
nationalityType blank: true, nullable: true, inList: ["B", "E"]
photo blank: true, nullable: true
dateOfBirth blank: true, nullable: true
gender blank: true, nullable: true, inList: Holders.config.individualPerson.gender
nameOfFather size: 1..255
nameOfMother blank: true, nullable: true, size: 1..255
person blank: false, nullable: false
maritalStatus blank: true, nullable: true
race blank: true, nullable: true
cityOfBirth blank: true, nullable: true
countryOfBirth blank: true, nullable: true
}
And my messages.properties:
individualPerson.cpf.size.error=Número de caracaretes inválio para cpf.
individualPerson.cpf.blank=O cpf não pode estar em branco.
individualPerson.cpf.nullable=O cpf não pode estar em branco.
individualPerson.cpf.cpf=Cpf inválido.
not.cpf=Cpf inválido.
individualPerson.rg.size.error=Número de caracaretes inválio para rg.
individualPerson.alternativeDoc.size.error=O número do documento deve conter entre 1 á 255 caracteres.
individualPerson.nameOfFather.size.toobig=O nome para o Pai de conter de 1 á 255 caracteres.
individualPerson.nameOfFather.size.toosmall=O nome para o Pai de conter de 1 á 255 caracteres.
individualPerson.nameOfMother.size.error=O nome para a Mãe de conter de 1 á 255 caracteres.
individualPerson.person.displayName.error=O nome para exibição de possuir entre 1 e 255 caracteres.
person.name.size.error=O nome da pessoa de possuir entre 1 e 255 caracteres.
person.displayName.size.error=O nome para exibição de possuir entre 1 e 255 caracteres.
You set that field "alternativeDoc" have MAX SIZE 255. You try to insert more chars.
I have a highchart bar graph due to the big number of categories.
Categories come in Unicode from json, but it is represented ok.
Some data is not represented ok.
My code:
$(function () {
var categories = ["ANALOGO","ANALOGO KLORNER","A\u00d1ADIR 1\u00aa PIEZA","A\u00d1ADIR RESTO PIEZAS","ARANDELA DE ORO","ARANDELA ZOCALO","CAJITA","CALCINABLE","CALCINABLE DIAMETRO 4","CALCINABLE KLORNER","CARILLA EMPRES","COMPLETA DEFINITIVA","COMPLETA PROVISIONAL","COMPOSTURA","COMPOSTURA PROTESIS","COMPOSTURA SIMPLE","CORONA CIRCONIO","CORONA CIRCONIO SOBRE IMPLANTE","CORONA EMPRESS SIN METAL","CORONA JACKET CERAMICA","CORONA METAL CERAMICA","CORONA PROVISIONAL CEMENTADA","CORONA SOBRE IMPLANTE","CUBETA DE RESINA","ESQUELETICO BILATERAL 1-3 PZAS","ESQUELETICO BILATERAL 3-5 PZAS","ESQUELETICO BILATERAL 5-8 PZAS","ESQUELETICO BILATERAL 8-14 PZAS","ESQUELETICO UNILATERAL 1-3 PZAS","FERULA DE BLANQUEAMIENTO","FERULA DESCARGA","GANCHO UNIDAD","IMPLANTE PROVISIONAL ATORNILLADO","MERYLAND PIEZA","PARCIAL ACRILICO 10 PZAS O M\u00c1S","PARCIAL ACRILICO DE 1-3 PZAS","PARCIAL ACRILICO DE 4 PZAS","PARCIAL ACRILICO DE 5 PZAS","PARCIAL ACRILICO DE 6 PZAS","PARCIAL ACRILICO DE 7 PZAS","PARCIAL ACRILICO DE 8 PZAS","PARCIAL ACRILICO DE 9 PZAS","PARCIAL ACRILICO PROV. 10 PZAS O M\u00c1S","PARCIAL ACRILICO PROV. DE 1-3 PZAS","PARCIAL ACRILICO PROV. DE 4 PZAS","PARCIAL ACRILICO PROV. DE 5 PZAS","PARCIAL ACRILICO PROV. DE 6 PZAS","PARCIAL ACRILICO PROV. DE 7 PZAS","PERNO MU\u00d1ON COLADO","PERNO MU\u00d1ON DOBLE COLADO","PILAR ANGULADO","PROTESIS HIBRIDA","REBASE PROTESIS","REPARACION ARCADA CERAMICA","REPARACION CERAMICA","REPLICA DIAMETRO 5 MM","SOBREDENTADURA CON LOCATOR","SOLDADURA","TORNILLO AVINENT","TORNILLO KLORNER","TORNILLO TITANIO","VARIOS"];
$('#container').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Stacked bar chart'
},
xAxis: {
categories: categories
},
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
}
},
legend: {
backgroundColor: '#FFFFFF',
reversed: true
},
plotOptions: {
series: {
stacking: 'normal'
}
},
series: [
{
name:'DENTALZUERA',
data: [
[categories.indexOf("COMPLETA PROVISIONAL"),4],[categories.indexOf("CORONA METAL CERAMICA"),1],
[categories.indexOf("CORONA SOBRE IMPLANTE"),2],[categories.indexOf("FERULA DESCARGA"),1],
[categories.indexOf("VARIOS"),1]
]
},
]
});
});
The problem here is that last category here is 62 (I guess is the index), instead of category number: "VARIOS". I guess it is a bug because it happens with highcharts v.3.0.4. but did not happen with v.3.0.2
See fiddle:
http://jsfiddle.net/Ra6Mc/38/
The worst problem is with some data series, that not all the "needed" category labels are represented:
I don't really know which criteria it choose or where my error is.
http://jsfiddle.net/Ra6Mc/37/
New data:
series: [
{
name:'DENTOTAL SALUD ORAL',
data: [
[categories.indexOf("COMPLETA PROVISIONAL"),4],[categories.indexOf("CUBETA DE RESINA"),2],
[categories.indexOf("PROTESIS HIBRIDA"),1],[categories.indexOf("VARIOS"),2]
]
}
]
Yes, it looks like a bug, reported here. Thanks!
Simple workaround is to use tickPositioner and set pointRange: 1 for series:
tickPositioner: function (min, max) {
var t = [],
interval = 1;
while (min <= max) {
t.push(min);
min += interval;
}
t.push(max)
return t;
}
jsFiddle