|
You can do it by analyzing user ip address.
But this is not OS language. It's regional location.
Best regards, Alexey.
|
|
|
|
|
Hi,
I'm working with .NET Framework 2.0, I wrote a web service ( .asmx ). Now I want to configure to drop the .asmx extension.
For ex: intstead typing: http://mywebservice/ws.asmx, the client will type URL: http://mywebservice/ws and all things will be processed as normal (http://mywebservice/ws.asmx)
Can I do this?
Thanks for any suggestion!
Hung
|
|
|
|
|
I'm by no means an expert in WebServices, but I don't think you want to do that. This is because IIS uses the file extension to figure out how to process the request or what to pass the request on to. You MIGHT be able to include a file in that folder by that shortened name that just redirects to the .aspx page, but I have no idea really. I've never tried it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I hope someone here knows a solution for the following problem: I'm developing a Windows Forms application that should run under restriced user accounts. But sometimes I need to write to parts of the registry usually not accessible for user accounts. If the user doesn't have the right to write to the registry, I prompt for a different username/password (and use impersonation for that id).
This definately works, if I query e.g. Environment.UserName afterwards, it returns the impersonated account's username. But I can't gain write access to the registry, I still receive a security exception.
I also tried to use RegistryPermission.Assert(), but no luck. Does anybody know what else has to be done? Thanks very much for any suggestion!
Kalme
|
|
|
|
|
And here is the solution: to test my application I used the fast user switching option of Windows XP, which seems to be the problem. I develop as administrator and for testing I switch to a restricted user account. If I completely log out of my developer account first, everything works fine (impersonating another account and accessing resources using its rights), but using fast user switching I receive a security exception no matter what.
If someone knows an explanation for this, I'd be happy to hear about it.
|
|
|
|
|
I found a progam in the .NET dept that I'd like to use:
http://www.codeproject.com/dotnet/showargs.asp[^]
It runs on my machine, but I've got .NET framework 1.1 installed.
How can I tell whether it runs on machines without the framework?
-- modified at 0:15 Friday 14th April, 2006
|
|
|
|
|
It doesn't.
.NET programs absolutely require the .NET framework.
Luis Alonso Ramos
Intelectix
Chihuahua, Mexico Not much here: My CP Blog!
|
|
|
|
|
I am trying to distinguish which interfaces are available on a Windows CE4.2 device (Need to determine if an ethernet connection is up as opposed to a wireless one).
Is there an alternative to the NetworkInterface.GetAllNetworkInterfaces( ) ?
And my apologies for not opening my eyes and seeing Mobile Development as a more relevant category.
-- modified at 10:52 Thursday 13th April, 2006
|
|
|
|
|
Hi, i was woundering does anyone know a free ribbon control (Windows Vista).
Thanks
Joe
|
|
|
|
|
Hi everybody,
I recently try to create remoting program in C#. I found out that I can use:
using System.Runtime.Remoting.Channels, but can not using System.Runtime.Remoting.Channels.Http. If I type it in, and compile it, I got:
the type or namespace name 'Http' does not exist in the class or namespace...
Does anybody know why I got this problem ?
I am using Microsoft Development Environment 2003 Ver. 7.1.3088 and Microsoft .NET Framework 1.1. Ver 1.1.4322 SP1. I am using Windows XP.
|
|
|
|
|
You need to add a Reference to the .NET assembly System.Runtime.Remoting.dll
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Dave,
Thanks for your advice. It works. I thought there is something wrong with the .NET Framework or I have wrongly installed the Framework. I actually have tried installing service packs.
Anyway, Thanks again for your advice.
|
|
|
|
|
Hello friends
I have a problem related to webservice,how to use webservice using REST.i have never use this one..
My problem is that i have a client which wnat get a xml file which is store on server, so its interect with webservice,and by webservice it will get a url of xml file.then from that URL user will get That XML file.
so i want to use in that process REST with webservice not soap,that is http get or post method..by default ,net framework use the soap..
but i want to implement using REST..
so plz help me..
thanks
chear up..
|
|
|
|
|
I have .NET 1.1 installed with VS 2003. When I installed .NET 2.0 from the dotnetfx.exe installer I had trouble running an external program from the debugger. The external program is Rhino3D and I am writing a plugin for it in C#. I would get the splash screen for Rhino then it would immediately exit. Removing .NET 2.0 solved the problem.
My upgrade for VS 2005 just arrived and I'm a little nervous about installing it. Can VS2005 compile for .NET 1.1 as well as 2.0?
Thanks!
___________________
Brad
|
|
|
|
|
No VS 2005 only compiles to 2.0. But it should coexist without any problems with 2003.
|
|
|
|
|
Thanks. After some research I discovered that. I took a shot and installed VS2005. My problem again popped up with VS2003. But I compiled my plugin in VS2005 and it worked with no problem . Wa hoo. I was a bit shocked.
Thanks,
___________________
Brad
|
|
|
|
|
Robert Rohde wrote: No VS 2005 only compiles to 2.0.
I don't agree with you. You can build under Framework 1.1. Try to set Project->Properties->Build->Advanced->Language version = ISO-1.
|
|
|
|
|
This just sets whether the compiler should check compliance with the C# ISO-1 norm. That just cut offs the new additions made to C# with .Net 2.0. Nevertheless it will use the .Net 2.0 compiler to generate an assembly.
|
|
|
|
|
Robert Rohde wrote: This just sets whether the compiler should check compliance with the C# ISO-1 norm. That just cut offs the new additions made to C# with .Net 2.0. Nevertheless it will use the .Net 2.0 compiler to generate an assembly.
It's bad. But I have solution: You can debug with VS 2005, but make release version with old compler manually.
Best regards, Alexey.
|
|
|
|
|
I want to know is it possible to make a windows application (.NET visual studio 2005) become a web application with just a litle treatment or setting.
As far as I know, it is possible to do this when I used POWERBUILDER 8.0 (from sybase), I only made any setting in webserver and my application could be called from a browser (some plugins required in client computer).
Thanks for any information.
New Visual Studio 2005 Learner
|
|
|
|
|
Miftahul Yaum wrote: is it possible to make a windows application (.NET visual studio 2005) become a web application with just a litle treatment or setting
Nope. Windows Forms applications work entirely different from Web Forms. You'd have to rewrite the UI portion of your app. That is, of course, if you seperated your UI from your Logic and Data layers.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for your information.
New Visual Studio 2005 Learner
|
|
|
|
|
My experience is that Graphics.EnumerateMetafile is not calling my EnumerateMetafileProc callback AT ALL when the metafile in question is an enhanced metafile loaded from an "EMF" file. There is no Exception or fault. It is simply never called. The process works fine for "WMF" files. The EmfPlusRecordType parameter of the callback function certainly implies that EMF records can be processed. The same EMF file can be loaded and assigned to an image property (e.g. BackgroundImage) with good results.
Anyone have experience with this issue?
My goal is to create a GraphicsPath with the vector data from metafiles. Using good-old GDI you could BeginPath on an HDC and playback a metafile into the HDC. This was virtually trivial. I cannot find support for any similar approach in .NET. Parsing the raw data passed during metafile enumeration is volumous but doable. That is, of course, if the function would actually work!
|
|
|
|
|
Does anyone know how to code the MSDN sample on getting the default user agent for IE using WinINet API (article on this page):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/setting_and_retrieving_internet_options.asp
I tried but kept getting error code 126 (module not loaded). Looking for VB.NET or C#, any help in the right direction would be greatly appreciated.
|
|
|
|
|
I'm writing a deployment package for the v1.1 WinForms app I'm working on and I need to do two things:
1. Find out if the Oracle Data Provider is installed on the user's machine.
2. Find out what version of the .Net Framework is installed and whether SP1 is also installed (we need this as there is a datagrid bug which was fixed in SP1 - without it our users will get the bug in the app).
So, for the first one what I'm doing now is using the RegistryKey class in Microsoft.Win32 library to query the registry for the following path:
<hklm>\Microsoft\.NetFramework\AssemblyFolders\ODP.Net.
If it doesn't exist I can tell that ODP.Net is not installed. If it does I then get the path from the registry value (eg: c:\ora9\bin) and check for the existence of the ODP dll... is this the best way to do it or can I do it a better/simpler way? If so, how?
And what is the best way to do number 2? I'm assuming I can use Reflection to do this some way? I know I can use System.Environment.Version.ToString to get it but how do I tell that SP1 is installed?
TIA for any help or advice,
Mike
-- modified at 22:09 Tuesday 11th April, 2006
|
|
|
|