Error when trying to generate early bound entity classes using crmserviceutil - dynamics-crm-2011

I have used crmservicetuil.exe that comes with CRM SDK many a times before for online instance of CRM 2011.
It did work for the plugins and the integration tool for the online instance of CRM that i developed for our client,that is until about a month and a half back (that is when we last deployed our solution).
However I cant figure out what changed on their system, am trying to generate the early bound entity class using the following command(the same which i used earlier and it worked fine)
CrmSvcUtil.exe /url:https://<ORGNAME>.api.crm.dynamics.com/XRMServices/2011/Organization.svc /out:Xrm.cs /username:myid#outlook.com /password:myP#ssword /namespace:Xrm /serviceContextName:XrmServiceContext
but there is an error thrown that says,
exiting the program with exception: The parameter is incorrect.
What could have possibly changed to cause this error? Am still having the login permissions and am able to navigate to the https://.api.crm.dynamics.com/XRMServices/2011/Organization.svc when given the same id and password.
there is only one difference though(may or may not be useful):The last time I used the command, i used my non live id (office-365). Removed the license for that user and added a new one with an outlook(live) id about 2 weeks back.
Thanks for all your help.

See this posts: Run the Code Generation Tool or CrmSvcUtil.exe: to use Live Id you need to generate and add Device Id and Device Password to yours command string.

Related

Error when assigning dashboard to new user Liferay 7.3.5

We are using liferay 7.3.5 and have about 600 users that make use of the personal dashboard. When a new user is added, they get assigned a profile and dashboard programmatically. however, recently we have ran into a problem regarding the assigning of the dashboard.
when a new user is added to the platform, the profile assigns as normal, but the dashboard will say (on the "profile and dashboard" tab of the new user) "This user does not have any private pages."
we have chosen several different templates all of which assign without fail. we have also tried to deconstruct the existing template, but only when it has been entirely cleared and is basically a fresh start, does it work again. The dashboard still works for any of the users that have gotten assigned it before it 'broke'.
this is the error code we recieved. we have not been able to trace back the FileEntry ID. we have been stuck on this matter for a while now, but it's not an option for us to rebuild a completely new dashboard.
2022-05-27 13:51:38.335 ERROR [http-nio-8080-exec-12][SitesImpl:1927] Unable to export layout set prototype 207822
com.liferay.exportimport.kernel.lar.PortletDataException: No FileEntry exists with the key {fileEntryId=884352}
Does anyone know what could be causing this error and/or how to solve it?
Your own custom servicebuilder service (with the namespace declaration GB) has been redeployed with a newer version and might be incompatible:
Build namespace GB has build number 54 which is newer than 36
You'll find more information about Upgrade Processes in Liferay's documentation, or in these two blog articles - this documentation would go beyond the scope of a simple answer on stackoverflow:
ServiceBuilder and Upgrade Processes
Building in Upgrade Support

Access Core Data from extension without provisioning profile on macOS?

I'd like to add a Quick Look extension to my program, but in order to be useful, it would have to access the Core Data stack, which seems to require me to add an App Group and a provisioning profile to the project.
Until now, it has been possible for anyone to download the project from Github and compile and run it out of the box. All project targets are set to Team: None and Sign to Run Locally. If I add my provisioning profile to the project, this will no longer work. They will have to create and add their own provisioning profile and change the Signing & Capabilities settings on each of the 26 targets (there seems to be no way to do them all at once). And the profile will have to be renewed every year.
My question is, is there any way around this? Is such a major change really necessary for what amounts to accessing a file inside the program's own bundle (and another in its Application Support folder?)
EDIT: As was pointed out to me on the Apple Developer forum, you don't need a provisioning profile as long as you prefix the group name with the development team identifier. This still won't make it build out of the box, though. You will still need a developer account and set a team on every target.
I had missed that you are supposed to have a team identifier as the prefix for the group name. That still doesn't solve the problem that my project will no longer build out of the box for anyone who downloads it from Github, but it answers the question asked in the subject line.

Visual Studio Team Services Release Fails - Extraneous Variable

As of Wednesday, sometime between 2:01 pm and 2:43 pm Eastern, Visual Studio Team Service Release Management began failing in the Azure Web App Deployment Task, during the Deploy Website to Azure step with the generic error:
You cannot call a method on a null-valued expression
We created a new Release Definition, but it exhibits the same issue.
I attempted a Release with the previously successful version of the build, and it too exhibits the same exception.
I have verified that there is no deploy.cmd in the repository.
I have verified the items in the change set for the build.
They only touched one .cs file, three .js files, and changed the value of the <add key="Client.CacheVersion" value="X"> from 4 to 6.
Though the documentation states that the -ErrorVariable is valid for the script in question. The only difference in the log files (pre-failure information) is the addition of -ErrorVariable publishAzureWebSiteError to the end of the Publish-AzureWebsiteProject call.
Is there anyway to either populate the publishAzureWebSiteError, or remove this extraneous variable?
UPDATE:
After adding system.debug. I see that I am unable to resolve {mysite}.scm.azurewebsites.net.
UPDATE II
After 2 hours with Microsoft it appears that Release Management is having some difficulty working with App Service Environments. At first it was unable to map the scm URL appropriately and once we added the expected suffix to the Web App Name field we received the error:
Conflict: The host name MY_WEB_APP.APP_SERVICE_NAME.p.azurewebsites.net is already assigned to another Azure website: MY_WEB_APP.
FINAL UPDATE
It appears that the releases are now running as expected with in at least on the previously failing releases no changes were made. Since MS clearly changed something on their end, this question will provide no benefit to future users. I am voting to close it.
As this question has yet to be closed.
For those that come after:
The fix came from Microsoft. Premier support emailed me with the following this morning:
I just spoke to the developer who pushed the fix. And the fix has to do with correctly forming a SCM name which in your case is part of ASE. So there were no exceptions being raised this time and it worked for you.
So there are/were no workarounds, nor changes even possible on the part of the end user.

Dynamic CRM Plugin Registration Tool returns unsecured or incorrectly secured fault

I got an error while trying to register plugin using the plugin registration tool in the SDK. The problem comes out of nowhere since before today I always able to do plugin registration using the tool with ease.
The error message is this:
Unhandled Exception: System.ServiceModel.Security.MessageSecurityException:
An unsecured or incorrectly secured fault was received from the other party.
Inner Exception: System.ServiceModel.FaultException: An error occurred when verifying security for the message.
I've done my searching and already try some steps that commonly suggested which are:
Deleting the LiveDevice.xml file under Users{username}\LiveDeviceID
Deleting the Connections.config file within the Plugin Registration Folder
Reboot the PC
Making sure the discovery url is correct (using: https://disco.crm5.dynamics.com/XRMServices/2011/Discovery.svc)
Download and using the latest SDK.
My environment is Windows 8 64-bit.
However, it didn't resolved my issue.
Is there any steps or things that I've missed or may done wrongly?
Following Guido comments about date & time of PC, I check the Dynamic CRM Online 2011 timezone, turns out it is set to (GMT +8 Krasnoyarsk), since I live in Singapore I changed it into (GMT +8 Singapore, Kuala Lumpur).
It is a long shot since the GMT is the same (+8), but I try it anyway and turns out it fixed the problem, I double check and change it again into Krasnoyarsk and again it's not working.
I'm not sure why this is causing it, since it is the same GMT, but for now I'll settle with this, maybe I'll raise a new topic for this later.
Thanks!

Writing the Windows Event Log using Visual Studio C++ 6

I am attempting to write a simple function using VC++6 to write to the event log. It must be in this version of studio because it is being added to a legacy application. The problem that I am having is that it writes the message similar to below. The only thing that is valid here is the "This is a test" string. I don't need this to be very complicated. I just need to be able to write to the event log for a specific application. Any thoughts? I have seen a few articles but they appear to be a lot more than I need.
The description for Event ID 3 from source Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
This is a test
the message resource is present but the message is not found in the string/message table
It's been a very long time, but I seem to remember that you might need to create a *Message Resource Dll" to fix this. Or at least have some message resources somewhere.
This article seems like it might be able to help (and it support VC6): Using MC.exe, message resources and the NT event log in your own projects

Resources