|
I´ve made a desktop application in C# (.NET 1.1) and now I would like it to run in a local intranet. I know that I can change the .NET configuration on each client and give the application FULL_TRUST permission on the machine ... but isn´t there an easier way ??
Each assembly in the application is strong named, and I seem to remember that this should make it possible to have .NET prompt each user for FULL_TRUST permission when the application is initially launch. This would remove the need for changing the .NET configuration on each machine and make my life much easier
Is this possible or is my memory playing me for a fool
Regards
Bjarne
|
|
|
|
|
Bjarne Riis wrote: but isn´t there an easier way ??
Only if your machines are in a domain environment, or some other environment that let's you push down Group Policies. You'll have to put together a Group Policy package that the domain will push down to the workstations.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I seem to have a problem trying to reference the components of my already existing windows C sharp application developed using .Net Framework v1.0.3 to v1.1.4. I tried giving a reference path to the folder containing the DLLs of the new components, but it doesnt work.
Do I need to uninstall the previous .Net Framework and is that safe? By that I mean will my code complie with the new framework. Please help.
Vijay
|
|
|
|
|
Vijaykumar Rajaram wrote: I tried giving a reference path to the folder conta
You can't set a reference to a folder. It has to be to the .DLL itself. You MAY have to recompile the .DLL under the new framework if your .DLL's code won't run under the .NET Framework 2.0 without modification. There ARE breaking changes that exist when running 1.0 or 1.1 code under 2.0. THe list of which you can find here.[^]
An application can only load and run under one version of the .NET Framework at any time, so all of your code that your app needs must run under the same version of the .NET Framework.
Vijaykumar Rajaram wrote: Do I need to uninstall the previous .Net Framework
No, you don't. Each version of the .NET Framework peacefully co-exists with the others.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks alot Dave. That really helped me.
|
|
|
|
|
hey
I am making an HTMLEditor, and one bug which has been annoying the living hell out of me for ages suddenly reared its ugly head.
When typing, the rtb receives text, as it should, but when I click into another control (ie a textbox in a toolstrip) and then click back onto the textbox, it will not enter text from the keyboard.
It accepts cut/paste commands etc, but not from the actual keyboard.
I can only think that some variables have not been reset in one of its keydown events, but there are no obvious errors I can find.
I was hoping someone had some sort of experience with this bug from previous coding.
This code really is too long to post (2500 lines in the main form) but if anyone wants to see it specifically I would be more than happy to share it. The idea of this post was to find an alternative to it being an error in the events.
Regards and thanks a lot in advance
James
|
|
|
|
|
I am building an app for windows a device that uses Window CE.....Every time i try to run the app in the emulator it bombs out on load saying:
Application Preformed an illegal operation and will be shut down. exc
Exception: 0xc0000005
Address: 03fd1a02
the only thing my for is doing on load is setting the text in a label...of course it does more than that, but not untill someone at least clicks a button. Im getting this error before the program even fully launches.
Any help would be much appreciated.
Pablo
Never Mind...I figured it out, it was the icon i put on my form...so i guess you cant use icons in the compact framework? Everytime i put one on it bombs out in the emulator...maybe i need to copy the icon to the app directory on the device?
|
|
|
|
|
Hi all i have 2 java Web services and i had reference to those object from .net client.
The 2 webservices shares common data object (for example object called UIObject)
When i get those web service in my .net environment it refer to UIObject as 2 diffrent objects. one belongs to the first WS and the other to the second one and he doesn't recognize it as the same object.
does anyone know how can i solve it?
Thanks,
Liran
|
|
|
|
|
Hi all.
I have a little problem and I can't solve it myself already 2 days.
I have an ASP.NET web application, it has static reference to an datamining assembly which collect some data. DataMiner loads some drivers using simple factory
DriverController's (Factory) static method LOADDRIVER:
<br />
private static IDriver m_driver;<br />
Assembly Driver = Assembly.LoadFrom(m_driverInfo.FullPath + m_driverInfo.FileName);<br />
m_driver = (IDriver) Driver.CreateInstance(m_driverInfo.TypeName);<br />
return m_driver;<br />
than, DataMiner works with driver by invoking its method
<br />
public double GetMetric(string MetricName, params Object[] args)<br />
{<br />
return (double) this.GetType().GetProperty(MetricName).GetValue(this, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Default, null, null, System.Globalization.CultureInfo.CurrentCulture);<br />
}<br />
Driver has properties named accordingly metric names. This properties invoke remote web service's methods for getting values.
When i have simple winform application instead of webapplication - all works, but in case of web application any of Driver's properties fails on remote web service's method invoke with InvalidOperationException (message: There was an error generating the XML document.) --> Inner exception: InvalidCastException (message: Specified cast is not valid.)
Stack Trace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Serialize(SoapClientMessage message)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at TTServerService.ttsoapcgi.getRecordListForTable(Int64 cookie, String tablename, String filtername, CTableColumn[] columnlist) in ***
at TTDriver711.GetTotalDefectsCount() in ***
Has somebody any ideas?
Thanks very mach in advance for any helpful information.
Regards, Andrew Vaverchak.
-- modified at 13:40 Monday 6th February, 2006
|
|
|
|
|
Hi,
Has anyone (or know of someone) ever done the Smart Client app that has functionality similar to Outlook 2003? Any information is great appreciated.
Thanks,
Daniel
|
|
|
|
|
Hello...
How can I make a program to convert from one extension to another??
for example from .mp3 to .wav or ram and vice versa..
Database85
|
|
|
|
|
Get the specifications for each format and work out what you need to do to convert the data from one to the other. The other option is to buy in a pre-built API or look at open source projects that already do this. For example there is already an open source project called LAME that provides code for converting in to and out of MP3 format.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
what is the use of JIT complier in .Net Framework
sowjanyakumar
|
|
|
|
|
It compiles the MSIL code in your .EXE's into native processor code just before it's needed. The JIT is also heavily used by the Visual Studio IDE to help out with Intellisense, code completion, Immediate mode in the command window, and a bunch of other things.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi.
Well, the subject says it all. Where do I enter the account user\password which is different than the account I'm loged onto in the local computer.
(I set up all the requierments regarding debuging group as stated in various help files I found)
tnx.
Gilad.
|
|
|
|
|
I need to find a way to end an asynchronous call without letting the callback function run.
The call is a networkStream.beginRead, and I need to stop the object from reading the networkstream, without closing the connection.
Any ideas?
|
|
|
|
|
Could you get us into context here?
I have no clue WHY you want to do that, HOW your application is structured and WHAT the prerequisites of the network connection are, so I have no idea where I should start.
I am no native speaker, so I might be missing something obvious. In that case: Sorry. My bad.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
m using .net framework 2. and compling my c# project using nant(new version). but while creating msdn like help(using ndoc task in nant build file), m not getting the description at all. can anybody tell me the reason. Thanks in advance...
pooja
|
|
|
|
|
Start by checking if the description is present in the xml file, to determine if it's the compilation or the documentation creation that fails.
---
b { font-weight: normal; }
|
|
|
|
|
First of all thanks for ur reply. Yes,Description is present in the generated xmls.(From description I mean the comments written in the various tags eg. ,<param /> etc...). These comments are not there in MSDN like help..
pooja
|
|
|
|
|
Well, NDoc does not officially work with .NET 2.0 yet so you could expect problems.
Kevin
|
|
|
|
|
Hi,
Im new to codeproject, I was hoping to get some help. Im tryin to convert the Image into Byte stream and send it to MySQL database. (Hence, so I can send image to database)
MemoryStream^ mst = gcnew MemoryStream();
viewPictureBox->Image->Save(mst,viewPictureBox->Image->RawFormat);
Byte BinaryImg[] = mst->GetBuffer(); <- doesnt like this line
MySqlCommand^ cmd = gcnew MySqlCommand("SELECT * FROM Patient", Mycon);
cmd = gcnew MySqlCommand("INSERT INTO patient(Leftimage) VALUES" + "('"+viewPictureBox+"')", Mycon);
I get the following error:
c:\documents and settings\hasan bajis\desktop\lei_patient_new\lei_patient\lei_patient\Form1.h(1230) : error C2440: 'initializing' : cannot convert from 'cli::array ^' to 'unsigned char []'
Im using MC++.
Can someone plz give me hand.
thanks alot in advance
hbjs
makaveli
makaveli
|
|
|
|
|
The trouble you have is that using managed C++ means you have two different memory models, AKA MC++ is gay. If you must do this, then you need to convert the data, probably using Marshall::something. Nish would be a better person to ask, and the C++/CLI forum a better place to get his attention.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks mate,
Ill post it tehre
makaveli
|
|
|
|
|
I'm looking for a way to capture information regarding the movements of windows belonging to an application outside my own. I'm working in C#.
My situation, in brief: I have a window-management tool which takes windows created by another application and sizes/positions them on the desktop based on a user's pre-defined preferences. I currently achieve this via a timer-based loop which reads top-level windows through Windows API calls.
Instead of this, I would like to monitor the windows message queues to note windows position changes; eventually, I would also like to monitor creation and destruction of windows, but I'll start with reading movement.
The trouble is that while there are many guides for writing local hooks, there are few for global hooks -- and the global hooks are mostly about capturing mouse and keyboard.
I know the target window handles; I believe I want to create Local hooks into specific threads (outside my application.) These will involve the same memory-context problems as global hooks, and I suspect I will need a .DLL with the hook handling code. I am unsure how to achieve this in VS 2005 and
C#; it seems I'm forced to use some compiled C code? Is that correct?
If anyone can offer advice or good references, it would be greatly appreciated. . . or if someone with experience building .DLL's for handling hooks can lend a hand, I'd be thrilled.
Again, my entire application is built and works; I just want to get away from the inelegant solution of repeatedly checking all window placements to compare against the last known position; I'd really like to make the architecture event-driven.
Thanks in advance.
|
|
|
|