|
Ray Hayes wrote:
If I browse to the directory and try to "Save Target" the DLL, I get a server error 500. The same happens if I try to download it using something like WGET. Any ideas?
Does the directory you are trying to download from have read access?
Ray Hayes wrote:
So, now.. I've increased the "trust" for my web-server (and placed it within the Trusted zone). Following their instructions, I need to "trust" the assembly. However, on the wizard (The "Which assembly do you want to trust" step) after entring the URL to the .NET DLL, I get an error complaining about it being unable to open the assembly.
There are 2 ways of adding a remote assembly, one requires the filename including .dll extension, the other expects the type, normally filename excluding extension.
Try looking at some remoting examples.
Hope this helps
READ MSDN
|
|
|
|
|
leppie wrote:
Does the directory you are trying to download from have read access?
Since security isn't my biggest concern yet, yes. All rights are assigned.
leppie wrote:
Try looking at some remoting examples.
Remoting is something different to what I'm trying to do here. I've been very successful at remoting after reading "Advanced .NET Remoting" by Ingo Rammer.
leppie wrote:
There are 2 ways of adding a remote assembly, one requires the filename including .dll extension, the other expects the type, normally filename excluding extension.
Neither seem to allow the mscorfg.msc to load the assembly, thus grant runtime rights. Why is this so hard? On the web people either seem unable to get this working at all and others say it is simple (although I suspect that they were using the betas prior to the security being beefed up). The gotDotNet articles don't even touch upon the security issues (making me suspect that they just slightly updated it from the beta).
Regards,
Ray
|
|
|
|
|
Sorry it wasnt any help
READ MSDN
|
|
|
|
|
leppie wrote:
Sorry it wasnt any help
Thanks for the effort anyway...
leppie wrote:
READ MSDN
I have, they don't mention security in their examples. That's why I was trawling the web for keywords..
Regards,
Ray
|
|
|
|
|
Ray Hayes wrote:
leppie wrote:
READ MSDN
I have, they don't mention security in their examples. That's why I was trawling the web for keywords..
lol, I don't think you noticed that "READ MSDN" is leppie's signature so its on every post he makes
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
HAHHA,
READ MSDN
|
|
|
|
|
Although I didn't get any success for my question here, I thought I'd post my solution incase anyone else is looking for the same:
In http://msdn.microsoft.com/msdnmag/issues/02/06/rich/rich.asp it mentions:
"The next tip is about virtual root settings. Surprisingly, if the IIS virtual root is set to allow execute permissions of 'Scripts and Executables,' your managed browser control will not be hosted by the browser because IIS will treat dll or exe like an ISAPI and try to run it. Setting the execute permissions for the virtual root to either "Scripts" or "None" will allow your control to be hosted."
So basically, my problem was with the web-server preventing the download of the DLL's, removing the "execute" fixed this...
Regards,
Ray
|
|
|
|
|
how do i make the form components to look like the XP controls?
[i bet its omethin reeeeealy simple, and im gonna feel stupid when i find out]
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
|
not that hard, all you gotta do is copy the xml they give you into a file of name <project>.exe.manifest and put it in the same directory as the prog and it runs wiv xp style.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
I have an SqlCommand AuthUser which call a sproc in a database. When I call execute scalar it produces a NullReferanceException. Code below. Thanks.
private bool CustomAuthenticate(string username,string password)
{
AuthUser.Connection = Global.sqlConnection;
AuthUser.Parameters[0].Value = username;
AuthUser.Parameters[1].Value = password;
long ret = (long)AuthUser.ExecuteScalar();//Crashes here
return (ret > 0);
}
Steve
Not all who wander are lost...
|
|
|
|
|
I'm kinda guessing that your stored procedure is returning null....
|
|
|
|
|
ok...Thanks. Is there a way that I can tell?
Steve
Not all who wander are lost...
|
|
|
|
|
Steve Severance wrote:
ok...Thanks. Is there a way that I can tell?
Yes, not sure if you have tried this, but when you load up SQL Server Enterprise Manager you can run stored procedures from within the Query Analyser tool. Keep in mind that your stored procedure may return results, it may even return multiple results, however the ExecuteScalar() method will only extract the first column which could be null in your case. You may wish to consider using the ExecuteReader() method or changing your stored procedure to check for null values.
Nick Parker
|
|
|
|
|
What I am needing for my current project is to allow the user to update a collection of objects from a component.
When you add a toolbar to your form, you can then click on the Buttons: (Collection) and the ToolBarButton Collection Editor then appears.
Now I want to do the same thing to my component. I want a RectTrackers: (Collection) property to appear!
I've tried the obvious stuff like
private RectTrackers pRectTrackerCollection = new RectTrackers( );
[Description( "List of all available Rectangle Trackers" )]
public RectTrackers RectTrackerProp
{
get{ return this.pRectTrackerCollection; }
set{ this.pRectTrackerCollection = value; }
}
and it 'seems' to begin to work. The RectTrackers (Collection) property exists, but when I click on it, it is a Object Collection Editor that does not show my internal properties.
Anyone done a custom collection property yet?
Thanks!!
|
|
|
|
|
Well, I found a Microsoft example of them at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/custcodegen.asp?frame=true
Trying to figure out the code now... Wish me luck.
|
|
|
|
|
What is the easiest way to overcome the following problem?
Controls created on one thread cannot be parented to a control on a different thread.
I have (rather had, struggle to figure it out again a very complicated way using a public delegate on the parent form and calling it in a very "strange" way when the event was fired.
Thanx all for replying
READ MSDN
|
|
|
|
|
Why do you want to do that? I never ever undertood the need to have two separate GUI threads in an app?
|
|
|
|
|
thx
An event is fired from a threaded TCP connection. EG in my case, i receive a joined event from the network thread. The executed method for the event is executed on the network thread and not on the GUI thread, hence the error.
READ MSDN
|
|
|
|
|
|
It's System.Windows.Forms
|
|
|
|
|
|
Don't feel embarrassed, it was changed from beta to release.
|
|
|
|
|
here's another one,
BorderStyle =FormBorderStyle.FixedDialog;
to set the border style, and it says it is a class where a vairable is expected
[sry for the n00be Q's, but im a n00be to c#]
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Nnamdi Onyeyiri wrote:
BorderStyle =FormBorderStyle.FixedDialog;
like:
form.FormBorderStyle = FormBorderStyle.FixedDialog; or this.FormBorderStyle = FormBorderStyle.FixedDialog; if you are calling from the form. Note the object reference (form or this )
Are you sure you are not using an old version of SharpDevelop (latest available on sourceforge.net , latest ver 0.88b??? ) or the .NET Framework.
READ MSDN
|
|
|
|