|
Thanks..
Thanks & Regards
Rao
|
|
|
|
|
Hello All,
Is it possible to read from the working set of physical memory of a process I have identified (but do not have source control over) on my machine? Also trying to automate the windows forms associated with that process. I have been through the win32 api and have been able to get the handles I want, but cannot, for example, access controls or any other property other than handle and text(title).
Thanks in advance.
|
|
|
|
|
Hi,
yes you can interact with the memory belonging to another process; it takes P/Invoke to call Win32 functions such as ReadProcessMemory, WriteProcessMemory, VirtualAllocEx
I would suggest you search this site for articles with such keywords.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
how can i use the openCv with c# 2003 or 2005,,
any help please,,
thanks for anyone who will help..
best regards,
|
|
|
|
|
It took me 5 seconds to search in Google and get this[^] including a highly rated article[^] on this very site!
You waited half an hour to to be told, what you could have found in 5 seconds
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Latest studies confirm that a minimum IQ of 75 is required to form a search query in Google.
|
|
|
|
|
Hi,
I am working on a MS Word Automation project using VS2008 and Office 2003 in c# language. I have a One Page Word template which have bookmarks in table cells. These bookmarks are placeholders where specific information is put in from database using c#. I generate say 10 documents based on the template and save them as seperate file. What I would like is to have a 10 page single document. I can use selection.insertfile to create this document. When I do this, all the formatting goes bersek.
Basically what i do is:
Word.Application app = new Word.Application( );
Word._Document wordDocument = app.Documents.Add(
ref originalTemplate
, ref oMissing
, ref oMissing
, ref oMissing);
Word.Selection selection = app.Selection;
int documentCount = MyGeneratedFiles.Length;
int breakStop = 0;
foreach (string file in MyGeneratedFiles)
{
breakStop++;
selection.InsertFile(
file
, ref oMissing
, ref oMissing
, ref oMissing
, ref oMissing);
try
{
if (breakStop != documentCount)
selection.InsertBreak(ref pageBreak);
}
catch (Exception ex) { }
}
wordDocument = null;
app.Visible = true;
This works as far as combining all documents is concerned. But the formattign goes crazy and there are no clearly defined pageBreaks. Is there a better way to combine multiple one page documents into one multi-page single document? I have been stuck on this for a while, any help will be much appreciated.
Thank you
|
|
|
|
|
I have a wrapper class for a digital camera that is called from my form through camera.blah.
In the camera class there is a callback function for when the user pushes the shutter button. Within that camera class I can perform all kinds of things.
My problem is that I want to perform those tasks on the Windows form I am using, and I have no idea how to use the callback function to do something on my Windows form when the event is triggered.
I know this is difficult and vague, but without an idea of what to do here I don't know where to begin. I read that I cannot listen for events without using a delegate, which I am not familiar with.
|
|
|
|
|
eddieangel wrote: I know this is difficult and vague
It's not that bad really, sounds like someone tried to scare you..
You don't need to explicitly use delegates in order to use events, but of course under water there will be some messing with delegates (because that's the way an event remembers what it has to do when fired)
If you have an event you can just use += on it, and let intellisense do the rest (just press tab when it asks you)
|
|
|
|
|
Delegates work like this:
public class Camera
{
// There is a delegate here which will inform you when the shutter button is pushed
}
public class SomeListener
{
// Here you add a handler for the delegate
// You create an instance of the delegate found in the Button class and provide it with a method
// The delegate will carry out the method for you
// Your method must have the same signature as the delegate in the Camera class
// Within your method you will do something you want
}
Here is a button class which has a single event. The comments will guide you.
public class AButton
{
// This is the delegate
public delegate void ButtonClickedHandler(AButton sender, EventArgs e);
// This is an event which is basically an instance of the delegate
public event ButtonClickedHandler Click;
// Here is a method which will raise the click event
public void ClickMe()
{
// In C# first you check if anyone has created an instance of your delegate
// Whoever has created an instance is called the subscriber or listener
if (Click != null)
{
Click(this, EventArgs.Empty); // Call the listener's method that has this signature and let it do whatever it needs to
}
}
Here is a listener:
public class Listener
{
// First create an instance of the class
public Listener()
{
AButton b = new AButton();
// Now listen to the event
// Remember the delegate requires you to pass to it a method which has the same signature as the delegate
// This is like saying: "Hey a (which is an instance of AButton), when you are clicked please do what I want
// you to do in AButton_Click method.
b.Click += new Click(AButton_Click);
}
// Here is the method
private void AButton_Click(AButton sender, EventArgs e) // Same signature
{
MessageBox.Show("The button was clicked and this is all I want to do.");
}
}
}
}
CodingYoshi
Artificial Intelligence is no match for Human Stupidity.
|
|
|
|
|
I think I did a poor job of explaining, though I am sure that if I understood a little better I would be able to use the guidance here to solve my issue, consider the following code:
In the camera class:
private UInt32 PR_CameraCallBackFunc(UInt32 CameraHandle, UInt32 Context, IntPtr pEventData)
EVENT_GENERIC_CONTAINER pEventDataTemp = new EVENT_GENERIC_CONTAINER();
pEventDataTemp = (EVENT_GENERIC_CONTAINER)Marhsal.PtrToStructure(pEventData, pEventDataTemp.GetType());
switch (pEventDataTemp.Code)
{
case (UShort)prType.prptpEventCode.prPTP_PUSHED_RELEASE_SW:
break;
}
return (UInt32)prError.prOk;
All of the public propeties, methods, etc... of this camera class I can call from my windows form using camera.blah, but how do I trigger something on my Windows event form when this camera class event fires?
If I put code in the above case statement, it does fire when I push the take picture button on my camera, but how can I get my Windows form to listen for this event and perform events?
|
|
|
|
|
This actually isn't as complicated as it sounds!
Instead of a method being called directly, the call can be delegated - to a delegate.
One of the reasons for using a delegate for this (there are many) is methods cannot be passed as parameters to other methods, but delegates can (in C/C++ they pass a pointer [a pointer literaly points to a location in memory, or in otherwords is a value that is a memory address] to the callback function as the parameter).
So in the PInvoke function where the callback (the pointer to the callback function) is the parameter, in C# we pass a delgate instance. This delegate will then be called, which in turn calls the actual method you want to run.
I hope that makes sense!
All you need to do is create a delegate that returns the correct type, and has the correct signature:
private delegate UInt32 CameraCallBackDelegate(UInt32 cameraHandle, UInt32 context, IntPtr pEventData); Create your delegate instance and set up the method call, and you're done.
You have to be careful that your delegate doesn't go out of scope (i.e the instance gets garbage collected) while it can still be called by the PInvoke function.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thank you, that was very informative. I have a grasp on the abstract concept of the delegate, what I am missing is the part where the form actually receives the event information from the camera class (Which is a DLL reference).
For any other event in the known universe, you would have an event handler on your form (Or class, or whatever you are building) that would look like:
CameraShutterButton_OnClick(object sender, eventargs e)
{
dostuff();
}
And that is great, as a matter of fact I have a button on my form that does exactly what I want the button on the camera to do. What I want to do is make the button on the camera (In the simplest terms) push the button on my form.
I can put the dostuff() into the actually CameraCallBackDelegate pEventData.type and have it perform some of the actions I need within the camera class, but how do I get my form to know what happened?
I am sure you guys have explained it very well and I am just having a tough time seeing the forest through the trees. I see the concept of delegates and understand the abstract, but I have yet to see a good example of it being used in these circumstances (That is a form listening for an event from an external device)
Maybe I should have titled this thread "C#, I don't get it" instead.
|
|
|
|
|
Without the API that you're using it's difficult to give you an example, but here's one I used recently for retrieving MIDI input messages. The function looks like this:
[DllImport("winmm.dll")]
public static extern UInt32 midiInOpen(
out IntPtr lphMidiIn,
UInt32 uDeviceID,
MidiProc dwCallback,
UInt32 dwCallbackInstance,
UInt32 dwFlags); The delegate looks like this:
internal delegate void MidiProc(
IntPtr handle,
UInt32 wMsg,
UInt32 dwInstance,
UInt32 dwParam1,
UInt32 dwParam2); The managed Open method that wraps the midiInOpen function in my MIDIInput class is:
public void Open()
{
if (!IsOpen)
{
UInt32 result = Functions.midiInOpen(out handle, ID, midiProc, ID, Constants.CALLBACK_FUNCTION);
if (result == Constants.MMSYSERR_NOERROR)
{
IsOpen = true;
Manager.openInputs.Add((Input)this);
OnOpened(EventArgs.Empty);
}
else
throw new MIDIException(GetErrorText(result));
}
} This class has a field
internal MidiProc midiProc;
and in the constructor I assign the midiProc to the method.
midiProc = MessageHandler;
When the delegate (callback) is called, it now calls my MessageHandler method which raises the event(s).
protected override void MessageHandler(IntPtr handle, uint wMsg, uint dwInstance, uint dwParam1, uint dwParam2)
{
switch (wMsg)
{
case Constants.MIM_DATA:
OnDataReceived(new DataReceviedEventArgs(dwParam1, dwParam2));
break;
case Constants.MIM_ERROR:
OnDataReceived(new DataReceviedEventArgs(dwParam1, dwParam2, true));
break;
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Here's a simplified version of what I posted above. This is not real world, but could be if there were no return values or parameters involved! This will be easier to follow I hope!
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
delegate void MyDelegate();
public partial class Form1 : Form
{
public event EventHandler FunctionCalled;
MyDelegate myDelegate;
public Form1()
{
InitializeComponent();
myDelegate = FunctionCallback;
}
public void CallNativeFunction()
{
function(myDelegate);
}
void FunctionCallback()
{
OnFunctionCalled(EventArgs.Empty);
}
protected virtual void OnFunctionCalled(EventArgs e)
{
EventHandler eh = FunctionCalled;
if (eh != null)
eh(this, e);
}
[DllImport("your.dll")]
static extern void function(MyDelegate callback);
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
The only way to ever understand delegates and events (as well as most other slightly abstract concepts) is by reading appropriate documentation, say a chapter in a tutorial book.
You may want to study this on delegates[^] and this on events[^].
To get you started, and oversimplifying a lot: a delegate almost is like a good old C function pointer;
and an event is a list of delegates.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thank you Luc, now I understand what I've read about Delegates.
|
|
|
|
|
1. I have all the data in a DataTable. I have created the CrystalReport document using VS2005 by using labels, boxes etc. Now do I have to use formula fields to set the values in the document.
2. When I have all the documents created how can I send them all to the CrystalReportViewer at once for viewing?
For example, if I wanted to show all the orders of a customer and I have created a custom CrystalReport document for the orders.
CodingYoshi
Artificial Intelligence is no match for Human Stupidity.
|
|
|
|
|
CodingYoshi wrote: 1. I have all the data in a DataTable. I have created the CrystalReport document using VS2005 by using labels, boxes etc. Now do I have to use formula fields to set the values in the document.
Your Crystal Report is, i would hate the be the one to tell you, not going to work. Crystal reports work based on either Strongly Typed Datasets or Parameters. Let me save you the head ache, you want to use a Strongly Typed Dataset. Parameters are good for ... well parameters to filter your dataset or for something trivial like headers or something like that.
What you are going to want to do is create a new Dataset in your project, then make that mimic your data schema. After you have created your "Strongly Typed" Dataset add a new Crystal Report to your project and set the Datasource to your newly created Dataset.
When creating your Crystal Report you want to use the "Data Fields" to actually display data to the user. Labels and Boxes are for static content, Your going to have to work the Google to get more info on how to create Crystal Reports.
CodingYoshi wrote: 2. When I have all the documents created how can I send them all to the CrystalReportViewer at once for viewing?
Well this is extremely simple;
- Create a new form with a CrystalReportViewer on it
- Create a new instance of your report and call Load() on it
- Set the ReportDocument property ont he CrystalReportViewer to your new report instance
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
Guess I should have mentioned that you can connect directly to your database from Crystal Reports, but its a bad idea due to the fact the if you want to deploy the report to a different server you have to recompile your app (if the reports are embedded) or your report (if you are loading your reports externally).
Oh yeah, and if you want to load an external report all you have to do is call the overridden Load() on the ReportDocument object passing it the path to the report document to load.
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
Thanks! I am grabbing the data from the database from many tables, processing the data and then saving it in DataTable object. What I need to do now is create a strongly typed DataSet (As you mentioned) and fill it with data from the datatable. Then it should work, hopefully.
CodingYoshi
Artificial Intelligence is no match for Human Stupidity.
|
|
|
|
|
Hi,
So I am moving into a .net C# environment from the java eclipse RCP world. One of the things I appreciated most about eclipse RCP was the ability to use compontents that were prebuilt such as layout management and preferences, needing only to modify them with contributions.
Does .net have anything similar going on? For example, in eclipse all layout/docking was handled automatically once you added your widgets to a layout. Layouts were persistent across sessions- as the programmer all you had to do was tell the component where to go, eclipse did the rest of the notifications and redrawing.
Before I did the java thing, I programmed in VS 2003 C++ for several years, and I recall that we had to purchase 3rd party packages to accomplish most of what eclipse rcp provided for free. Has .net 2.0 or 3.0 provided anything like this?
Also, since I am obviously new to the who .net thing, where can I learn about the advantages of .net and how I can leverage it for my applications?
Thanks!
|
|
|
|
|
Hello,
I have a server with Windows Authentication enabled and I was trying to throw a request in c# to access it. My code looks like this:
webRequest = WebRequest.Create(myURL);
webRequest.Credentials = CredentialCache.DefaultCredentials;
webResponse = webRequest.GetResponse();
However, this is throwing an error:
System.Net.WebException: The request was aborted: The request was canceled. ---> System.FormatException: Invalid length for a Base-64 char array.
at System.Convert.FromBase64String(String s)
at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)
at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)
at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials)
at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
at System.Net.HttpWebRequest.CheckResubmitForAuth()
at System.Net.HttpWebRequest.CheckResubmit(Exception& e)
at System.Net.HttpWebRequest.DoSubmitRequestProcessing(Exception& exception)
at System.Net.HttpWebRequest.ProcessResponse()
at System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
I am specially intrigued by the " Invalid length for a Base-64 char array." message. Does anybody have any ideas on what may be causing this?
I have to add that my webserver is *not* IIS. These are the http headers that the server responds with:
HTTP/1.1 401 UNAUTHORIZED
Content-Length: 25
Content-Type: text/plain; charset=UTF-8
Server: GeognoSIS/7.1.135.0 (Alpha)
WWW-Authenticate: Negotiate
X-Cadcorp-GeognoSIS-Licence: {"Vendor Information":"Debug-only unlicensed version"}
0.01s
GET /GoogleMapsService/GM.serv?REQUEST=getCapabilities&alloverlays=true HTTP/1.1
Authorization: Negotiate TlRMTVNTUAABAAAAt7II4gMAAwAuAAAABgAGACgAAAAGAHEXAAAAD0RFVjMwOURFVg==
The thread '_threadstartex' (0x6cc) has exited with code 0 (0x0).
Host: dev309.dev.cadcorp.net:4326
HTTP/1.1 401 UNAUTHORIZED
Content-Length: 25
Content-Type: text/plain; charset=UTF-8
Server: GeognoSIS/7.1.135.0 (Alpha)
WWW-Authenticate: Negotiate TlRMTVNTUAACAAAABgAGADgAAAA1woniyuFg72yjZX2QNQMCAAAAAJYAlgA+AAAABgBxFwAAAA9EAEUAVgACAAYARABFAFYAAQAMAEQARQBWADMAMAA5AAQAHgBEAGUAdgAuAGMAYQBkAGMAbwByAHAALgBuAGUAdAADACwARABFAFYAMwAwADkALgBEAGUAdgAuAGMAYQBkAGMAbwByAHAALgBuAGUAdAAFABYAYwBhAGQAYwBvAHIAcAAuAG4AZQB0AAcACACud9kb5wbKAQAAAAA
X-Cadcorp-GeognoSIS-Licence: {"Vendor Information":"Debug-only unlicensed version"}
Also, I have to add that I am able to fire successfully the request in IE, so I was guessing there is some problem with the DefaultCredentials...
Any suggestions or comments would be really appreciated!
Thanks in advance,
Regards,
Jo
|
|
|
|
|
Just a thought, could be because your request is empty.
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
 Hi, Thanks for the reply.
I did a little bit of more research on this, and found out that the request, when fired from IE has a successfull http Ok response. These are the headers send by client and server during the negotiation:
GET /ogcservice/wmts.impl?service=wmts&request=getcapabilities&version=1.0.0 HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-shockwave-flash, **
Accept-Language: en-gb
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Accept-Encoding: gzip, deflate
Host: localhost:4326
Connection: Keep-Alive
Authorization: Negotiate TlRMTVNTUAABAAAAl7II4gMAAwAuAAAABgAGACgAAAAGAHEXAAAAD0RFVjMwOURFVg==
HTTP/1.1 401 UNAUTHORIZED
Content-Length: 25
Content-Type: text/plain; charset=UTF-8
Server: GeognoSIS/7.1.135.0 (Alpha)
WWW-Authenticate: Negotiate TlRMTVNTUAACAAAABgAGADgAAAAVwoniTAEcDtTrdXk4jgACAAAAAJYAlgA+AAAABgBxFwAAAA9EAEUAVgACAAYARABFAFYAAQAMAEQARQBWADMAMAA5AAQAHgBEAGUAdgAuAGMAYQBkAGMAbwByAHAALgBuAGUAdAADACwARABFAFYAMwAwADkALgBEAGUAdgAuAGMAYQBkAGMAbwByAHAALgBuAGUAdAAFABYAYwBhAGQAYwBvAHIAcAAuAG4AZQB0AAcACAAa39zYFwnKAQAAAAA
X-Cadcorp-GeognoSIS-Licence: {"Vendor Information":"Debug-only unlicensed version"}
0.52s
GET /ogcservice/wmts.impl?service=wmts&request=getcapabilities&version=1.0.0 HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-shockwave-flash, *
So, I tried to reproduce these headers in the C# app. I did something like this:
webRequest = WebRequest.Create(url);
webRequest.Credentials = CredentialCache.DefaultCredentials;
((HttpWebRequest)webRequest).UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)";
((HttpWebRequest)webRequest).Accept="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
((HttpWebRequest)webRequest).KeepAlive = true;
((HttpWebRequest)webRequest).Headers["Accept-Encoding"] = "gzip,deflate";
((HttpWebRequest)webRequest).Headers["Accept-Charset"] = "ISO-8859-1,utf-8;q=0.7,*;q=0.7";
webRequest.PreAuthenticate = true;
webResponse = webRequest.GetResponse();
doc.Load(webResponse.GetResponseStream());
The webresponse is not empty, but I cannot see anywhere the username and password of the current user, but I guess this is ok? I dont have this username and password in my hand, and this is the reason why I am using the defaultCredentials, in the first place...
The negotiation process gets interrupted on step 2 of the process with a "System.FormatException: Invalid length for a Base-64 char array." error.
These are the headers of the negotiation process between the server and the C# app:
GET /ogcservice/wmts.impl?service=wmts&request=getcapabilities&version=1.0.0 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,**;q=0.8
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Authorization: Negotiate TlRMTVNTUAABAAAAt7II4gMAAwAuAAAABgAGACgAAAAGAHEXAAAAD0RFVjMwOURFVg==
Host: localhost:4326
HTTP/1.1 401 UNAUTHORIZED
Content-Length: 25
Content-Type: text/plain; charset=UTF-8
Server: GeognoSIS/7.1.135.0 (Alpha)
WWW-Authenticate: Negotiate TlRMTVNTUAACAAAABgAGADgAAAA1woni33R9x/Rrb/E4jgACAAAAAJYAlgA+AAAABgBxFwAAAA9EAEUAVgACAAYARABFAFYAAQAMAEQARQBWADMAMAA5AAQAHgBEAGUAdgAuAGMAYQBkAGMAbwByAHAALgBuAGUAdAADACwARABFAFYAMwAwADkALgBEAGUAdgAuAGMAYQBkAGMAbwByAHAALgBuAGUAdAAFABYAYwBhAGQAYwBvAHIAcAAuAG4AZQB0AAcACACto1cBGwnKAQAAAAA
X-Cadcorp-GeognoSIS-Licence: {"Vendor Information":"Debug-only unlicensed version"}
They seem pretty similar to the ones that are sent by IE, except at this point I get an error:
0.56s
A first chance exception of type 'System.FormatException' occurred in System.dll
A first chance exception of type 'System.FormatException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
The thread 'Win32 Thread' (0x13d0) has exited with code 0 (0x0).
A first chance exception of type 'System.ObjectDisposedException' occurred in System.dll
A first chance exception of type 'System.ObjectDisposedException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
System.Net.WebException: The request was aborted: The request was canceled. ---> System.FormatException: Invalid length for a Base-64 char array.
at System.Convert.FromBase64String(String s)
at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)
at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)
at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials)
at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
at System.Net.HttpWebRequest.CheckResubmitForAuth()
at System.Net.HttpWebRequest.CheckResubmit(Exception& e)
at System.Net.HttpWebRequest.DoSubmitRequestProcessing(Exception& exception)
at System.Net.HttpWebRequest.ProcessResponse()
at System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at Cadcorp.GeognoSIS.Manager.NodeMiscServicesGMaps.SetupChildren() in F:\V71\SIS\Tools\GeognoSISManager\NodeMiscServicesGMaps.cs:line 140
The thread '_threadstartex' (0x108c) has exited with code 0 (0x0).
Does anybody has any ideas about this? Any help would be much appreciated!
best regards,
Jo
|
|
|
|
|