|
I found this, but it causes the aspx debug web browser to crash, when I remove it, the code works fine, but of course I'm not impersonating at that point.
private void BeginImpersonation(string domain)
{
EndImpersonation();
bool success = LogonUser(
"xxx",
"xxx",
"xxx",
2,
0,
ref _userToken);
// Did it work?
if (!success) throw new Exception(string.Format("LogonUser returned error {0}", System.Runtime.InteropServices.Marshal.GetLastWin32Error()));
WindowsIdentity fakeId = new WindowsIdentity(_userToken);
_impersonationContext = fakeId.Impersonate();
//("User After Impersonation: " + WindowsIdentity.GetCurrent().Name);
}
|
|
|
|
|
And the exception that it throws is?
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
It does not throw an exception, the browser closes and the output reads
The program '[7868] WebDev.WebServer.EXE: Managed' has exited with code 1 (0x1).
The thread 0x2248 has exited with code 0 (0x0).
The program '[10108] iexplore.exe: Script program' has exited with code 0 (0x0).
|
|
|
|
|
I would have a check of the event log to see if any errors from the WebDev.WebServer.Exe are there.
The problem might not be with code that you have written in your page, but an error caused by the webserver from values that you have passed into it.
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Good call, I'm not sure what this means yet, but this is added each time it fails.
Watson report about to be sent to dw20.exe for process id: 9208, with parameters: E12, c-RTL-x86, 08.03.0083.006, W.WebServer, M.E.D.Directory, M.E.D.D.ConnectionPoolManager.BlockImpersonatedCallers, M.E.Common.FailFastException, 7f8b, 08.03.0083.000. ErrorReportingEnabled: False
|
|
|
|
|
|
I'm glad you found out why it was failing
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Me too, except I have no way to do this now, except having the asp code write a file to a folder and have a service on the box that polls for the file and processes it.
|
|
|
|
|
We are trying to import GIS shapefiles into SQL. We found an open source lib for reading the shapefiles (Catfood). Our concept for importing into SQL is to build a WKT string and use the SQL conversion function to get the SQLGeometry type and stick that into the column we want. I think that part is pretty straight forward, but how do we go about converting the projections automatically? Is there something out there better then Catfood that we can use? Doesn't need to be open source, but we need to have control over how the row is created.
I know there are tools to import, but we need to have more control and we need to import around 10 layers and set them up properly, so we'd rather just write an app that the Operations group can just click a button and go.
|
|
|
|
|
|
Hi All,
I have published on desktop application on server which retrives data from SQL server which is there on the same server.
When i run the application from the server it takes one second to execute the Query
But when i run the same application from client system it takes lot of time to execute that Query.
Any reason why it is happening and any alternative for the same??
Any different approach for such latency issues?
|
|
|
|
|
What is your network speed?
Reducing volume of data sent over the wire should help you reduce this delay.
|
|
|
|
|
Modify the query to be count(*) instead of a data retrieval operations then you will know the "basic" round trip time. Then, realize, if you are using a Data Set or a EF, or any code generator, there is likely a double trip to load schema information on the query. IE, use data-readers if you like speed and utilized field indexes and native types instead of the column name pseudo index.
Also, remember, local connections can use named pipes, but remote are forced to use TCP-IP under SQL Server or some such.
|
|
|
|
|
Is it really only ONE (and exactly one) query to the database?
Or do you get a dataset with many records, then iterate thru the records, and retrieve additional information for each of them by an additional query each?
|
|
|
|
|
I need to know how to do a mass insertion from a oracle database into a access database through c#.net coding.
|
|
|
|
|
Access doesn't really have a bulk insert. You'll have to insert the records into the Access database one at a time.
|
|
|
|
|
I have 30 tables in oracle and want to transfer all to ms-access database.Please help me or suggest me ,how can i do this through coding.
|
|
|
|
|
|
The word is not in the form of smooth throughout, with the following code:
private void Form1_Load(object sender, EventArgs e)
{
label1.ForeColor = Color.Violet;
label1.Text = "From trong suốt";
label2.ForeColor = Color.BlueViolet;
label1.Text = "Màu chữ của form";
label3.ForeColor = Color.DarkOrange;
label1.Text = "Màu chữ của form";
this.TransparencyKey = Color.Wheat;
this.BackColor = Color.Wheat;
}
why not borrow the word transparent form? way to overcome this is not the case? image link: http://freakshare.com/files/1lh6461j/formtran.jpg.html
|
|
|
|
|
I have absolutely no idea what you're talking about. "Word is not smooth"?? You haven't given use any kind of context for this problem, like what you're trying to do.
I'm not clicking on a "FreakShare" link. That place has a history, and not a good one.
|
|
|
|
|
Yes, I'm not sure I'd like to be asked that as an interview question...
Regards,
Rob Philpott.
|
|
|
|
|
Member 2458467 wrote: The word is not in the form of smooth throughout The picture isn't visible; there are plenty of hosts that allow the display of a picture without the need to download it.
The characters will always be drawn one at a time - it's not handwriting where one letter flows into the other. If you're talking about a pixelated word that needs smoothing, then you're looking for what's called "aliassing".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
Is any way to manage multiple snap shots in single vm using Vestris.VMWareLib in c#.
Regards
Biju
|
|
|
|
|
Wouldn't this question be more appropriate on the VMware forums?? The chances of you finding someone who has experience with this are far FAR greater over there.
|
|
|
|
|
Check if any of their documentation can help you out.
|
|
|
|