As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Due to deployment issues (http://stackoverflow.com/questions/11194459/is-windows-afraid-of-its-own-shadow-and-how-can-i-determine-which-ancillary-fil), I'm considering trying a Click Once deployment of my C# app. This is for deploying to a drive/folder on the network to which all users here where I work have access. Are there any caveats or gotchas regarding this?
The clickonce community resource kit on this page includes a pdf with a lot of good information about clickonce deployment. It's become quite difficult to find lately as it's getting long in the tooth, but I think it still has some good stuff.
I maintained a click once application for a couple of years and as far as I know you can't change the install location (it goes into the user's AppData folder). But if the only reason you were wanting to deploy it to a network share was because of access this shouldn't be a problem. Couple of gotchas we ran into:
Don't forget to disable the "require signed security cert" option. Totally forgot about this then couldn't figure out why a year later all our machines stopped updating!
Check the ApplicationDeployment.CurrentDeployment.DataDirectory for items set to "Copy To Output Directory"
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
My developer did not save the stable version of C# application( lets say v12) that we are developing. Now after bunch of enhancements we are at V20, but the application has become crap at v20. So I asked the developer to revert back to v12, but the developer says he cant as he did not save that version. Fortunately he made a .dll file of v12 to test. So I asked him to de-compile v12 dll and revert the code by looking at decompiled code as reference.Despite couple of attempts he was not able to restore and recreate stable v12.
Can someone please advise if there is a way in C# to revert to previous version ?
My application is total mess and the developer just cant fix it . I am really frustrated and concerned that months of development work could go to waste
I am not sure if he is taking me for a ride or genuinely there is no way to revert to previous version.
ps: I do not have any coding background.
Thank you in advance.
This has nothing to do with C#. Good development practice is to use a version control system like SVN, Git, Mercurial etc. Reverting any previous versions is not a problem when using a VCS.
If your "developer" did not do this but just keeps a single set of files for developing, there is no way of reverting. Decompilation of the .dll and start development from there is a poor choice.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am looking for programs which allows you to view a sql database in a GUI created with C#. The benefits of this would be you could create shortcuts to tables an ease of use for companies. However I can't seem to find anything on the internet about companies using a C# program to view databases.
Have anyone used a program which does this?
Is there a direction someone could point me in?
Many thanks.
You don't need to program anything. You have several options:
SQL Server Management Studio aka SSMS (Even SQL Server Express has it)
Visual Studio has a Server Explorer (Menu View\Server Explorer)
I think that option 1 or 2 is more than enough for you. If you want other alternatives you have LinqPad or Versabanq Squel. Check this question for alternatives.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
We have an ASP.NET 4.0 website which randomly throws "Object reference not set to an instance of an object" exceptions. These errors tend to occur in spurts, and the stack trace always points to line 0 in one of the "Temporary ASP.NET Files", "App_Web_f0ihyyu5.3.cs" for example. I am never able to reproduce the issue when attempting to troubleshoot it on our development server.
When these errors start occurring, clearing the temporary files seems to stop them for several days, and then they slowly start to re-occur. I'm not sure how to go about debugging this issue.
I can't tell you the EXACT cause in your case but in my experience those temp files seem to not be updated correctly sometimes.
With each build new random names are generated, hence the funny "f0ihyyu5.3" part of the name. I believe some of these files get "left over" in the temp folder (can't be deleted) when they should have been deleted from your publish / refresh / reload, causing conflicts for a page.
The best resolution for me was to compile into a single assembly. Then you will also know exactly what dll name should be in the folder.
How to precompile ASP.NET 4.0 to a Single DLL with VS 2010
I know this is not a great technical answer for you, but I have lived through this more than once. Save yourself the pain and just compile into a single dll.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I let the Crypto Obfuscator run over my program and i got an .exe file with all DLLs and everything in it. Thats really great but i need to create an installer out of it.
It should cost no time and have a graphical UI!
Whats the best (free) way to do this?
Are there any programs?
There are a few solutions:
Inno Setup and NSIS are popular free and open source scripted installer creators.
If you prefer having a graphical interface, the free InstallSimple and Clickteam's Install Creator are common choices.
For more alternatives, Wikipedia has a page entitled "List of installation software" providing a decent overview of what's available.
(Sorry about the lack of hyperlinks - the site's spam prevention system won't allow me to post more.)
Its in Visual Studio :)
http://msdn.microsoft.com/en-us/library/2kt85ked.aspx
You can use Nullsoft Scriptable Install System
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've been asked to write an internal application for our business that uses mapping functionality to place push-pins of business related data.
As this is not a public facing application and to be used by a single person within our firewall I can not use google maps as we do not have the funds for the google license.
I am investigating the use of OpenStreetMap and can either embed a component into an already existing WPF application or embed into an existing WPF application, a NetBeans platform based application or into a new web application.
Could someone please suggest a library for use in either of these environments?
I recently updated JMapViewer from r26523 to r26975 without incident. Subjectively, it seems faster.
I've recently started to build a WPF prototype using SharpMap - although it's currently migrating to V2 and some of the dataproviders are missing - so I've been using V1 which has support for BruTile. You also might find BruTile useful.