Giter VIP home page Giter VIP logo

Comments (3)

hershi avatar hershi commented on August 30, 2024

I can only venture a guess here, since the exception message doesn't call out which value was null - it seems like you're trying to set the value of "Changed By" when updating the item, and the value you're trying to assign to it as an empty string (possibly null string). I suspect that this is an invalid value, which causes the exception. Try disabling the update of "Changed By" and see if that solves the issue

Relevant excerpt from the log you shared:
2017-02-06 11:00:27,130 [10] INFO Mail2Bug.MessageProcessingStrategies.SimpleBugStrategy [(null)] - Modifying work item 22 subject: RE: Test Bug2mail
2017-02-06 11:00:27,135 [10] INFO Mail2Bug.MessageProcessingStrategies.NameResolver [(null)] - Resolving name for alias/name ccstestsw/CCS Support Test
2017-02-06 11:00:27,139 [10] WARN Mail2Bug.MessageProcessingStrategies.SpecialValueResolver [(null)] - Name resolution failed for sender alias 'ccstestsw'. Returning display name.
2017-02-06 11:00:27,313 [10] WARN Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - 'CCS Support Test' is an invalid value for Changed By. Trying to find approximate value.
2017-02-06 11:00:27,322 [10] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Approximate value is
2017-02-06 11:00:40,468 [10] ERROR Mail2Bug.Mail2BugEngine [(null)] - Error processing message
Microsoft.TeamFoundation.WorkItemTracking.Client.UnexpectedErrorException: There is a problem on the server. Contact your Team Foundation Server administrator. ---> System.Web.Services.Protocols.SoapException: Object reference not set to an instance of an object.
...

from mail2bug.

hershi avatar hershi commented on August 30, 2024

Closing for now, since it seems like an issue with configuration rather than the code. Please reopen if needed

from mail2bug.

inayat68 avatar inayat68 commented on August 30, 2024

Hello,

For my TFS project https://htrx.visualstudio.com/ which is configured with an office365 email account @health.com. As I did all configuration settings in my Mail2bug App and it successfully reads and queue these emails to TFS but failed to connect to TFS account/server.

Please advise where I am doing wrong? The password is also okay as it is reading the emails correctly from inbox and TFS is configured with same email account.

Also advise about the path to set in tag. I tried following one by one but none of them worked:

Below is the error log and screen shot showing the error line selected:

E:\Inayat\TFSEmailConfiguration\mail2bug-master\Mail2Bug\Service>mail2bug.exe
2017-09-19 11:04:58,551 [1] INFO Mail2Bug.MainApp [(null)] - Initializing engine for instance 'GuideMed' (Persistent? True)
2017-09-19 11:04:58,573 [1] INFO Mail2Bug.Mail2BugEngine [(null)] - Initalizing MailboxManager
2017-09-19 11:04:58,580 [1] INFO Mail2Bug.Helpers.DPAPIHelper [(null)] - Reading encrypted data from file .\Resources\mail2bug.bin
2017-09-19 11:04:58,580 [1] INFO Mail2Bug.Email.EWS.EWSConnectionManger [(null)] - Creating FolderMailboxManager for ([email protected], [email protected], 151243584, False)
2017-09-19 11:05:24,747 [1] INFO Mail2Bug.Mail2BugEngine [(null)] - Initializing WorkItemManager
2017-09-19 11:05:24,762 [1] INFO Mail2Bug.MainApp [(null)] - Finished initialization of engine for instance 'GuideMed'
2017-09-19 11:05:24,762 [1] INFO Mail2Bug.MainApp [(null)] - --------------- Iteration 0 ---------------
2017-09-19 11:05:24,762 [1] INFO Mail2Bug.Email.EWS.EWSConnectionManger [(null)] - Processing inbox for connection ([email protected], [email protected], 151243584, False)
2017-09-19 11:05:24,779 [1] INFO Mail2Bug.Email.EWS.RecipientsMailboxManagerRouter [(null)] - Processing inbox for RecipientsMailboxManagerRouter
2017-09-19 11:05:27,855 [1] INFO Mail2Bug.Email.EWS.RecipientsMailboxManagerRouter [(null)] - Adding message to client queue: Client ID 100; subject: TFS - Test Issue 16
2017-09-19 11:05:27,855 [1] INFO Mail2Bug.Email.EWS.RecipientsMailboxManagerRouter [(null)] - Finished processing inbox for RecipientsMailboxManagerRouter
2017-09-19 11:05:27,870 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Running for config instance 'GuideMed'
2017-09-19 11:05:27,870 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Found 1 messages for Instance GuideMed. Processing...
2017-09-19 11:05:27,870 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Processing message TFS - Test Issue 16
2017-09-19 11:05:27,888 [8] INFO Mail2Bug.Mail2BugEngine [(null)] - Working in standard mode, using TFSWorkItemManager
2017-09-19 11:05:27,908 [8] INFO Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - Connecting to TFS https://htrx.visualstudio.com/GuideMedApp/_home using Microsoft.TeamFoundation.Client.TfsClientCredentials credentials
2017-09-19 11:05:31,549 [8] WARN Mail2Bug.WorkItemManagement.TFSWorkItemManager [(null)] - TFS connection attempt failed.
Exception: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException: TF31002: Unable to connect to this Team Foundation Server: https://htrx.visualstudio.com/GuideMedApp/_home.
Team Foundation Server Url: https://htrx.visualstudio.com/GuideMedApp/_home.

Possible reasons for failure include:

  • The name, port number, or protocol for the Team Foundation Server is incorrect.
  • The Team Foundation Server is offline.
  • The password has expired or is incorrect.

Technical information (for administrator):
The remote server returned an error: (404) Not Found. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequestAndGetResponse(HttpWebRequest webRequest, WebException& webException)
--- End of inner exception stack trace ---
at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
at Microsoft.TeamFoundation.Client.TfsConnection.EnsureAuthenticated()
at Mail2Bug.WorkItemManagement.TFSWorkItemManager.ConnectToTfsCollection() in
tfs-issue

Thanks

Inayat Ur Rehman

from mail2bug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.