locked
crm plugin registration tool, error when connecting RRS feed

  • Question

  • When using the registration tool, the first thing is to enter a new connection.  I fill in the label then, whether I fill in the other fields or not, i get the following error when clicking either Connect or Save


    ************** Exception Text **************
    System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Connections.config' is denied.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
       at PluginRegistrationTool.ConnectionsForm.SaveConnectionsFile() in C:\TFS\DynamicsCRM\Main\pluginregistrationtool\ConnectionsForm.cs:line 704
       at PluginRegistrationTool.ConnectionsForm.SaveConnectionInformation() in C:\TFS\DynamicsCRM\Main\pluginregistrationtool\ConnectionsForm.cs:line 530
       at PluginRegistrationTool.ConnectionsForm.SaveChanges(Boolean saveIfNewItem, Boolean queryUser, Boolean deselectNode) in C:\TFS\DynamicsCRM\Main\pluginregistrationtool\ConnectionsForm.cs:line 342
       at PluginRegistrationTool.ConnectionsForm.btnConnect_Click(Object sender, EventArgs e) in C:\TFS\DynamicsCRM\Main\pluginregistrationtool\ConnectionsForm.cs:line 204
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    If I choose to Continue, then the tool appears to work, but it means that I can never save a connection and I have to enter it each time.

    Note: I have another problem, listed under a different question, which occurs later on.

     

    Wednesday, August 18, 2010 3:29 PM

Answers

  • Hi

    Look like you have stored the plugin registration tool in TFS. Please can you make sure that Connections.config has readonly attribute removed.

    Go to this path C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Connections.config

    Right Click Connections.config -> properties -> general Tabl -> uncheck the Reoadonly attribute

    Thanks,

    Amar

    • Marked as answer by DianneEvans Thursday, August 19, 2010 7:25 AM
    Wednesday, August 18, 2010 4:14 PM