|
Do these other machines have the .NET Framework installed? They'll need it to run your control.
Also, is .NET Framework and IE security setup properly to allow code to be executed from a network source?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
other machines do have .NET installed on them.
|
|
|
|
|
Well, the other machines will need the .NET framework on their machines. Also, if your control is doing anything that requires elevated security permissions, you'll need to grant that assembly higher privileges.
|
|
|
|
|
All other machines do have .NET installed on them
|
|
|
|
|
Try adding your website to the target machine's trusted sites list in Internet Explorer.
One thing you might want to try is just a simple "hello world" inside IE to see if the users can even run that. If they can't, we know it has nothing to do with your code and its security permission requirements.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Lent Revisited
The apostle Paul, modernly speaking
Judah Himango
|
|
|
|
|
the fact that I can run it on one of the machines tells me that the app itself is ok. I even did not have to add my site to the trusted sites there. What security permission requirement do I need to check on the machine where it does not run?
|
|
|
|
|
Hello everyone,
I've officially lost my mind. I'm trying to sign a third party dll which I wont beable to get a PIA from the company for. Based on microsofts documentation I should beable to use the Ildasm.exe tool similiar to this: ildasm assembly.il /dll /key:publicprivatekeyfile.snk but i get an error message back from ildasm stating that "INVALID COMMAND LINE OPTION: /dll". I am staring at the ms documentation telling me to use that option. What am I doing wrong here?
Thanks!
Ryan
|
|
|
|
|
ildasm is the IL Disassembler. It looks like you're in need of ilasm, the IL Assembler.
|
|
|
|
|
wow, im an idiot, ive been staring at this way way too long, thanks so much for the post.
Ryan
|
|
|
|
|
Hi All,
I am trying to add toolbar in windows explorer.I am adding two different drop down buttons in the toolbar.In one of these buttons the user should be able to select only one option from the dropdownmenu.in the other the user should be able to select more then one options in the drop down menu.using band object library I am able to display the toolbar , but how to get multiple selection for the second case.also is it possible to display the tick against each selected and black dot against the selected meum item(like the standard buttons in windows toolbar).Any suggestions?Thanks in Advance.
Rakesh
|
|
|
|
|
Hi
I have faced one problem on calling the native dll's functions from C# .Net coding.Actually i wrote
one dll to control the Digital Multimeter in a remote programming mode through GPIB interface.
Initially i have imported the win32 dll provided with GPIB driver in my coding and tried to send the
data to the Digital Multimeter, Whenever i send the data, it throws this Exception
" System.AccessViolationException: Attempted to read or write protected memory. This is often an
indication that other memory is corrupt." , but i will send the data from VC++ application,its
working fine. Is there any specific settings needs to do? Please help me to solve this problem.
For your reference i have pasted the header file function ,VC++ coding as well as C# coding here.
Header file function
----------------------------
extern long int _cdecl ieee488_send (long int,char *,unsigned long,long int *);
#define send(addr,s,status) ieee488_send(addr,(char *) (s),0xFFFF,(long int *) status)
VC++
----------
send(temp,info,&status);
info is character pointer
Status - int
C# -- I have tried in the folowing ways
------------------------------------------------------
1. [DllImport("IIEEE_32M")]
public extern static int send(int address,string strCommand , ref int status);
send(inGpibAddress, Command, ref inStatus);
2. [DllImport("IIEEE_32M")]
public extern static int send(int address,string strCommand , out int status);
send(inGpibAddress, Command, out inStatus);
3. [DllImport("IIEEE_32M")]
public extern static int send(int address,[MarshalAs(UnmanagedType.LPStr)] string
strCommand, out int status);
send(inGpibAddress, Command, out inStatus);
4. [DllImport("IIEEE_32M")]
public extern static int send(int address,[MarshalAs(UnmanagedType.LPStr)] string
strCommand, intptr status);
send(inGpibAddress, Command, out intptr inStatus);
Thanks in Advance
Thanks and Regards
Madhu
|
|
|
|
|
I think the problem is with the string type. Have you tried using a byte[] array?
Also, you may want to write a wrapper function using MC++ and use the pin on the byte[] array to make sure the garbage collector doesn't move that memory since it's being used by a native sub-routine that can't be notified of pointer re-locations. Just a thought
----
www.muzikstor.com
|
|
|
|
|
I've never tried using a #define with P/Invoke, but if I were to guess, I'd say that may your problem. I suggest you try having your C# calling the ieee488_send method instead of the define'd send:
public extern static int ieee488_send(int address,[MarshalAs(UnmanagedType.LPStr)]string param2, uint param3, out int status);
|
|
|
|
|
I'm no C# expert, but if the ieee488_send method is expecting a pointer for the second and last arguments, then I think you need to declare them BOTH using "ref" (as you did the last one).
<br />
[DllImport("IIEEE_32M")]<br />
public extern static int send(int address,ref string strCommand,int xx, ref int status);<br />
send(inGpibAddress, Command, 0, inStatus);<br />
Also, does the method expect 3 or 4 arguments? In your VC++ example you have 4 arguments in the header file definition for ieee488_send. In C# you are only defining it as having 3 arguments...
----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin
|
|
|
|
|
I would like to bind a single cell of a DataGridView control to a numeric variable (e.g.: System.Int16), either
by directly binding to the variable (better)
or
having the numeric variable as a public property of a class.
Is there any way to do it?
Thank you.
|
|
|
|
|
as far as i know, if you set an instance of a class as the data source for that datagrid, the public properties will be used as fields for the datagrid. for example:
Class MyClass
{
public string PublicProperty
{
return "string";
}
}
//after that..
MyDataGrid.DataSource = MyClassInstance;
will let you have the datagrid display just a column titled "PublicProperty".
I hope this will help.
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
My problem is different:
I need to bind a single cell to a given public property of an instance of a given class, another single cell to the same (or a different) public property of another instance of the same (or a different) class, and so on...
I'm not trying to define a global datasource for the grid.
|
|
|
|
|
sorry, i misunderstood. that's an interesting problem, i'll work on it.
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
Can anyone tell me how to insert a clob into oracle. I need to upload a document and insert it into a clob column
Thanks
|
|
|
|
|
hi all!
please tell me how to create a spalsh screen. i have put a timer and after it elapses i am able to open a new form. but the splash screen refuses to close.
I recently migrated to C# used to work on VB.NET before. in VB i had created an application context and managed to close the opening screen and transfer the mainform property.
this does not seem to work in C#. please help
regards
Vineet
|
|
|
|
|
in visual studio from the Project menu select [nameOfYourProject] Properties. in the "application" tab (usually the first to appear) look for the "splash screen" combo in the "windows application framework properties". here you can select the splash screen you previously added to the project (you added one, didn't you? ). then you should be done...
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
Hi All!!
I have an ecommerce website, and is hosted in America.
When a user registers, how do I get the time that he registered by, meaning.. His/her time. The user can be in Australia, but for my DateAdded field I want it to be the local time of the user, and not the time on the server.
I hope this makes sense.
Regards.
ma se
|
|
|
|
|
You have to pick up the local time using Javascript, and send that to the server.
I recommend that you save both the user time and the server time. The user time is convenient for the user, but a user can change the computer clock, so for you to safely know the real time of the transaction you need the server time as that can not be altered by the user.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for that!!
But how is it possible to send the time on the local machine using JavaScript to the server?
Thanks
|
|
|
|
|
Make a hidden input on your form and then write it's value with JavaScript. When the user will submit the form you will get the value of that input...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|