What do you mean "it won't take". Please be more technical, as this is a technical forum.
If you mean it won't compile to a .resources file and get embedded in your assembly, right-click on the file, select Properties, and change the Build Action to "Embedded Resource".
If you're new to .NET, you should definitely read the .NET Framework SDK. It contains many topics - including localization with resx files - and the class library documentation for the .NET Framework itself. See http://msdn.microsoft.com/netframework/using/[^] for more information and links to the .NET Framework SDK on MSDN Library Online.
Browsing the MANY articles here on .NET and C# on CodeProject can also be beneficial. There are many examples and code-snippets for all levels of programmers. Just browse the relevent categories.
Thanks I will take a peek but I will reiterate. I have 2 projects and am moving some controls from 1 to the other. In the first project, there are a bunch of .resX file in the project tree. I copy those files to my new project directory, try to add them like I would any other file (via context menu). Basically it doesn’t add it to the tree like on would expect. I can add cs files, etc, but not these .resX files. I hope that is a bit clearer.. sorry for the confusion…
Again, what is the exact error? What exactly won't work? Please be specific.
If you're copying those to your new project directory and trying to add them into that project, you should expect a "file exists" error. Instead, show the hidden files for that project by selecting an item in that project and click the Project menu, then Show All Files. Find the resx file in that directory, right-click, and select Include in Project.
Make sure you take the namespaces changes into account if you didn't override the default namespace for your project (if necessary) in the project configuration settings (right-click on the project and select Properties). In VS.NET, resx files are created using the root namespace of the project, followed by any directories in which the resx files are located, and are finally compiled to .resources file with the namespace and filename prepended.
You have to expose them as COM objects and register the assembly on the system with regasm.exe. If you need to access the Excel object model from these controls, you should also create and reference the Microsoft.Office.Interop.Excel.dll primary interop assembly (PIA), downloadable from http://msdn.microsoft.com/downloads/list/office.asp[^]. You can pass objects from Excel to your controls through methods you define, such as passing the Excel.Application object, which is what Excel does to foster automation with VBA (Visual Basic for Applications).
I have created a Webservice using Visual Studio .NET 2003. The webservice works fine on my local webserver. I then created a Web Setup project to install/uninstall this webservice. I have tested it on my local machine and everything works fine.
Now, I need to deploy this webservice on my website. The ISP I use supports .NET Hosting v1.0/V1.1. However, how can I run the Web Setup on their server!???
I tried copying the files, but it doesn't work. I changed custom errors mode to be Off, and changed the authorization mode to None. I also changed the .webinfo file to reflect the webservice location.
When I use the browser and type:
I get the following (even when I set the customErrors mode to Off, I still get the same error:
Server Error in '/' Application.
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
phpWebNotes is a page annotation system modelled after php.net.
<a href="http://webnotes.sourceforge.net/demo.php">http://webnotes.sourceforge.net/demo.php</a>[<a target=_blank title='New Window' href="http://webnotes.sourceforge.net/demo.php">^</a>]
You can copy file there through ftp but don't forget that you have to put it in virtual folder , they have to create it for you or give you some admin privilage to do that. I'm not sure you can run installshield there when you don't have direct access to server. For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there.
Mazdak wrote: For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there.
What is the difference between having it in the root of the website vs. in a sub-directory? I thought virtual directories are to map internal server paths into sub-folders of wwwroot. In my case, I copied the files to a sub-folder of wwwroot. I attempt to execute the webservice as follows:
When you create a web service with VS.NET it automaticlly do the setting for you and set that directory as virtual directory so it works without problem, but when you upload your files you have to do setting manually.
Makes sense... But what is the benefit of having it as a virtual directory? As I said before, I thought virtual directories are useful to map paths that are not under wwwroot to virtual directories under wwwroot.
First of all, I'd like to excuse my stupid question .
However, I'm having probelms understanding the use of simple lookup tables in c#. I do not want to use database to create them, but classes or data structures instead. How can it be accomplished? I'd appreciate if one could explain the idea and the usage thoroughly.
Little more about my problem. I'm implementing an price collection software that fetches prices from multiple web sites. So one item (lets say MS Windows XP professional) may have multiple prices and it's name may me written in multiple ways (such as Win XP Pro or Microsoft Windows XP Professional etc).
Any tips how to overcome this problem? Thanks you for your answers in advance!
Besides maintaining an instance of a DataSet (which can be easily serialized to and deserialized from XML) and using Find, you can also use an IDictionary implementation like the Hashtable. This won't, however, allows you to find similar but different names without extending the Hashtable greatly.
Otherwise, you can always build your own database-like implementation with lists, collections, and the sort. To find similar names you'll offen experience O(n) operations unless you use something like a character-based or word-fragment-based B-tree.
After digging through the assemblies and documentation, if there is a way I haven't found it.
However, hiding information is by no means a way to secure information. Instead of worry about others getting your service definition, use the Web Services Enhancements 1.0[^] (2.0 is still a preview and shouldn't be used / can't be used due to licensing restrictions in production environments).
You can add WS-Security (remember my XML Digital Signatures article? That's a part of it) and many other things (like authentication via X.509 certificates) to ensure that no matter who gets your WSDL, only people to whom you grant credentials or certificates (or both) can access your Web Service.
This is by far a better way than just hiding it. If someone wants your service definition that badly, they will get it.