|
Turns out the problem had nothing to do with remoting. I'm new to remoting and didn't realize that unhandled exceptions from the server end propogate through. My service accesses the Performance Counters in Windows and for some reason they don't exist on the clients computer (really strange).
|
|
|
|
|
I can integrate document help with MSDN Library Visual Studio 2005?
phamvudo
|
|
|
|
|
You mean intergrate the MSDN with Visual Studio? Or intergrate your own help with the MSDN?
|
|
|
|
|
I mean integrate my help with MSDN.
phamvudo
|
|
|
|
|
|
If you mean integrate your own help in MSDN then you can
|
|
|
|
|
Hi
I want to set some properties at run time in .net. For example if i want to set textbox's back color then i have to write TextBox1.BackColor = color.red
but i want to assign this color from some variable or config file. so what should i do? another example like i want to set alignment of gridcolom so i have to write col.alignment = HorizontalAlignment.left but i want to assign from some variable so what should i do?
i tried it by assiging "color.red" in string variable and then tried to ctype in color but it didnt allow for casting.
Can anyone advice me please?
Thanks in Advance
Anand
|
|
|
|
|
Set up the config file, read it, and set the property based on what you read.
Aaanand wrote: i tried it by assiging "color.red" in string variable and then tried to ctype in color but it didnt allow for casting.
OK - if you just did 'red' it would probably work.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Rather then storing the value in a string, why dont you use the Color object. You can store this value as an application/session variable.
example:
Color c = Color.Red;
//Store as applicationVariable
Application.Add("defaultColor", c);
//Store as sessionVariable
Session.Add("defaultColor", c);
//Retreive ApplicationVariable
Color c =(Color)Application["defaultColor"];
//Retreive SessionVariable
Color c = (Color)Session["defaultColor"];
Hope this helps.
|
|
|
|
|
Can somebody tell me the declaration for the
winsock2.0 function WSAAccept with callback function in C# .net
|
|
|
|
|
The .NET equivalent is to use the Socket.BeginAccept method. The TcpListener class also offers BeginAcceptSocket and BeginAcceptTcpClient .
|
|
|
|
|
Hi,
I have developed a windows application and published that. In my desktop that works fine, but when i try to access that from another machine in my desktop it throws an error that "unable to connect to the remote server". I think the error occurs when the application tries to connect to the database. The connection string i specified is...
"Data Source=MyServer;Initial Catalog=Mydatabase; Persist Security Info=True;User ID=sa;pwd=MyPassword"; ...
Should i add something or customise?
Please guide me to solve this....
Thanks in advance
Sebastian
|
|
|
|
|
*wiggles his fingers and stares vacently into space*
My psychic powers are telling me your using Sql Server 2005 Express Edition?
|
|
|
|
|
How to handle the user authentication in CAB? I know that there is authentication service included in CAB but i don't know how to use to match my requirement.
Suppose: There are two types of users called ("Normaluser" and "Adminuser") in my System. There are 5 different modules (M1, M2, M3, M4 and M5) in System. The adminuser is allowed to access every modules and the Normaluser is able to access only 3 modules (M1, M2 and M3).
The problem is that the Adminuser log in to the system so that all 5 modules are loaded. then, he/she log out the system without shutting down the application. Then, the Normaluser log in to the Sytem. At that time, he/she is able to access all the modules. If we stop and restart the application then it works. I think i might need to unload the module when one user log out from the system.
I'd like to know how to do that.
Thanks in advance.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I was doing some experiments on this issue during these days. I realized that it's so hard to unload the loaded dll(s) from current domain. In order to unload the dll (assembly) from current domain, we have to shift this dll to another domain and unload the whole new domain.. loading dll to different domain(s) is okay as long as they dont have visual. But modules have a lot of visual things
Loading modules on deamand:
http://staff.southworks.net/blogs/matiaswoloski/archive/2006/02/26/CABModulesOnDemand.aspx
About restarting application
http://www.codeplex.com/smartclient/Thread/View.aspx?ThreadId=4786
Logout generally:
http://www.codeplex.com/smartclient/Thread/View.aspx?ThreadId=10140
Tell us more about CAB Modules isolation requirements
http://blogs.msdn.com/eugeniop/archive/2006/09/21/764953.aspx
It seems like the limitation of winform. The login/logout things is very common in practical project and I think it is a must to have in every applications. (Why do we need to shut down the application to change the logged-in users? )
However, I'm thinking another strategy to achieve this goal.
I created one small project in the same way mentioned in the sample ("08 ObjectBuilder with CAB" from Hand-on Lab ).
I made some changes (which is in bold) as following in BuildUp method.
public override object BuildUp(IBuilderContext context, Type t, object existing, string id)<br />
{<br />
if (existing == null)<br />
{<br />
return base.BuildUp(context, t, existing, id);<br />
}<br />
bool hideControl = false;<br />
Type targetType = existing.GetType();<br />
foreach (AuthorizationAttribute attr in<br />
targetType.GetCustomAttributes(typeof(AuthorizationAttribute), true))<br />
{<br />
string role = attr.Role;<br />
if (!Thread.CurrentPrincipal.IsInRole(role)) <br />
hideControl = true;<br />
<br />
}<br />
if (hideControl)<br />
{<br />
UserControl ctrl = existing as UserControl; <br />
<br />
if (ctrl != null)<br />
ctrl.Visible = false;
}<br />
<br />
foreach (PropertyInfo propertyInfo in targetType.GetProperties())<br />
{<br />
CheckAuthorization(context, existing, propertyInfo);<br />
}<br />
<br />
return base.BuildUp(context, t, existing, id);<br />
}
And put the [Authorization(Role = "manager")] in one of usercontrol of one module. The idea is that showing/hiding usercontrol based on User Level. If normal user log on to the System, the control that I mark should not be shown. But it doesn't work. If I set ctrl.Enabled = false; instead of ctrl.Visible = false; then it works. but it doesn't work with visible property.
|
|
|
|
|
hi my friends
my english is weak, so i use simple sentences
I emergency need some code of vb.net
i want to find my harddisk serial number
i want to find my mainboard serial number
i want to find my cpu serial number
serial number or id , not difrent.
if u have
please insert them here
or send to me Golab_omidreza@yahoo.com
thanks
|
|
|
|
|
|
thank you Michael
|
|
|
|
|
I noticed that some xml files and pdb files are generated for dll file.
Suppose: I have one dll called "Microsoft.Practices.CompositeUI" in bin folder. Microsoft.Practices.CompositeUI.xml and Microsoft.Practices.CompositeUI.pdb are automatically generated when I build the application.
What are those file? What is the use of those files?
Thanks..
|
|
|
|
|
The Microsoft.Practices.CompositeUI.xml file is the compiler generated XML documentation file. The contents of this file come from the XML comments in the source code.
The Microsoft.Practices.CompositeUI.pdb file is the debugging symbol file, also generated by the compiler. It contains the debugging "symbols" (information) needed by the debugger to be able to match the compiled binary to the source code when you are debugging.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Okay. I got it. Thanks a lot..
|
|
|
|
|
I was sure that the old DataGrid had a built-in capability to move the current row based on user keystrokes.
Now I can't get it to do that, and tried the same with the newer DataGridView, but same problem.
I know I could set up a textbox, capture the word and do a search, but I thought there was functionality to do so if the focus was on the DataGrid or DataGridView itself.
Anyone?
________
42 is not the meaning of life. I knew that when I turned 43.
|
|
|
|
|
Please remove one of these entries. You only need to ask the question once.
|
|
|
|
|
I have made a desktop based SMS system in C# Dotnet 2.0 and integrate it with an old enterprise solution build in VB6.0.
On Runtime, the Vb6.0 exe is running from local machine and after loading it reads the system registry and extract a remote path to call all the other dll's from a remote location. The benefit is that all the executables is resides on a single remote location and you just have to distribute an exe to all the clients and set the value of remote path in their registry.
A simple 3 tier architecture Where you have a client which is a vb6.0 exe say client.exe and an application server which holds the middle tier or all the executables and a database server.
The location of the database server, password to connect, userid's and location of the application server is saved in Registry through a utility.
This means that all the exe's and dll's are loaded from a remote location which is a shared resource in a network.
Now my problem is that. When my sms exe say sms1000.exe written in c# dotnet 2.0 is called by this client.exe it gives this error in application log and not running.
Faulting application sms1000.exe, version 1.0.0.0, stamp 468dbd07, faulting module kernel32.dll, version 5.2.3790.3959, stamp 45d70ad8, debug? 0, fault address 0x0000bee7.
I must include here that all of my executables and dll's are strong name assemblies and sice it's loaded from a network location I've changed the intranet group to a Fulltrust through this command
CasPol.exe -chggroup 1.2 FullTrust
I've tested it on Windows 2000, Windows XP and Windows 2003 machines and it's running fine. However currently I'm deploying this application from a remote desktop to client located outside my country. On some of their machines running windows 2003 it's running fine However it's not running fine on a few of them which runs windows 2003 as well giving this error in System Application Log.
Faulting application sms1000.exe, version 1.0.0.0, stamp 468dbd07, faulting module kernel32.dll, version 5.2.3790.3959, stamp 45d70ad8, debug? 0, fault address 0x0000bee7.
Source of event says: .Net 2.0 Runtime error.
Any one has any resolution?
|
|
|
|
|
Hi,
I'd like to know how I can find out which language
the operating system has from which my application is started.
For example, someone starts the application on a German Windows PC,
the app should be in german and if started on an English Windows PC,
it should be English.
I know how to use the Resource Files for this, but usally I'm doing this
by choosing the language manually and not automatically.
Thanks in advance
greetz pdluke
|
|
|
|