Visual web part first time connection to CRM are wery slowly - c#

I have sharepoint 2010 solution with 3 web parts, which connects to Microsoft Dynamics CRM, when I open one of three web parts on first time, they are very slow in being connect to CRM, after the first load everything works pretty quickly.
which could be the problem and what could be a solution to solve the problem?

Use fiddler to verify, but it sounds like this is related to the initial login/handshake.

Related

ASP.NET Web Forms WebApp Incredibly Slow

I have a web app written in ASP.NET Web Forms which takes like 7 seconds to perform any anction.
The browser tools says that the loading time is spent to actually send the request, while to retrieve it is fine.
Here are a couple of screenshots
How could I test what's wrong other that that?
I have other applications coming from the same source code, and those works fine.
The webApp is running on a local IIS server (8.5) using a classic asp.net 4 app pool and is made in Visual Studio 2010 (althought I could test it with 2013 also)
I scanned the whole thing using Ants Performance profiler
but I found nothing.
Anyway I found the cause were a really simple query which should've returned back a single line..
The db wasn't properly indexed so it took forever to load
Removing that query solved the problem for me
Thank guys

Azure web Application CodeFirst Error

I'm creating a Web Application in visual studio for an application.
On localhost, its working smooth, the problem comes when I port it to azure.
http://infolab.azurewebsites.net/api/users/getuserlist
This is the error I get in every single method of the API.
I've created a database in MySQL with MySql Workbench and used entityframework to implement his usage.
Any help?
Thanks
I was having what sounds like the same issue (Can't see the error on the link but my error was in regards to CODEFIRST/Entity issue), couldn't find answers anywhere that would work for me. After a day of trial and head slapping I came across a connection strings setting on Azure that I'd completely forgot I had set up.
Home > App Services > {YOUR APP} > Configuration
At the bottom of the page you'll find Connection Strings . If it is the same problem I was having you'll have at least one in the listings. This setting was overriding my connection strings in code and it was written in a code first format (no meta tag). I simply deleted the entry in Azure then re-published my code. Worked fine after that.
Connection String Section in Azure -> APP -> Configuration
Hope that helps somebody.

Workaround for service to communicate with Quickbooks via QuickBooks SDK 13?

I've been working on a project for a customer for some time now, and we keep hitting this issue where QuickBooks and our application seem to be running in different user contexts or something of the sort.
This is a very simple Web Application that is using a basic Web Handler to take in requests, query QuickBooks, and send the Response with any results.
After many back and forths with Intuit, they made it quite clear that running the App as a service isn't suppported by QuickBooks.
We tried working around this by creating our own simple server with an HttpListener that would be able to handle the requests instead of IIS. This seemed to make sense as we could run this within the same user context that QuickBooks is running in. As of now I'm still having no luck with this approach.
Any ideas would be greatly appreciated.
Thanks

What is an event broker? and how do you configure one on windows 2008?

I am trying without complete success to create a wso2 identity server on a windows server 2008 vm. I followed the online instructions and installed the pre-requisits (jre and jdk), downloaded the zip file, setup the environment variables, and ran the wso2server.bat file. There were a lot of errors.
I then realized I needed to add active directory role on the server, which I did. It still wouldn't install. I did some more online research which led me to believe I needed to install wso2 esb as well, which I did. I was able to get that install to work and was able to create a desktop app to consume the web services. All well and good. but then as part of the requirements they wanted to enable passive sts with an asp.net client (not really sure what that is), so I went back to the identity server and am still getting errors while running the bat file, though I an able to run the gui from the browser, but unable to log in.
The exception I am getting is :
TID: [0] [IS] [2013-10-07 10:34:58,746] ERROR {org.wso2.carbon.event.core.internal.builder.EventBrokerHandler} - Can not create the event broker {org.wso2.carbon.event.core.internal.builder.EventBrokerHandler} org.wso2.carbon.event.core.exception.EventBrokerConfigurationException: Can not access the user registry
in addition, I am also getting authentication errors on some of the esb web calls, but not all, and I would also like to know how to change from the default user store (ldap or ad or whatever it is) to sql server.
I have seen a few examples for doing it with mysql and oracle, but not sql server, specific product information is sometimes challenging to find.
Any help would be greatly appreciated.
Thanks. Mike

asp.net application integration with quickbooks using odbc driver [duplicate]

I am writing a simple web application that needs to retrieve a list of customers from QuickBooks and display it in a DataGrid. I have the web connector installed and setup on the server hosting the QB data file using the web service example included in the SDK.
I can add the service to my project and interact with it, but when I try to find information about how to query QB using the web service all I can find are links to vague and mostly useless documentation. What I’m hoping someone here can do is provide a real example (code included) of how you submit a query to QB and display the results.
My environment:
QuickBooks 2009 Pro
IIS 7
C#.Net 3.5
Normally I have good success doing things like this, but for some reason this one has me stumped. Many have suggested that I should run far and fast from anything that involves integrating QuickBooks with anything. Come cant, it can’t be that hard.
As always, thanks in advance for any help you may offer.
Have you read the official developer's guide?
http://developer.intuit.com/uploadedFiles/QuickBooks_SDK/QBSDK/QBWC_proguide(1).pdf
What looks easiest in this scenario, if you have experience working with other odbc data sources in C#, would be to use an ODBC implementation of the QB data. I'm not sure if there are others, but there is a commercial one (with a free trial) available here: http://qodbc.com/

Categories

Resources