|
You're making the assumption that the MappingName property will dynamically invoke your FieldName property, based on some type of parsed interpretation of the string value. I assume that MappingName is not built that way.
Why did setting MappingName to FieldValues("whatever") not work? What was the actual problem?
:josh:
My WPF Blog[^]
|
|
|
|
|
Hi Josh,
Why did setting MappingName to FieldValues("whatever") not work? What was the actual problem?
Just the usual problem when mapping names don't match a property in the bound type: the column is not displayed. No exception or anything useful to help debug! .
I accept your points about dynamic invokation - maybe I was hoping for too much.
Thanks
Luke
|
|
|
|
|
Hi Folks,
I would like to write an installer for my C# program. I have no experience with installers, but I know there are some programs/tools to help me do it.
Can you recommend to me how to approach this? Maybe there are some tutorials that can help me.
In addition to the common installation tasks (copying files, registering, uninstalling) I would like to do the following in the installer:
Check if the required version of the .NET framework is installed, and if not, install it;
and the same for the Managed DirectX version.
Thanks for your help!
|
|
|
|
|
Add a Setup Project (or a Web Setup Project) to your solution. Search CP for articles about how to configure it.
:josh:
My WPF Blog[^]
|
|
|
|
|
|
NSIS[^] is by far the best installer I've come across, although it will take a short while to become experienced in it.
VenisIX[^] is a good editor with a built-in wizard for generating scripts.
Take a look at SharpDevelop's[^] installer for functions to check for .NET Framework existance.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hi All,
I have a problem, recently i deployed an app on windows 2003 server, when i try to run the app its giving this error:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
here is the even log info
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.
can some one please help me?
Mk
|
|
|
|
|
It probably means that the user account under which the worker process is running cannot read the disk directory in which the files are stored.
Ensure that the permissions on the directory include the account which the worker process runs under. You can change the worker process identity by editing the properties of the application pool containing the application experiencing the problem. By default this is the NETWORK SERVICE account.
|
|
|
|
|
I get a DevicePath using SetupDiXxx functions:
\\?\usbstor#disk&ven_fujitsu&prod_memorybird&rev_1.14#0739035033a1&0#{53f563
07-b6bf-11d0-94f2-00a0c91efb8b}.
How can I use this device path to retrieve a drive letter in format of "F:\" ???
When I use GetVolumeNameForVolumeMountPoint function, I always receive "error C3861: 'GetVolumeNameForVolumeMountPoint': identifier not found, even with argument-dependent lookup" even though I've already add statement in my code : #define _WIN32_WINNT 0x0502
-- modified at 10:15 Wednesday 19th July, 2006
|
|
|
|
|
Hi All,
I'm a complete newbie to coding and the like, but I have been given an urgent deadline to create something, and I haven't a clue at all what to do.
I have been asked to create a a progamme that will have a desktop Icon, and will launch a window with no bottons or anything like that (similar to an IE popup window) and only have a title bar at the top (with the name of the programme), and simply display a .html or .php page that I have already created for it.
I'd assume that for a seasoned code guru, this probably sounds so simple and a silly request for help, but I really don't have a clue!
Any help will be most appreciated, and many thanks in advance!!
Regards
Kevin
|
|
|
|
|
Sounds a bit odd to me but here a short description:
1. Download and install the Visual Studio C# Express Edition.
2. Start it and create and new windows forms application.
3. You will see an empty form. Click it and change the properties as you like.
4. Look at the tool box at the left. There is a WebBrowser control int it. Drag it onto the form.
5. Change the properties of it as you like (in one of them you can choose which file should be displayed)
Robert
|
|
|
|
|
Hi,
Thanks for the quick response!
I have followed your instructions, and it works well to create the application, although none of the video in the window will load. However, if I launch the HTML file in IE, the video does work.
I assume I'm doing something wrong somewhere?
The video is Windows Media, four seperate feeds embedded on a webpage, using activeX
|
|
|
|
|
Hi there,
I want to use a custom configuration section of the following form
(using the new .NET 2.0 classes, not the old
IConfigurationSectionHandler interface):
<mySection>
<Setting1>Value1</Setting1>
<Setting2>Value2</Setting2>
</mySection>
But all examples I have found only describe this form:
<mySection>
<Setting1 Value="Value1" />
<Setting2 Value="Value2" />
</mySection>
I have this second form working, but I would like to know if the first
form is even possible, and if yes, how to do it. I'm using the
attributed model, so a small example with the attributed approach would
be appreciated.
Thanks!
cu, banzai
|
|
|
|
|
Hi,
I am student of MS.I have got a project of Mobile Agent in course of distributed system. I have not worked on such kind of thing. I want to implement it in .NET. So plz help me . Tell me some articles /guidelines so i can implement it.I will be very thankful
nabeel
|
|
|
|
|
i downloaded an example of property grid custom properties.
this is the example link:
http://www.codeproject.com/cs/miscctrl/Menu_in_PropertyGrid.asp
when i clicked on "sturct" property i get a button on the right side of the property.
i dont want this button to be shown.
how do i do it?
waiting for your answer.....
thanks and have agood day
|
|
|
|
|
There is a board at the bottom of the article. If you place your question there than the author will be automatically notified. He probably knows best how to help you.
|
|
|
|
|
Sometimes (less that 1% of the calls) I am getting “System.Runtime.Remoting.RemotingException: Port is Busy: All pipe instances are busy” on remote method invocation when using IpcChannal.
Has anybody experienced the same problem?
Suggested solutions?
|
|
|
|
|
Maybe trying to disconnect/hand off from the ipc channel will resolve this.
|
|
|
|
|
Hello there,
I'm looking for a method to convert an object to Guid type and vise versa.
Thanks.
|
|
|
|
|
Please don't cross post !
My english is not so good. Please, correct my errors.
Best regards, Alexey.
|
|
|
|
|
If i call Web Service from same server it's working fine. If i try to call the Web Service from another server,i am getting this following error.
Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\39_bmero.0.cs' could not be found.
error CS2008: No inputs specified.
sathiya
|
|
|
|
|
I'm going to guess that when calling it from the same server, it uses Windows Authentication. The ASP.NET runtime then uses your credentials to write the C# code that it generates to do the XML serialization, which it then calls the C# compiler on to generate an assembly to load.
When you call it from another server, it's probably using anonymous authentication, which means that the serializer code is running as the ASPNET user (Windows 2000, XP, by default) or the NETWORK SERVICE account (Windows Server 2003). The actual account used can be modified in web.config on 2000 and XP and by changing the application pool settings on Server 2003. I suspect that the error is occurring because the Access Control List on the C:\Windows\Temp folder doesn't allow this user to write to it. To change this, right-click the folder in Explorer, go to the Security tab, click Add, select the appropriate user, and check Modify in the Allow column.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I have been developing some extensions to bollwerkj's article "How to use Managed C++ to Automate Excel" (http://www.codeproject.com/managedcpp/ExcelwithMC.asp[^]) and one key line is
using namespace Microsoft::Office::Interop::Excel;
A couple of weeks ago, I loaded the new Windows security updates, and now I am getting compile errors that say "Interop is not a member of Microsoft::Office." Anyone have any idea how to undo what I've done and get this back? (I don't know for sure that these two events are connected.)
I went back to through the article and re-installed the PIAs, but that didn't fix anything. The files were all available. Has anyone else run into this kind of problem before?
Any suggestions will be greatly appreciated.
Thanks,
Dave
"You can say that again." -- Dept. of Redundancy Dept.
|
|
|
|
|
I have a plug in that I load into a new appdomain, and before I create the domain, I set the AppDomainSetup.ApplocationBase directory to point to where all the assemblies which constitute my plug in are.
This works just fine, and the new domain obediently goes away and loads the satellite assemblies in. But I also have a text file I want to read in, but when the plug in tries to do this, it searches the primary domains bin\debug folder, not the one specified in the ApplicationBase folder.
Anyone know how I can use the ApplicationBase as the working folder for the domain as well as the assembly search path?
Regards,
Rob Philpott.
|
|
|
|
|
The ApplicationBase property does NOT change the current directory for file operations. It only affects the loading of assemblies for that AppDomain. An application cannot have more than one "current directory", one for each AppDomain is not possible, and using it is considered an unreliable practice anyway. Change your code to get the path to the .EXE (Application.StartupPath), then use the Path class's Combine method to create fully qualified paths to the plugins.
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 11:20 Tuesday 18th July, 2006
|
|
|
|