473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Call to Server with HttpWebRequestClass before logged on to windows

6
Hi guys,

i hope you can help me with my head-against-the-wall-bouncing-problem. First the scenario:

winlogon.exe (with customized GINA) calls a win32-DLL which calls to my C++-DLL (ummaged C / managed C++ bridge), which references my HttpWebRequest-C#-DLL which calls the Http-Server-address.

If i run my HttpWebRequest class standalone from a testApp.exe, AFTER windows logon, to call the remote Http-Server it works. But if try to call the server (above described scenario) BEFORE logged on to windows this creation fails with a System.Configuration.ConfigurationErrorsException:

HttpWebRequest req = new (HttpWebRequest) WebRequest.Create(server-uri);

My HttpWebRequest-C#-DLL does not lie in the winlogon.exe (system32) application folder, but it is referenceable via GAC. Is this a permission problem with machine.config ? How can i fix it ? Can i provide an app.config to my C#-DLL with permission settings to allow the Http-Server-Call?

Thanks in advance and
greatings from Bavaria
Tobias
Feb 6 '10 #1
7 2191
tobeki
6
The exception in detail:
"The configuration system could not be initialized.."

Feb 6 '10 #2
Plater
7,872 Expert 4TB
Says you have illegal characters.
Your locale (language/keyboard/etc) settings are stored on a per user basis.
So if you're not logged on as a user, you're getting the system default local, which could possibly be en-US and not have the characters you are after
Feb 8 '10 #3
tobeki
6
thanks for your reply!
so you think that in system internal use the url parameter is not interpreted as e.g. http://192.168.2.4:8181/CustomerServer/servicename, but as (EN locale) http>&&192.168.2.4>8181&CustomerServer&servicename ?
the test messagebox shows the url with correct special characters.. but i am not able to debug this from GINA. maybe you are right.
For testing.. is there a way to set the locale to a fixed locale (en or ger) programmatically before i call the HttpWebRequest / WebClient class ?
Feb 8 '10 #4
tobeki
6
The developer system is a Windows Server 2003 (en) with VS2008 (en). The test machine (the windows-client i get the exception) runs on a XP Professional (ger)
Feb 8 '10 #5
Plater
7,872 Expert 4TB
Yes that def sounds like a language setting issue.
I think if you look up globalization and Culture settings you should find help on it.
I've never done it myself so I cannot be sure.
Feb 8 '10 #6
tobeki
6
ok i have tested the "locale-case". It is not the problem. But this code of line

Uri url = new Uri("www.googe.com");

called from Windows GINA, before logged on to windows does show a bluescreen.

I seems to me that some System.Net classes, neccessary for http-communication, are not initialized yet (at this moment).. :(
Feb 9 '10 #7
tobeki
6
Problem solved without System.Net.
Feb 11 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: david | last post by:
Hello! I am attempting to discover the remote user for an INTRAnet site, but cannot see how to do this cleanly. It seems so simple, too... (IIS is NOT being used) ALL I need is the user ID...
5
by: Raj | last post by:
Hi, I'm a newbie with SQL Server 2000 Developer. I know that it is supposed to install on Windows XP Pro, but I keep running into the following message: "The logon account cannot be validated...
8
by: Mike Thomas | last post by:
I have two clients now who want to have an Access 2000 & 2002 application running on NT Server 2000 do some file updating at night when nobody is in the office. I have used Windows scheduler to...
5
by: TerryWilson | last post by:
I am developing a web based service tool using asp.net that we will distribute with our product. This service tool will be used for remotely configuring the product, problem determination, etc. ...
9
by: craig.overton | last post by:
All, I am currently developing an FTP class in VB.NET. It's kid tested, mother approved when trying to access an FTP Server on a Windows box meaning I can connect, run commands, upload and...
1
by: lecnac | last post by:
Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group The...
1
by: lecnac | last post by:
Sorry for the repost. I must have done something wrong when I tried to post my reply (I can't seem to find it). Anyway, I'd really appreciate any help that anyone could provide. My issue is...
1
by: gnusmsa | last post by:
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the...
7
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am trying to see if I can call a Library remotely. The library contains a Form that I want to display then pass back some data to user that called this form remotely. I have it working...
5
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hello! I'm trying to copy a file from another computer on the network that I do not have permission with my current logon details to access. If I open the folder using the Windows file manager...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.