unable to load CRM organization - dynamics-crm

I can't connect to the V9 on premise env with plugin registration tool, I'm getting the error: Unable to load the CRM organization.
I have searched similar questions but my issue is not similar, stack trace doesn't mention anything releated to the user or to the role.
Can you give me an advice ?
stack trace(details of the error):
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Tools.Libraries.CrmPluginStep.RefreshFromSdkMessageProcessingStep(Guid assemblyId, SdkMessageProcessingStep step, String secureConfig)
at Microsoft.Crm.Tools.Libraries.OrganizationHelper.LoadSteps(CrmOrganization org, Dictionary`2 typeList, Dictionary`2& crmStepList)
at Microsoft.Crm.Tools.PluginRegistration.Helper.<>c__DisplayClass4_0.<OpenConnection>b__0(Object o, DoWorkEventArgs e)

Related

Installation 2SexyContent in Dnn Portal (dnnSoftware)

When I install 2sxc in DnnSoftware in recent versions I got the following error message.
My provider has SQL Server switch to "czech_CI_AS" I canĀ“t this change to US-language.
Does anyone have advice?
SqlDataProvider
Info Created - SqlDataProvider\00.99.00.SqlDataProvider
Info Executing 00.99.00.SqlDataProvider
Info Start Sql execution: 00.99.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.
SqlClient.SqlException (0x80131904): Your SQL installation is non-standard
using a Custom Object Qualifier. 2sic uses the standard Microsoft Entity
Framework which doesn't work well with this feature - installation aborted.
**Changed language setting to us_english**. at System.Data.SqlClient.
SqlConnection.OnError(SqlException exception, Boolean breakConnection,
Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.
OnError(SqlException exception, Boolean breakConnection, Action`1
wrapCloseInAction) at System.Data.SqlClient.TdsParser...
You seem to have installed DNN with a custom "qualifier". The default is dbo but the install dialog allows you to change it. it's an old feature meant to "share" a sql for multiple customers. 2sxc can't be installed in this setup - sorry :(

COMException (0x80004005): Slides (unknown member) : Failed thrown in InsertFromFile method

I'm working with powerpoint presentations using Microsoft Interop library. Exception from title is thrown on adding slide to presentation via Interop library method.
File exists, path is correct, index is valid.
inpPre.Slides.InsertFromFile(tmpPathInsert, inpSldCom.SlideIndex);
This code worked as it has to for plenty of presentations and throws exception on specific slides.
Error:
System.Runtime.InteropServices.COMException (0x80004005): Slides (unknown member) : Failed.
at Microsoft.Office.Interop.PowerPoint.Slides.InsertFromFile(String FileName, Int32 Index, Int32 SlideStart, Int32 SlideEnd)
Any thoughts on why is this happens?
The PowerPoint that the file path is pointing to does not exist. Be sure to check the path and make sure it's pointing to the file you want to use. I recommend following the path exactly to see where it leads and make sure the file exists there.

SQL Error on lead form for email - CRM 2015

On the lead form when I enter in Email id and hit save it throws a following SQL error below, but there's no error, if I leave it empty.
here is the log file message
Unhandled Exception:
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault,
Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35]]: Generic SQL error.Detail:
Based on the log file message and the public key token and research, I disabled the plugin activity plugin on lead form, I still receive the error message on form.
How to resolve this issue ?
You will need to debug the Generic SQL Error message to find more detail on the problem. Try turning on server logging and review the CRM log files, failing that try and capture the error within SQL.

Validation failed in Entity Framework, ASP.NET MVC3

My application using ASP.NET MVC3 with EF4.1, deployed on IIS7. Recently I've meet an error when trying to save an entity to an existing database on the production server, but everything goes well on my development machine.
I tried to build deploy package in VS2010 and import that package in IIS7, also, I've tried to upload all the solutions and create an application in IIS7 manually, but both of the 2 sites come to an error when executing a function that saves an entity to the database.
Error message is pasted below, but the physical path in error message does not exist in the production server, it's a path in my local development machine. This makes me confused. Has anybody ever seen this before?
BTW, I've fully backed up my database and restored it on the production server, so all the databases are same.
I'm open to hear any advice.
Thanks
Cheng
Error message:
Server Error in '/xxxx' Application. Validation failed for one or
more entities. See 'EntityValidationErrors' property for more details.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details:
System.Data.Entity.Validation.DbEntityValidationException: Validation
failed for one or more entities. See 'EntityValidationErrors' property
for more details.
Source Error: An unhandled exception was generated
during the execution of the current web request. Information regarding
the origin and location of the exception can be identified using the
exception stack trace below.
Stack Trace:
[DbEntityValidationException: Validation failed for one or more entities. See
'EntityValidationErrors' property for more details.]
System.Data.Entity.DbContext.SaveChanges() +212
xxxxx.Models.SetupRepository.CreateApplicationOption(Guid companyId) in
D:\xxxx\Models\SetupRepository.cs:59
xxxxx.MvcApplication.MvcApplication_PostAcquireRequestState(Object sender, EventArgs e) > in D:\xxxx\Global.asax.cs:87
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+148 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) +75

Umbraco installation problem. Can not install starter kit. The key was not present in the dictionary

This is a problem I get when trying to install Umbraco. I know that Umbraco has its own forum, but they have just moved it to another url, and I can not seem to be able to post a question there. So I try here. I know this problem has been reported before, and have tried to implement the solutions other people have reported. But I still can not seem to get it working. I have tried to both use Windows installer, as well as setting up the site myself. Last week I managed to create a site, and install a starter kit. But now I can not make it work. No idea why. I do the exact same steps as last week. I have .NET 4.0, IIS 7 and Windows 7. The Umbraco version is the latest (4.7).
No matter if I use Windows installer, or the binary-package from Codeplex, the installation process works fine until the step when I am presented the choice of installing a starter kit. I press for example the Business Startkit, but then I get the error below. I have given full permission for my application folder in inetpub, to IIS_IUSRS, Network service and Network. I have done the same for C:/Temp folder (as suggested by someone). I am using an app-pool that runs on .NET 4.0 in Integrated mode. I also set it to use Network service. I have also tried to both start off with a blank database, as well as creating a new one. The database gets populated with tables. The folder in inetpub is also filled with all the folders and files that should be there. I have also tried using SQL CE, but with out luck. And I do have a working internet connection.
Does anybody have any ideas on how to solve this? It's getting really frustrating. I think I have tried all the suggestions in the other threads, but I might have misunderstood something, missed some steps, or forgotten some advice. Any suggestions are highly appreciated.
The error I get:
Server Error in '/site_development' Application.
The given key was not present in the dictionary.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[KeyNotFoundException: The given key was not present in the dictionary.]
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +2258321
umbraco.cms.businesslogic.datatype.controls.Factory.GetNewObject(Guid DataEditorId) +108
umbraco.cms.businesslogic.datatype.DataTypeDefinition.Import(XmlNode xmlData) +459
umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +187
umbraco.presentation.install.steps.Skinning.loadStarterKits.SelectStarterKit(Object sender, EventArgs e) +416
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +118
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +113
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +9
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
Are you able to install Umbraco firstly without the starter kit?
If so it maybe an issue with the starter kit itself.
Or get the latest nightly build from Umbraco here http://nightly.umbraco.org/

Resources