|
Sometimes I had similiar problems using RegAsm.
I don't know whether they help, but I have a few advices:
-Clear all Registry Entries made from previous attempts to register your Assembly (search the registry e.g. for the dll-names or UUIDs if any are given in your Code).
-If not already done, type an unique Versionnumber in 'AssemblyInfo.cs' (Important: Don't leave any '*' in the Versionnumber. The '*' shall cause the VS to generate a Versionnumber. I think it's the Buildnumber. But this simply doesn't work correctly, s.t. regasm may try to register a seemingly older version over a newer one.)
- If it still doesn't work:
Try to 'export' as few symbols as possible. That means (in C#): Use 'public' only on functions that are used by other dlls or via com (e.g. implemented Interface-functions must be public).
Use 'internal' for other functions instead.
As far as I understood, public in C# is for com like dllexport in C.
Please tell me if any of the advices helped.
|
|
|
|
|
The problem turned out to be that my DLL exposed an ADO recordset. This was not a problem on machines with Visual Studio.NET installed, because they have ADODB.DLL in the GAC. However, most user machines do not. So the solution was to copy ADODB.DLL from my local machine (C:\Program Files\Microsoft.NET\Primary Interop Assemblies\ADODB.DLL) to the target machine, and then install it to the GAC (gacutil -i ADODB.DLL).
|
|
|
|
|
Hi. I’m thinking about building a general purpose high score xml web service to use in my games. I’m currently working on the Pocket 1945 project, a classic shooter for the Pocket PC. The project can be found at http://workspaces.gotdotnet.com/pocket1945, and an article about the project can be found at http://www.codeproject.com/netcf/CfPocket1945.asp. The article was submitted for the Code Project .NET CF competition, so if you think the project sounds cool, please vote.
So, my web service problem is: how do I make the high score service “secure”? I mean, how can I be sure a method call is coming from a registered game, and not some one trying to fake the score? I was thinking along the lines of strong named assemblies that you register in a database and validate the request and see if it’s a registered assembly posting a new score. But, then again this is only SOAP calls that could be tempered with?
I’m open for any suggestion. How have other people solved this problem? Is remoting an option?
Thanks!
|
|
|
|
|
Hi, I have a major problem with the CallContext when hosting a MarshalByRef Object in the IIS. The problem occurs when the executing method in the IIS throws an exception. The effect is that the LogicalCallContext in the ResponseStream is always the same as in the RequestStream.
My use case is the following: In the CallContext I carry a Transaction Context. At server side this Transaction Context is set or removed. If no exception occurs everything works. But in case of a exception, the modified context is not returned to the client.
Furthermore I tested this scenario in a Windows Service Host (tcp channel with binary) instead of IIS (http channel with binary or soap). In the service host everything works fine, especially with the exceptions. Is this a bug in the http channel in connection with the IIS? I found nothing about it in other Message Boards or newsgroups.
I tried it with SingleCall or Singleton objects.
Thanks in advance for your help.
|
|
|
|
|
How would I register a new file type (file type name, extension, and icon) for my apps with Windows using .NET? Thanks is advance!
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
Hi,
I guess you are asking how to register a new file type during setup of an application.
What I know is if you are making a deployment package for your project then you can do customization on registering new file types with extension and even define custom action on the same.
To do that, in your setup and deployment project use the "File Types Editor" which is the 3rd ICON on the top bar of solution Explorer window.
For more information on how to go about it in the editor please refer to the following URL :
Setup and Deployment Customization
Hope itz useful...
regards,
Aryadip.
Cheers !! and have a Funky day !!
|
|
|
|
|
Thanks for the information. Actually, I was wondering how to do it programmatically. Anyone have any ideas?
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
You can use the Registry and RegistryKey classes in the Microsoft.Win32 namespace. Read Creating File Associations[^] under "Shell Basics" in the Platform SDK for more information.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks for the help!
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
I have a report that needs to be generated in PCL format. I set the output to be printed on the PCl print driver ported to Print To File. Whenever I print the output, I get this Windows Popup "Print to File" asking me for a file name. Been trying to find a workaround on this so filenaming is done programmatically, eg. via VB.Net. I have been told that the .Net framework does not currently support dynamic file naming. Anyone know if this is true? Is there any way to dynamically assign file when sending output to a PCL printer set to Print To File?
|
|
|
|
|
I have experience with C++/MFC/Win32 API but what da heck is that .NET Framework !? Where can i find extremely detailed information... Every tutorial i find is about damn VB and C#. Can anybody familiar with the same things with me help ??
|
|
|
|
|
.NET is a platform for developing managed applications. It is a large collection of library code for working with Windows in whatever language you see need in using, whether C++, C#, VB.NET, etc. Before working with .NET, I only worked with C++/MFC. In a lot of ways, working with .NET has improved the speed of my development. I still use "native", non-managed C++ for projects where I need more low-level control and performance since .NET can be a bit slower for more demanding projects. Native C++ doesn't use .NET while Managed C++ does take advantage of .NET. If you are planning on thinking of taking your C++ programming to .NET, I would personally wait until the next version of Visual Studio .NET (2005 or Whidbey)is released. When MSFT first released Managed Extensions for C++ (which are basically additional keywords so that C++ can more effectively be written for .NET), most people didn't care for the style of the extensions since they all started with "__" such as __gc, etc. In the next version, a more elegant syntax will be used. If you like to do Linux programming as well, you might be wondering, "If I use .NET, cross platform capability goes out the window." Actually, thanks to the MONO project (www.go-mono.org[^]), that problem will be solved since it is a Linux version of the .NET platform. Before I explored some in .NET, I wondered what all of the fuss was myself. I hope that clears up a lot of the mystery about .NET for you.
Here is some information about .NET:
http://msdn.microsoft.com/netframework/using/default.aspx[^]
http://www.go-mono.org/[^] (the Linux implementation)
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
I have a serrious problem.I've developed an application on VC6 that used to work fine. Now I have converted it on VC.NET 7.0 and builded in RELEASE configuration. The problem is that it only works on my computer. On other computers that don't have VC installed it just doesn't start. If started with depends.exe (XP Support Tools) it gives the following error:
Second chance exception 0xC00000005 (Access violation) occured in "NTDLL.DLL" at address 0x77F8243D
Exited "program" with code 128(0x80)
They have all the necesary dlls. What should I do? I'm disperate.
If there is an error in program why does it work on my computer fine, and on other computers without VC .NET installed crashes without any errors??
Contact: nemoprod@go.ro, www.nemoprod.go.ro .
|
|
|
|
|
Just a wild guess. If you have the /clr switch turned on (that is you are using .NET in your VC++.NET project) do you have the .NET Framework installed on the other computers that you have been testing your program on?
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
I've reinstalled Windows on my computer and then installed VS.NET 7.0 and the program isn't working on my computer either now. I have the .NET framework installed on my computer.When i try to debug it I receive this error: "Unhandled exception at 0x77f60b6f in nMonitor.exe: 0xC0000005: Access violation writing location 0x00030fdc."In the call stack it shows:" ntdll.dll!77f60b6f() "
Somebody help. This is strange.
|
|
|
|
|
Have you tried the "Clean Solution" option in VC++.NET? That will delete all object files and allow you to perform a completely fresh build. See what that does, and let me know.
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
Get the Debugging Tools for Windows[^]. From here, you can use WinDbg to debug the process, which if you set it to use Microsoft's Symbol Server[^], will download the operating system's debugging symbols as DLLs are loaded.
This should help you see which function in NTDLL is causing the crash and what the call stack is.
If you don't want to install this on the system that's having the problem, you can set up VS.NET for remote debugging (follow the instructions on VS.NET CD 1) and use the symbol server from VS.NET. See Microsoft KB article 319037[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I have created an installer with setup.exe bootstrap, however I would like for my installer to create a shortcut on the startup menu for my visual c++ .net app, just like a regular program. Can anyone give me any advise, or point me to some documentation?
|
|
|
|
|
I am having same issue with vb.net the installer works but I cannot figure out how to add menu item to programs menu. In VB6 the package & deployment wizzard did this for me so I never gave it much thought.
Any suggestions would be appreciated.
Thanks
Tom
|
|
|
|
|
Never mind I found it. Under "File System on Target Machine", right click on "Users Program menu" and select add folder.
Thanks
Tom
|
|
|
|
|
Yeh, Tom is quite right...
after creating the folder , on the right hand panel right click and select "Create Shortcut". Gave a name to the shortcut and set itz properties e.g. "WorkingFolder" and "Target".
In target set the exe name.
In working folder navigate to the "Application folder" and set it.
For placing an Shortcut on the desktop the same needs to be done under the "Users Desktop" node.
Note : Right click on the "File System on Target Machine" select "Add Special Folder" and you will find more idea about where all you can place files or shortcuts during setup or do more customization.
regards,
Aryadip.
Cheers !! and have a Funky day !!
|
|
|
|
|
I am trying to import into SqlServerCe from an XML file. There is also a schema file available.
I have opened up the target .sdf database.
I used ReadXML to fill a DataSet from the xml file. Where do I go from here?
"For all of our languages, we cannot communicate" - Christy Moore, Natives
|
|
|
|
|
How can one change the color of a scroll bar that's present in a RichTextBox instance?
|
|
|
|
|
Hi,
has anyone figured out how to get round the PrintToFile issue with .Net?
The PrinterSettings.PrintToFile property can only be set by the System.Windows.Forms.Printing.PrintDialog class. The Print to file option only appears on the System.Windows.Forms.Printing.PrintDialog when the System.Windows.Forms.Printing.PrintDialog.AllowPrintToFile property is set to true. For more information, see the KB article "'PrintDocument Class' Does Not Implement The PrintToFile Feature (820644)" on Microsoft TechNet, at Technet Article [^].
I really want to be able to print to a temporary file (using a pdf driver) for e-mailing.
Thanks in advance,
Gary
|
|
|
|
|
hi,
I am developing a windows service (using VB .net) and I am installing it successfully but when I start it system is automatically stoping it the message I get is the following 1:
The DBWriter service on local computer started and then stoped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts Service.
Heeeellllppp........
|
|
|
|