|
That's very strange. But I'm glad you were able to get it to work.
|
|
|
|
|
In the add-in itself I use reflection.
An other programmer can give me a DLL file with actions (functions) and with the class, namespace and the path of the DLL
I can use these functions in my add-in.
I tested everything in a windows application and it worked perfect.
After that I tried to use the same code in my Word add-in but I got a Security error.
Here is the code where I had the problem:
Assembly ass = Assembly.LoadFile(this.FilePath);<br />
if (ass == null) return;
System.Type T = ass.GetType(this.Namespace + "." + this.Class);<br />
<br />
object o = System.Activator.CreateInstance(T);<br />
T.InvokeMember(this.Method, System.Reflection.BindingFlags.InvokeMethod, null, o, new object[] { (object)dicArgs, (object)sConfig });
The program gave a securityerror on the InvokeMember method.
Probably I have to register the used dll somewhere in the .NET Framework 2.0.
Can anybody help me fix this?
Programming code is like magic, just use the right code (magic words) to make happen what you want..
|
|
|
|
|
Ideally, in a web app, you want to include Trace / Debug information for things that go wrong.
Is there a good way of doing this without the Trace / Debug tokens that don't seem to get supplied in a release build?
Or is it good practice to build with trace enabled?
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hi,
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 ?
don't waste your time, or time will waste you
|
|
|
|
|
woops, just found the answer to question 2/ :
return Server.MapPath("/");
I still have question n° 1/. I just can't get the user that executes the webservice. Please help.
thx !
don't waste your time, or time will waste you
|
|
|
|
|
Hi All,
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.
Thanks in advance,
JD.
|
|
|
|
|
I am pretty sure you figured this one out on a different thread, try not to cross post in the future.
Ben
|
|
|
|
|
By default TrackBar is horisontal. Is there any way to make it vertical?
|
|
|
|
|
The TrackBar doesn't have that option. You'd have to either find a control that does this for you, or make your own.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Dave Kreskowiak wrote: The TrackBar doesn't have that option.
I just checked with .Net 2.0 and it does have the option to make a track bar horizontal or vertical. Just change the "Orientation" property from horizontal to Vertical.
Phil
|
|
|
|
|
Whoops! I was looking at the .NET 1.1 version.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Yeah, thanks, but it didn't help. The orientation of arrow is to right, and I want to left.
|
|
|
|
|
Change the TickStyle property from BottomRight to TopLeft.
Phil
|
|
|
|
|
Thanks a lot!
|
|
|
|
|
Your welcome. Just playing with the properties in the controls helps one to learn the controls and what they can do well.
Phil - I play with everything, scientists call it "Experimentation".
|
|
|
|
|
|
Use static library versions of C Runtime(libcmt.lib & libcmtd.lib) instead of these Dynamic libraries..
Cheers,
Suresh
|
|
|
|
|
|
Can anyone tell me what is serialisation?
Regards,
LEE
|
|
|
|
|
|
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.
Ben
|
|
|
|
|
Serialisation is the process of converting an onject into a stream of bytes..
Regards,
Balaguru
|
|
|
|
|
Serialisation is a process of converting objects to streams.
The stream may be of bytes(Binary serialisation) or XML(XML Serialization).
Serialisation is usefull when
1. There is a requirement to pass objects over network.
2. There is a need to store the object in a file or a database.
|
|
|
|
|
Hi !
I'm programming applications for PocketPC running under Windows Mobile 5.0 and I'm trying to control the integrated WiFi interface.
How could I realise that ?
Please help !
Regards,
Ch'Portos.
_________________________
while(1) {
fork();
}
|
|
|
|
|
Hi
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!
http://www.codeproject.com/cs/miscctrl/GlobalizedPropertyGrid.asp?df=...
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.
Anybody know a Workaround for this two Problems?
|
|
|
|