Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed yesterday.
Improve this question
When using postman or in the web and I try to call the API I get this error
{
"Message": "Error.",
"ExceptionMessage": "Unable to load the specified metadata resource.",
"ExceptionType": "System.Data.Entity.Core.MetadataException",
"StackTrace": " en System.Web.Http.ApiController.d__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.Dispatcher.HttpControllerDispatcher.d__0.MoveNext()"
}
I don´t know how to fix it.
Everything was working fine, I was consuming the API (published with IIS) with an APP, so then I made a change on the API and published it again to save changes in the IIS and when I tried to check the results using postman I get that error.
I reset the connection in IIS, and also check the connectionstring of my DB, but everything was fine.
Related
Created a new project for the Enterprise template, works fine in emulator (development and production), but in Web Chat, after waking it up with "hi", get the welcome card and "What is your name?" then "Sorry, it looks like something went wrong.". I have found this is due to a MissingMemberException exception at the first line of OnboardingDialog.AskForEmail where it retrieves the state:
_state = await _accessor.GetAsync(sc.Context);
One odd thing is that the AskForName method is called before this and successfully gets the (empty) state, but then doesn't actually wait for a response.
Any ideas?
Stack trace:
System.MissingMemberException: Property not set and no default provided.
at Microsoft.Bot.Builder.BotState.BotStatePropertyAccessor`1.d__7.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at EnterpriseBot.OnboardingDialog.d__8.MoveNext() in C:\dev\EnterpriseBot\EnterpriseBot\Dialogs\Onboarding\OnboardingDialog.cs:line 62
...
Thanks for any help,
David
I'm trying to add a WebSocket to existing code which handles HTTP requests. Not using IIS or ASP.NET, just C# code with an HttpListener. When the client sends the upgrade request, the server bombs:
System.Net.WebSockets.WebSocketException was unhandled by user code
ErrorCode=1229
HResult=-2147467259
Message=An error occurred when sending the WebSocket HTTP upgrade response during the AcceptWebSocketAsync operation. The HRESULT returned is '1229'
NativeErrorCode=1229
Source=System
StackTrace:
at System.Net.WebSockets.WebSocketHelpers.<AcceptWebSocketAsyncCore>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at mycode.<mymethod>d__46.MoveNext()
InnerException:
Calling code:
HttpListenerContext context = listener.GetContext();
if (context.Request.IsWebSocketRequest)
{
HttpListenerWebSocketContext wsContext = await context.AcceptWebSocketAsync(null);
I find the MS documentation on the entire WebSockets namespace to be useless with no code examples. I don't know what it's trying to tell me here (other than the obvious fact that I'm not handling the exception - I want to know why there is an exception in the first place).
This is Windows 10, .NET framework 4.5. I have noticed places in the documentation which say that WebSockets only works with Windows 8 and 2012, but I assume it should work with 10 too.
Had to go to Windows Features, under IIS (even though I'm not using IIS), and turn on WebSocket Protocol. I don't know whether this being off is Win10 default or just due to the image IT installed for me.
I get this error on the validation of the Work Item "Task.xml" when importing a customized version of the Scrum process template with a new name and a new ID in a TFS 2015 RTM team project collection with Visual Studio 2013 :
Exception message: The 'refname' attribute is not declared.
...
TF237070: Importing the definition failed.
The definition you are trying toimport did not validate against the schema.
Edit the definition, then try to import it again.
Here is the full detail in french :
2015-08-24T15:22:04 | Module : Work Item Tracking | Thread : 26 | Validation du type d'élément de travail à partir du fichier 'D:\IA_TFS_SOPCV_DAE\CV_TFS\Dev\Migration_TFS2015\Gabarits de processus\TFS2015\IA - Scrum\WorkItem Tracking\TypeDefinitions\Task.xml'...
---début de l'entrée d'exception---
Durée : 2015-08-24T15:22:04
Module : Work Item Tracking
Message d'exception : L'attribut 'refname' n'est pas déclaré. (type XmlSchemaValidationException)
Trace de la pile d'exception :
--- fin de l'entrée d'exception ---
---début de l'entrée d'exception---
Durée : 2015-08-24T15:22:04
Module : Engine
Description de l'événement : TF30162: la tâche "WITs" du groupe "WorkItemTracking" a échoué
Type d'exception : Microsoft.TeamFoundation.Client.PcwException
Message d'exception : TF237070: échec de l'importation de la définition. La définition que vous essayez d'importer n'a pas pu être validée par rapport au schéma. Modifiez la définition, puis réessayez de l'importer.
Trace de la pile :
à Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Validate(ProjectCreationContext ctxt, XmlNode taskXml)
à Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskValidator.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
à Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)
-- Exception interne --
Message d'exception : TF237070: échec de l'importation de la définition. La définition que vous essayez d'importer n'a pas pu être validée par rapport au schéma. Modifiez la définition, puis réessayez de l'importer. (type ProvisionValidationException)
Trace de la pile d'exception : à Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.GetXml(TextReader stream, SchemaType type, ImportEventHandler handler)
à Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.GetXml(Stream stream, SchemaType type, ImportEventHandler handler)
à Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.GetXml(String xml, SchemaType schema, ImportEventHandler handler)
à Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.UploadTypeDefinition(String file, Boolean execute)
à Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.Validate()
à Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Parse(ContextWrapper wrapper, XmlNode taskXml, Boolean fExecute)
à Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Validate(ProjectCreationContext ctxt, XmlNode taskXml)
--- fin de l'entrée d'exception ---
I compared the Work Item template "Task.xml" of the customized Scrum Template
WorkItem Tracking\TypeDefinitions\Task.xml
with the original one
C:\Program Files\Microsoft Team Foundation Server 14.0\Tools\Deploy\ProcessTemplateManagerFiles\1033\Scrum\Template.zip\WorkItem Tracking\TypeDefinitions\Task.xml
and they are the same.
Any idea?
OK I spent almost 2 days with the same error message. "Exception Message: The 'refname' attribute is not declared.".
I was using Visual Studio 2013 (because the 2013 TFS Power Tools were available, but the 2015 TFS Power Tools as of this writing are not yet available). After I customized and renamed my downloaded copy of the default CMMI process template in Visual Studio 2013 using the 2013 TFS Power Tools, I then went to upload it back up to TFS 2015. This is when I kept getting the "Exception Message: The 'refname' attribute is not declared." error. Like you, for the life of me I could not figure out where it was actually missing the attribute.
Then I had a hunch, and I went over to Visual Studio 2015 and tried to do the same upload process. Well Visual Studio 2015 gave me a completely different and more accurate error message saying "VS402479: You can't overwrite the CMMI process template, because it's locked. For more information about customizing process templates, click 'Help'.". When I searched for this error message, I found this resource. In case this link does not work in the future, it said "you can't upload any templates to TFS 2015 having the same version type as one of the predefined process templates (Agile, Scrum, CMMI) as they're now locked down. you need to change version type guid". So in the ProcessTemplate.xml file make sure you give it a unique value in the "name" element and a unique GUID in the "type" attribute of the "version" element. You can generate a unique GUID using Visual Studio tools under TOOLS -> Create GUID. After making these changes I was able to successfully upload the process template using Visual Studio 2015 (I didn't try VS 2013, but I would assume it would work too after making my suggested updates).
Additional Info: you have to take VS2015. I changed the ID and Name and tried the upload with VS2013 and got the same error. With VS2015 it worked like a charm.
So I try to make a post request having no internet connection using next modified code:
WinHttpReq := CreateOleObject('WinHttp.WinHttpRequest.5.1');
WinHttpReq.Open('POST', '<your_web_server>', false);
WinHttpReq.SetRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
try
WinHttpReq.Send('data');
except
bla:= 'e';
finally
bla := 'f';
end;
Yet exception does not get catched and I get crush of my setup application with next image:
How to handle OleObject exception in Inno Setup?
Your code is incomplete, but try..except block catches all the exceptions, including those thrown by OLE objects. However, your screenshot shows the line number, where the exception was thrown, and so you were running debugger.
And debugger shows all exception messages regardless they are in a try..except block, unless you uncheck "Pause on exceptions" option in Inno Setup IDE settings:
By default is this option enabled (which I would recommend to keep), which means that all exceptions are reported as exception messages and that's what might have mislead you. If you were running your setup without debugger attached, you wouldn't see that exception message.
I am working with Jira/Rally and the the Ruby connector. I was tapped to test out the connector and make sure it will do everything we need. I have to confess that this isn't my area of expertise, I am unable to find relevant help on the Rally site and the previous topics here were tied to different issues.
The error I am running into is:
[2013-01-18 15:21:38 Z] DEBUG : Finding method getIssuesFromJqlSearch
[2013-01-18 15:21:39 Z] ERROR : ConnectorRunner.rescue in run_services - Unexpected exception occurred
[2013-01-18 15:21:39 Z] ERROR : ConnectorRunner.exception - Message undefined method `key' for nil:NilClass
[2013-01-18 15:21:39 Z] ERROR : ConnectorRunner.exception - Stack Trace
I am connecting to both services just fine (after having worked through some fun proxy issues), and am working off the base jira_config.xml that comes with the connector. I have changed only the required fields, ie UN/PW/URL/Project/Workspace
Relevant xml code:
<RallyConnection>
<Url>rally1.rallydev.com</Url>
<WorkspaceName>CMSJiraIntegrationTestWorkspace</WorkspaceName>
<Projects>
<Project>Sample Project</Project>
</Projects>
<User>***************</User>
<Password>encoded-T-i-F-j-b-2-x-l-M-j-A-=-</Password>
<ArtifactType>Defect</ArtifactType>
<ExternalIDField>JiraDefectKey</ExternalIDField>
<CrosslinkUrlField>JiraLink</CrosslinkUrlField>
</RallyConnection>
<JiraConnection>
<Url>http://10.34.10.175:8080</Url>
<User>***************</User>
<Password>encoded-a-m-F-t-Z-X-M-u-Y-m-V-p-b-n-M-=-</Password>
<ArtifactType>Bug</ArtifactType>
<Project>SP</Project>
<ExternalIDField>RallyID</ExternalIDField>
<CrosslinkUrlField>RallyURL</CrosslinkUrlField>
<CopySelectors>
<CopySelector>Status != Closed</CopySelector>
</CopySelectors>
</JiraConnection>
Does anyone have insight as to why this would fail?
The help is much appreciated
Are you sure you've got JIRA remote API enabled? It seems to crash just after looking for SOAP method "getIssuesFromJqlSearch".
Could you please post the full log file generated from starting the connector to when it crashed?