bug in DevExpress.XtraEditors.TextEditController.DocumentTextLayoutHelper.ProcessTrimming - devexpress

I encountered following error in recent devexpress update 22.1 when using LookupEdit I encountered following bug:
Index and length must refer to a location within the string.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at DevExpress.XtraEditors.TextEditController.DocumentTextLayoutHelper.ProcessTrimming(String text, LineCharInfo[] chars, Int32 startChar, Int32 maxWidth, Int32 ellipsisWidth, StringTrimming trimming, String& result, Int32& lineWidth)
at DevExpress.XtraEditors.TextEditController.DocumentTextLayoutHelper.CreateDocumentLines(IntPtr hdc, String text, LineCharInfo[] charInfos, Int32 length, Rectangle bounds, Int32 lineHeight, StringFormat format, Boolean isRightToLeft, Int32& subLineCount)
at DevExpress.XtraEditors.TextEditController.DocumentTextLayoutHelper.DrawText(String text, Rectangle bounds, UniscribeString uniString, Boolean isRightToLeft, IntPtr hdc, StringFormat format, MultiColorDrawStringParams e, CharacterRange[] ranges)
at DevExpress.Utils.Paint.XPaintMixed.DrawMultiColorStringCore(GraphicsCache cache, MultiColorDrawStringParams e, Rectangle rBounds, CharacterRange[] ranges)
at DevExpress.Utils.Paint.XPaint.MultiColorDrawString(GraphicsCache cache, MultiColorDrawStringParams e)
at DevExpress.Utils.Paint.XPaint.DrawMultiColorString(GraphicsCache cache, Rectangle bounds, String text, DisplayTextHighlightRangeArgs rangesInfo, AppearanceObject appearance, StringFormat stringFormat, Color highlightText, Color highlight, Boolean invert)
at DevExpress.Utils.Paint.XPaintMixed.DrawMultiColorString(GraphicsCache cache, Rectangle bounds, String text, DisplayTextHighlightRangeArgs rangesInfo, AppearanceObject appearance, StringFormat stringFormat, Color highlightText, Color highlight, Boolean invert)
at DevExpress.XtraEditors.Popup.PopupLookUpFormPainter.DrawCellMatchedText(LookUpCustomDrawCellArgs args, PopupLookUpEditFormViewInfo vi)
at DevExpress.XtraEditors.Popup.LookUpCustomDrawArgs.DefaultDraw()
at DevExpress.XtraEditors.Popup.PopupLookUpFormPainter.DrawRow(LookUpCustomDrawRowArgs drawArgs, PopupFormGraphicsInfoArgs info, PopupLookUpEditFormViewInfo vi)
at DevExpress.XtraEditors.Popup.LookUpCustomDrawArgs.DefaultDraw()
at DevExpress.XtraEditors.Popup.PopupLookUpFormPainter.DrawRows(PopupFormGraphicsInfoArgs info, PopupLookUpEditFormViewInfo vi)
at DevExpress.XtraEditors.Popup.PopupLookUpFormPainter.DrawGrid(PopupFormGraphicsInfoArgs info)
at DevExpress.XtraEditors.Popup.PopupLookUpFormPainter.DrawContent(PopupFormGraphicsInfoArgs info)
at DevExpress.XtraEditors.Popup.PopupBaseFormPainter.Draw(PopupFormGraphicsInfoArgs info)
at DevExpress.XtraEditors.Popup.SimplePopupBaseForm.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at DevExpress.XtraEditors.DForm.WndProc(Message& m)
at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at DevExpress.XtraEditors.Popup.SimplePopupBaseForm.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Related

Thread Abortion in asmx web service

This error was happened on-and-off when executing the asmx service in background schedule job in production server. In my localhost it work fine. I had try to solve this thread abortion issue by adding System.Web.HttpContext.Current.Server.ScriptTimeout to 90 seconds and longer when process the background job but it still persist. The thread abortion sometimes might occur in different stage but mostly occurs in below stack trace.
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Net.UnsafeNclNativeMethods.OSSOCK.recv(IntPtr socketHandle, Byte* pinnedBuffer, Int32 len, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError& errorCode)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
at FirebirdSql.Data.Client.Managed.Version10.XdrStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at FirebirdSql.Data.Client.Managed.Version10.XdrStream.ReadBytes(Int32 count)
at FirebirdSql.Data.Client.Managed.Version10.XdrStream.ReadInt32()
at FirebirdSql.Data.Client.Managed.Version10.XdrStream.ReadNextOperation()
at FirebirdSql.Data.Client.Managed.Version10.XdrStream.ReadOperation()
at FirebirdSql.Data.Client.Managed.Version11.GdsDatabase.ReadOperation()
at FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ReadSingleResponse()
at FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ReadResponse()
at FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ReadGenericResponse()
at FirebirdSql.Data.Client.Managed.Version12.GdsStatement.Execute()
at FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteNonQuery()
at NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
at NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation)
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)
at NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session)
at NHibernate.Action.EntityUpdateAction.Execute()
at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
at NHibernate.Engine.ActionQueue.ExecuteActions()
at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)
at NHibernate.Impl.SessionImpl.Flush()
at NHibernate.Transaction.AdoTransaction.Commit()

An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.dll ASP.NET

This issue is making me crazy from past two days and I couldn't find any recursion is happening on this method and this issue happening recently, though none of the code has been changed, the following is my code
Calling the procedure:
Dim dssw As New Data.DataSet
dssw = RepSWSC()
The procedure:
Public Function RepSWSC() As Data.DataSet
Dim strConn As String = GetConnString()
Dim patient As String = String.Empty
Dim qid As String = String.Empty
patient = Session("patient")
qid = Session("qid")
Dim con As SqlConnection
If con Is Nothing Then
con = New SqlConnection(strConn)
End If
Try
Dim command As SqlCommand = New SqlCommand("spTestCall", con)
command.CommandType = Data.CommandType.StoredProcedure
Dim parameter As SqlParameter = command.Parameters.Add("#house_id", Data.SqlDbType.Int)
parameter.Value = patient
parameter = command.Parameters.Add("#q_id", Data.SqlDbType.Int)
parameter.Value = qid
If con.State = ConnectionState.Open Then
con.Close()
End If
con.Open()
Dim theDataAdapter As SqlDataAdapter = New SqlDataAdapter(command)
Dim ds As Data.DataSet = New Data.DataSet()
theDataAdapter.Fill(ds)
con.Close()
Return ds
Catch ex As Exception
Throw ex
Finally
con = Nothing
End Try
End Function
Stack Trace
BusinessAccessLayer.dll!BusinessAccessLayer.TestClass.RepSWSC() Line 17971 + 0xe bytes Basic
BusinessAccessLayer.dll!BusinessAccessLayer.TestClass.PopulateAnestRecordPDF(System.Data.DataRow dr, ceTe.DynamicPDF.Merger.MergeDocument objMergeDocument, String pdflabelname, Short BMI1, Short repanestcommentsdir, String CopyLabel, Boolean isRideHome, Boolean isNurseAssess, Boolean combineIDandDOS, Boolean allowoneproconly, Boolean showchiefc, Boolean showsurg, Boolean showsurglabel, Boolean specialTulane, Boolean showcmsinfo, Boolean checkCMSHotline, Boolean showEndo, Boolean showKGLB, Boolean trimaddallergies, Boolean showprecautions, Boolean showDiagTesting, Boolean trimAnestComp, Boolean HCALabel, String PageString, Boolean showMRN, Boolean alwaysShowChiefC, Boolean ridenameonly, Boolean showCultural, Boolean indentProcedure, Boolean showDOBSeparate, Boolean incDOSLabel, Boolean showPCP, Boolean NameLstFst, Boolean MergeAllergy, Boolean MidWestNursing, Boolean LastDoseLineForMeds, Boolean splitsurghist, Boolean PrinAnneSpecial, Boolean showMRNLabel, Boolean showCMSLabel, Boolean MergePsychtoNeuro, Boolean XNegHx, Boolean ShowSpecialists, Boolean XHaveMeds, Boolean TrimAllergies, Boolean expandWNL, Boolean xLatex, Boolean xHCP, Boolean showLang, Boolean NoMeds, Boolean NoAllergies, Boolean incEENT, Boolean ridephoneonly, Boolean LakelandAssess, Boolean indentTobacco, Boolean indentETOH, Boolean indentDrugs, Boolean flowallergies, Boolean showphones, Boolean xNoSurgs, Boolean xNoAnestComp, Boolean IncComboAlg, Boolean IncNameField, Boolean showmedlist, Boolean MakeAllergyList, Boolean showAMMeds, Boolean showReligion, Boolean showLongMSPONV, Boolean NoShowDx, Boolean showAgeonPatLab, Boolean showPatPhone, Boolean LatexUppercase, Boolean LakelandNoReactions, Boolean MGHBWSpecial, Boolean incDOBLabel, Boolean incDRLabel, Boolean isJerseyShoreNurse, Boolean showHCPno, Boolean showOtherLangX, Boolean checkPatLegalAge, Boolean isCommonwealth, Boolean MelbourneAlgIndent, Boolean MelbourneAnestCompIndent, Boolean combineIDDOSplus, Boolean NarrativeSurgeries, Boolean showPrimLangandSpkEng, Boolean RideRelationshipOnly, Boolean isMelbourneNurse, Boolean showAdvDir, Boolean showLeaveMsg, Boolean UseCondensedRideHome, Boolean showAdvDirX, Boolean showAnestCompBreakout, Boolean showMRSA, Boolean showHCPtext, Boolean showDocNameLastFirst, Boolean showSimpleLang, Boolean FlowMeds, Boolean isMtVernonEndo, Boolean showStaffUpdateName, Boolean showSpecialistsSeparated, Boolean showPCPSeparated, Boolean SNMSCIndent, Boolean showCaregiver, Boolean showSimpleProc, Boolean showBlackstoneAlg, Boolean showDentalBreakOut, Boolean showDOSmeds, Boolean showAge, Boolean indentProcedureMore, Boolean incSex, Boolean smallIndCombMedAlg, Boolean isSouthwest, Boolean DocContactAuth, Boolean isNSMCPhysical, Boolean showHCPName, Boolean showAdvDirName, Boolean isNorthPointe, Boolean isHSCC, Boolean MergeAnest, Boolean trimComboAllergies, Boolean isStLucie, Boolean isMasonRidge, Boolean showDiagTestingCombined, Boolean showInfDisease, Boolean isSWSC, Boolean MergeSubstance, Boolean isSummitView, Boolean showSummitViewInfections, Boolean TrimComboAlg, Boolean showPatAddress, Boolean showPatEmail, Boolean showPedsBMI, Boolean isOSE, Boolean showDOSSeparate, Boolean isMEE, Boolean showHosAddress, Boolean indentRoS, Boolean showCulturalX, Boolean showHxFalls, Boolean showSafety, Boolean showADHCPCombo, Boolean showFoodAllergy, Boolean showNonLabelDOBSeparate, Boolean showDiagTestingCombinedLineBreaks, Boolean SurgeryPerformedatFac, Boolean showBSA, Boolean ShowGreensboroAddAllergy, Boolean showFoodEnvironmentAlg, Boolean isUMAss, Boolean showNotifyPerson, Boolean isLosRoblesMC, Boolean isLakeside, Boolean isStJohns, Boolean showmalighyperX, Boolean isMusculoSC, Boolean AnestCompOneLine, Boolean showWarnings, Boolean showDentureX, Boolean showContactGlassX, Boolean isOSESurgeryPain, Boolean showExpSplitSurgList, Boolean showSTOPBANGScore, Boolean showOnlySurgPerfAtFac, Boolean ShowMedDoseFreqRoute, Boolean showPatientESig, Boolean showFamCancerHx, Boolean showHomeO2Use, Boolean showPONV, Boolean showAnestCompX, Boolean ShowCancerOnlyEndonly) Line 10361 + 0xe bytes Basic
UserInterfaceLayer.dll!UserInterfaceLayer.Reports_RepDisp.PatRep(Short repnum) Line 2334 + 0x1f0 bytes Basic
UserInterfaceLayer.dll!UserInterfaceLayer.Reports_RepDisp.PrintReport(Short repnum) Line 273 + 0x12 bytes Basic
UserInterfaceLayer.dll!UserInterfaceLayer.Reports_RepDisp.Page_Load(Object sender, System.EventArgs e) Line 33 + 0x13 bytes Basic
System.Web.dll!System.Web.UI.Control.OnLoad(System.EventArgs e) Line 2254 + 0x5d bytes C#
System.Web.dll!System.Web.UI.Control.LoadRecursive() Line 2274 C#
System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint) Line 4624 + 0xe bytes C#
System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint) Line 4296 C#
System.Web.dll!System.Web.UI.Page.ProcessRequest() Line 4265 + 0xf bytes C#
System.Web.dll!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext context) Line 4235 + 0x7 bytes C#
System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context) Line 4225 + 0x9 bytes C#
App_Web_ffa11ybr.dll!ASP.reports_repdisp_aspx.ProcessRequest(System.Web.HttpContext context) + 0x26 bytes
System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() Line 3451 + 0xa bytes C#
System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step, ref bool completedSynchronously) Line 2076 + 0x9 bytes C#
System.Web.dll!System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(System.Exception error) Line 3783 + 0x20 bytes C#
System.Web.dll!System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext context, System.AsyncCallback cb, object extraData) Line 1409 C#
System.Web.dll!System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest wr) Line 1695 + 0x12 bytes C#
System.Web.dll!System.Web.HttpRuntime.ProcessRequestNoDemand(System.Web.HttpWorkerRequest wr) Line 2381 + 0xf bytes C#
System.Web.dll!System.Web.Hosting.ISAPIRuntime.ProcessRequest(System.IntPtr ecb, int iWRType) Line 169 C#
System.Web.dll!System.Web.Hosting.ISAPIRuntime.System.Web.Hosting.IISAPIRuntime2.ProcessRequest(System.IntPtr ecb, int iWRType) Line 207 + 0x9 bytes C#

Bad Data with Cryptography.RC2

There is a special working progress where we encrypt and decrypt an input.
Suddenly, yesterday, there was an encrypted string we weren't able to decrypt.
It seems my cryptographic knowledge aren't good enough to solve this problem.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crypto
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
public static class Crypto
{
public static void Main()
{
//String NotWorking_dec = "鈦ꧪ㧘聯ꢮ玗硴廜᭮⸂濅�";
String enc ="mIAU::__*?";
//String dec = "砿첩뜞ꦽ嶾蝡泛ɝࠪ塤偏ꍨ";
Console.WriteLine(decrypt(dec));
//writeFile(encrypt(enc));
Console.ReadLine();
}
private static string key = "ZlKMpRwoPLmNXEpCLxEa6g==";
private static string iv = "U5ZB4W4bQqg=";
private static ICryptoTransform enc;
private static ICryptoTransform dec;
static Crypto()
{
RC2 rc = System.Security.Cryptography.RC2.Create();
enc = rc.CreateEncryptor(Convert.FromBase64String(key), Convert.FromBase64String(iv));
dec = rc.CreateDecryptor(Convert.FromBase64String(key), Convert.FromBase64String(iv));
}
public static String encrypt(String value)
{
byte[] input = toBytes(value);
return toString(enc.TransformFinalBlock(input, 0, input.Length));
}
public static String decrypt(String value)
{
byte[] input = toBytes(value);
Console.WriteLine(input.Length);
return toString(dec.TransformFinalBlock(input, 0, input.Length));
}
private static void writeFile(String value)
{
try
{
StreamWriter sw = new StreamWriter("output.tmp", true);
sw.WriteLine(value);
sw.Close();
}
catch (Exception ex) { }
}
private static byte[] toBytes(String value)
{
return Encoding.Unicode.GetBytes(value);
}
private static String toString(byte[] value)
{
return Encoding.Unicode.GetString(value);
}
}
}
This working progress works for months.
You are able to test it with the input
mIAU::__*?
you get
砿첩뜞ꦽ嶾蝡泛ɝࠪ塤偏ꍨ
decrypt it and you get again
mIAU::__*?
But the encrypted String "鈦ꧪ㧘聯ꢮ玗硴廜᭮⸂濅�" throws errors: (Of course we used the same key and iv)
BAD DATA
bei System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
bei System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone)
bei System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
bei Crypto.Crypto.decrypt(String value) in c:\Users\Td\Documents\Visual Studio 2013\Projects\Crypto\Crypto\Program.cs:Zeile 56.
bei Crypto.Crypto.Main() in c:\Users\Td\Documents\Visual Studio 2013\Projects\Crypto\Crypto\Program.cs:Zeile 23.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
bei System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
bei System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
bei System.Activator.CreateInstance(ActivationContext activationContext)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
You cannot simply convert random bytes to strings and back. Not all bytes are valid character encodings. You need to apply for instance base 64 encoding to your binary ciphertext if you require text. Otherwise you will loose data, depending on the value of the ciphertext. And the ciphertext will contain random byte values. So it may fail now and then, as you are currently experiencing.
Java silently converts unknown bytes to characters by default, for instance it will create a � character if it cannot convert byte(s) to a character. This is why this particular string fails.
Besides that, Unicode contains a lot of characters that are not easily printable, and even characters that can be created using either two Unicode code points or a single one. So a Unicode string may have multiple possible encodings, so it is doubly unsuitable for conveying binary data.
All in all, text should not be directly used to convey binary data. The data needs to be encoded first.

while uploading a cloudfile in rackspace cloud using openstack.net i get net.openstack.Core.Exceptions.Response.BadServiceRequestException

While uploading a file to rackspace cloud using the CreateObjectFromFile method from my local machine, it goes though fine. but when i do it from a client machine i get net.openstack.Core.Exceptions.Response.BadServiceRequestException.
ContainerID: 1644
srcfileName: \\10.5.48.2\XMLGateway\BOOutBox\PJR340131023160359529217.xml
desfileName: 1644_PJR340131023160359529217.xml
cloudFilesProvider.CreateObjectFromFile(inStrContainerID, inStrSrcFilePath, strDesFileName);
I checked for documentation on this exception and i cannot find anything useful.
EDIT:
here is the error stack
net.openstack.Core.Exceptions.Response.BadServiceRequestException: Invalid request body: unable to parse Auth data. Please review XML or JSON formatting.
at net.openstack.Providers.Rackspace.Validators.HttpResponseCodeValidator.Validate(Response response)
at net.openstack.Providers.Rackspace.GeographicalCloudIdentityProvider.ExecuteRESTRequest[T](CloudIdentity identity, String urlPath, HttpMethod method, Object body, Dictionary`2 queryStringParameter, Boolean isRetry, Boolean isTokenRequest, String token, Int32 retryCount, Int32 retryDelay, Func`7 callback)
at net.openstack.Providers.Rackspace.GeographicalCloudIdentityProvider.ExecuteRESTRequest[T](CloudIdentity identity, String urlPath, HttpMethod method, Object body, Dictionary`2 queryStringParameter, Boolean isRetry, Boolean isTokenRequest, String token, Int32 retryCount, Int32 retryDelay)
at net.openstack.Providers.Rackspace.GeographicalCloudIdentityProvider.<>c__DisplayClassc.<GetUserAccess>b__b()
at net.openstack.Core.Caching.UserAccessCache.<>c__DisplayClassc.<Get>b__4(String k)
at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)
at net.openstack.Core.Caching.UserAccessCache.Get(String key, Func`1 refreshCallback, Boolean forceCacheRefresh)
at net.openstack.Providers.Rackspace.GeographicalCloudIdentityProvider.GetUserAccess(CloudIdentity identity, Boolean forceCacheRefresh)
at net.openstack.Providers.Rackspace.CloudIdentityProvider.GetUserAccess(CloudIdentity identity, Boolean forceCacheRefresh)
at net.openstack.Providers.Rackspace.ProviderBase`1.GetServiceEndpoint(CloudIdentity identity, String serviceName, String region)
at net.openstack.Providers.Rackspace.ProviderBase`1.GetPublicServiceEndpoint(CloudIdentity identity, String serviceName, String region)
at net.openstack.Providers.Rackspace.CloudFilesProvider.GetServiceEndpointCloudFiles(CloudIdentity identity, String region, Boolean useInternalUrl)
at net.openstack.Providers.Rackspace.CloudFilesProvider.CreateObject(String container, Stream stream, String objectName, Int32 chunkSize, Dictionary`2 headers, String region, Action`1 progressUpdated, Boolean useInternalUrl, CloudIdentity identity)
at net.openstack.Providers.Rackspace.CloudFilesProvider.CreateObjectFromFile(String container, String filePath, String objectName, Int32 chunkSize, Dictionary`2 headers, String region, Action`1 progressUpdated, Boolean useInternalUrl, CloudIdentity identity)
at ?.?.?(String ?, String ?, String ?, String ?, String ?, String& ?, Boolean& ?, String& ?)
Edit 2:
Ok after updating the dll to the new versions, this is the stacktrace:
Unable to connect to the remote server
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.203.3.30:443
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at JSIStudios.SimpleRESTServices.Client.RestServiceBase.<>c__DisplayClass6.<Stream>b__5(HttpWebRequest req)
at JSIStudios.SimpleRESTServices.Client.RestServiceBase.<>c__DisplayClass9.<ExecuteRequest>b__8()
at JSIStudios.SimpleRESTServices.Client.RequestRetryLogic.Execute(Func`1 callback, IEnumerable`1 non200SuccessCodes, Int32 retryCount, Nullable`1 retryDelay)
at JSIStudios.SimpleRESTServices.Client.RestServiceBase.ExecuteRequest(Uri url, HttpMethod method, Func`3 responseBuilderCallback, Dictionary`2 headers, Dictionary`2 queryStringParameters, RequestSettings settings, Func`2 executeCallback)
at JSIStudios.SimpleRESTServices.Client.RestServiceBase.Stream(Uri url, HttpMethod method, Func`3 responseBuilderCallback, Stream content, Int32 bufferSize, Int64 maxReadLength, Dictionary`2 headers, Dictionary`2 queryStringParameters, RequestSettings settings, Action`1 progressUpdated)
at JSIStudios.SimpleRESTServices.Client.RestServiceBase.Stream(Uri url, HttpMethod method, Stream content, Int32 bufferSize, Int64 maxReadLength, Dictionary`2 headers, Dictionary`2 queryStringParameters, RequestSettings settings, Action`1 progressUpdated)
at net.openstack.Providers.Rackspace.ProviderBase`1.StreamRESTRequest(CloudIdentity identity, Uri absoluteUri, HttpMethod method, Stream stream, Int32 chunkSize, Int64 maxReadLength, Dictionary`2 queryStringParameter, Dictionary`2 headers, Boolean isRetry, RequestSettings requestSettings, Action`1 progressUpdated)
at net.openstack.Providers.Rackspace.CloudFilesProvider.CreateObject(String container, Stream stream, String objectName, String contentType, Int32 chunkSize, Dictionary`2 headers, String region, Action`1 progressUpdated, Boolean useInternalUrl, CloudIdentity identity)
at net.openstack.Providers.Rackspace.CloudFilesProvider.CreateObjectFromFile(String container, String filePath, String objectName, String contentType, Int32 chunkSize, Dictionary`2 headers, String region, Action`1 progressUpdated, Boolean useInternalUrl, CloudIdentity identity)
at ?.?.?(String ?, String ?, String ?, String ?, String ?, String& ?, Boolean& ?, String& ?
So does have to do with with firewall settings on the client machine?
A newer release of the SDK is available through NuGet. Two of the many changes included in that release are the following:
Removed GeographicalCloudIdentityProvider (a class only used inside the SDK itself, nevertheless this is the part of your stack trace that indicated you were using an old version of the SDK)
Added the ability for ResponseException (the base class of BadServiceRequestException and several others) to include detailed information about the cause of the problem as part of the exception.
(Applies to openstack.net 1.2.x only): Due to a limitation in the SDK dependencies that we are working to resolve ASAP, you'll need to explicitly install one of the SDK dependencies before installing the SDK. The instructions for this are included in the comment marked UPDATE on the following page: openstacknetsdk/openstack.net#203

Error while using zedGargh.dll in asp.net4

I want to use zedgraph in asp.net 4. but I get the erros below:
System.IO.DirectoryNotFoundException:
Could not find a part of the path C:\Users\stn-1\Desktop\ZedGraphWebAp1_CompiledSite8 \ZedGraphImages\ZedGraphWeb1fc6eb2c0-023a-4818-bff9-9c957971af4b.png. 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, Boolean useLongPath) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at ZedGraph.Web.ZedGraphWeb.Render(HtmlTextWriter output)
I use the code below :
protected void ZedGraphWeb1_RenderGraph(ZedGraphWeb webObject, System.Drawing.Graphics g, MasterPane pane)
{
GraphPane myPane = pane[0];
myPane.Title.Text = "Title";
myPane.XAxis.Title.Text = "X axis label";
myPane.YAxis.Title.Text = "Y axis label";
PointPairList list1 = new PointPairList();
for (int i = 0; i < 10; i++)
{
double x = Convert.ToDouble(i);
double y = x * x;
list1.Add(x, y);
}
string textForLegend = "x-squared";
myPane.CurveList.Clear();
LineItem myCurve = myPane.AddCurve(textForLegend,
list1, Color.Red, SymbolType.Diamond);
myCurve.Symbol.IsVisible = true;
}
The reason is that zedgraph don't create a folder name "ZedGraphImages" automatically in root folder... you should create it manually...

Resources