|
Ok I need to have a better understanding.
It sounds like this is a windows app. Is that true?
If it is a windows app then someone has to be logged on to the server to run the windows app.
So you are saying you are logging or remoting into the server, and trying to run the app, but nothing happens?
I thought you were saying you were doing something like:
\\servername\appfolder\app.exe
If you were doing this the application is running on your PC not the server. Then my article would fix for running an exe from a server on your local PC.
Anyway, if this is something you want to run with no one logged into the server you need to create a windows service. The windows service can be set up to run at a certain time and have certain login to it has the correct rights.
I would guess currently whoever is trying to run the app on the server doesn't have rights to the folder the ini files are in, but that is just a guess.
Ben
|
|
|
|
|
Ben, this windows app would be running ON the server, not the admins PC.
However, I figured out the problem:
No ASP.NET installed on the server. The sticky part is that I can't install ASP.NET without also installing IIS. That is a violation of policy (this is a file server with SQL databases). So I can't install ASP.NET.
Is this true (I am not a server expert by any stretch)? That I need ASP.NET to execute windows apps.
Steven
|
|
|
|
|
hello,
i'm trying to cope with a couple of math calculations i need to do within my c# application. i've got two problems: first, i have difficulties translating the vocabulary to english and second, i don't know how to code it in c#.
two things i require:
1. how do I get the root of n?
2. how do I calculate the reciprocal of a number? and what is the reciprocal anyway?
and yes, i've been to school. but this is a long time ago. thanks for your help!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
matthias s. wrote: how do I get the root of n?
You can use Math.Pow method
matthias s. wrote: how do I calculate the reciprocal of a number?
matthias s. wrote: and what is the reciprocal anyway?
Well I believe first you have to find out what reciprocal is and then start coding it. So why don;t you google?
|
|
|
|
|
thanks for your help on the first part. ad google: i did. but still, i don't understand what i've found. the explanations are cluttered with different approaches on how to deal with reciprocal - this is why i asked.
to clear things up a little, I'd like to mention, that I'm trying to do what is written here:
"To convert this value to ordinary 'Shutter Speed'; calculate this
value's power of 2, then reciprocal."
i'm just in need of a simple answer of somebody, who shares a household with reciprocal and c#
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Here is the definition of reciprocal: http://www.mathleague.com/help/fractions/fractions.htm#reciprocal
|
|
|
|
|
http://en.wikipedia.org/wiki/Reciprocal_%28mathematics%29
1/X so you would take the shutter speed, square it, then divide 1 by it.
|
|
|
|
|
For reciprocal see here [^].
And of course you don't need Pow to take the square of a number, just multiply it by itself.
Perhaps what you need is:
ShutterSpeed = 1.0/(OriginalValue*OriginalValue);
Please note that some care must be taken when OriginalValue approaches zero...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Maybe wrap it in a
if (OriginalValue != 0)
{
}
test.
|
|
|
|
|
StevenBee wrote: if (OriginalValue != 0)
{
}
Maybe you still got a divide by zero exception!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: And of course you don't need Pow to take the square of a number, just multiply it by itself.
I thought he meant n-th root from number
|
|
|
|
|
thanks a lot. i'll try that tonight.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
So...Have a nice night!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I have to generate and send snmp trap from my application/service on-start or on-stop in c#.net. I have been googled more than 15 days but unable to get any idea how to do this.
I am trying with winsnmp.dll and wmi,but I am newcomer to these and ultimately gets failure.
plz help how can i achive this
yours
ashis
ashis
|
|
|
|
|
Hi,
I want to create a Custom collection Class
Where i can store values by just
CollectionObject.Key=Value;
Is it Possible to do like this.
If not is it possible to create dynamic properties to a class.
Please Help me
Thanks
Sakthi.
|
|
|
|
|
Hello,
You mean like this?
public object Key
{
get
{
return this.List[List.Count-1];
}
set
{
if(!this.List.Contains(value))
{
this.List.Add(value);
}
}
}
All the best,
MArtin
|
|
|
|
|
Hi Martin,
Thanks for your reply.
CollectionObject.Key = Value;
Key here refers the key to be stored in the collection class for
Reference.
Forexample
Dictionary<string,string> MyDict=new Dictionary<string,string>()
MyDict[Key] = Value;
Instead of using [](Square Braces i just want to use dot(.) Symbol.
Regards,
Sakthi.
|
|
|
|
|
Apart from, that I don't understand what you mean.
Why would you whant to do something like this?
|
|
|
|
|
This is a really strange idea! All possible keys must be known at compile-time.
However, technically this can be achieved by adding a Dictionary member to you custom Collection and provide a property for each possible key that just wraps the indexer of the dictionary.
Regards,
Tim
|
|
|
|
|
Tim Paaschen wrote: This is a really strange idea!
I do agree!
Tim Paaschen wrote: and provide a property for each possible key
Think about that again! (He will set a long time infront of his computer, and than one day his heart will stop beating)
As we all don't whant him to die infront of the computer writing this "strange" program, we should tell him to search for a better solution!
All the best,
Martin
|
|
|
|
|
Hi,
Thank you very much for your Suggestion and Concern.
Regards,
Sakthi.
|
|
|
|
|
Martin# wrote: Think about that again! ...
I never said that it is a good idea - just that it is technically possible.
Regards,
Tim
|
|
|
|
|
Hello (Hallo) Tim,
Tim Paaschen wrote: I never said that it is a good idea
I know, and my answere was more meant as a joke than a critic on your statement.
Tim Paaschen wrote: just that it is technically possible
Technically possible, would be a set of keys which he defines during design time.
"All possible Keys" is not technically possible!
All the best (Noch einen schönen Tag)
Martin
|
|
|
|
|
Hi friends..
I have designed one simple windows application in which i am retrvng data from data base and populating it to the grid..I build the solutn and have an .exe file for the same..
Now I am designing a web page with a button on it..I want that windows application to run on click of that button ..though I used java script and used windows.open(".exe path name")..i m still facing the problem..can anyone plz help me..
regards,
Rahul
|
|
|
|
|