I hope to be in the right forum with this question:
1/ I would like to create a webservice method, that returns the username of the user that executes its assembly. I hope to be clear here. Typically it would be the ASPNET user that is returned, but i want to get the exact user.
2/ I also would like to return the IIS folder in which the webservice files are installed. When i use "return Directory.GetCurrentDirectory();", then i get "c:\windows\system32". But i'd like to have "c:\inetpub\wwwroot\bin" or something like that.
Is this possible? And if so ... what do i have to do ?
I have created web service using C#, VS2005. I can browse the web service and check whether the web methods are working fine or not (on my develoment server); so far so good.
I want to deploy this web service on other host, so I created web setup project from VS2005 and created installables. I ran these installables on other host and they got added too (I checked it through IIS manager).
Now when I browse the web service I get the following error message.
"The page cannot be found.
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. "
Could someone let me know what exactly am I missing here.
I am new to both C# and web services, so any kind of help would be much appreciated.
It is the process of taking an object and translating it to something like xml so that you can save it to a database or pass it to some other process. Then you can read in that serialized data and de-serialize it back into the original object.
I've got here a simple PropertyGrid on my Form.
And there is an Array with n-Objects of simple Class with n
Properties. Alle these Objects are from the same type, but not all the Properties have the same value!
I used the Code of the following Article to localize all the
Properties, Descriptions, Categories... this works well if I use the
SelectedObject-Property of the PropertyGrid!
But if I try the SelectedObjects-Property, the PropertyGrid will not
show the Categories... it displays only the Misc-Category instead of
my own 3 Categories.
And the other Problem is, the PropertyGrid sort the Properties not by
the DisplayName. it use the Name to sort all the Properties.
I try my first experiments with c# and DotNet. I use a ListView in detailed view. Now, if the amount of columns increase, horizontal scrolling is enabled and works. This is nice but I want to fix the first column, so that only the columns from 2 up to n are affected by the scrolling. I don't know if it is important: I'm using the compact framework because the program runs on a pda.
Last Visit: 24-Sep-20 22:00 Last Update: 24-Sep-20 22:00