I am having a problem deploying an application using a file system, I am reading and writing a file in my application if I run my file in my visual studio it runs but when published it freezes.
How can I deploy a WPF C#.NET application with file system pls help?
Could be freezing because it can't find the file you're trying to import since the directory will change after deployment. If you're not using an OpenFileDialog control to select your file then I'd suggest doing that.
Related
Hi I am developing a WPF c# project and want to attach a text file and image file integrated into it so that if I export executable file to any other PC, It will run easily...
you are thinking about this in the wrong way, Visual Studio doesn't manage installation on Client machines it only handles building the code for you to run, the thing that manages the installation is the installer
if you want to use a publish installer like click once then you can use Visual Studio to set the publication rules (see https://msdn.microsoft.com/en-us/library/142dbbz4%28v=vs.90%29.aspx), otherwise you actually need to create an installer (see https://msdn.microsoft.com/en-us/library/gg513936.aspx)
EDIT: If i'm misunderstanding your question which i took as how do you get your resourced files to be on the client machine with the exe file, if your question is how to Embed thee resource in the first place then How to refer to Embedded Resources from XAML? provides a very good answer
I'm new in WP development, and now stand before unbreakable wall:
Working in Visual Studio Express 2013
I created a simple journal app, all works fine in emulator and device.
But when i was needed a xap file to upload it to windowphone store, and on top panel i choosed
release-> any cpu , righ click on project name in solution explorer -> rebuilt solution ....
there is no xap file in the Bin directory, there is .exe and .pdb and others... but .xap is missing.
When i created a project, i choosed windows phone app -> empty app (windows phone)...
And just tested, if i'm creating a new silverlight app: windows phone app -> empty app (windows phone silverlight) , xap file is saving without any problem.
So how to save my project, how to create a xap file from my xaml + c# project
Thank you very much!
Silverlight Apps create .xap files, for Universal Apps (like the one you created) a .appx file will be created instead. Perhaps it is called .appxupload. Those packages reside in the subfolder AppPackages inside your project.
So if you take that file you will be fine. The store accepts those as well. The App will only support WP8.1 however.
If you need help in creating the .appx packages using Visual Studio 2013 you can refer to this article: http://msdn.microsoft.com/en-us/library/hh975357.aspx
I have developed a desktop application (in VS 2010 with SQL Server Compact Edition 3.5) in c# which uses NITGEN's SDK for fingerprint scanning and its prerequisit dll file.
I created a new Data source, i.e. my created .sdf file, (Microsoft SQL Server Compact 3.5) while adding a new connection.
I dont see this .sdf file in "Application Files" Window, from "publish" tab of my Project's properties window.
I want to add this DB file to be deployed with my application along with the NITGEN's SDK and other dll file.
Also, How can I make my application download the prerequisites from my application's installer folder itself?
Any suggestion would be of great help! Thanks in advance.
You may create a deployment project from within the New Project option of the File menu.
Here's how: Walkthrough: Deploying a Windows-based Application
Plus, you ought to include your SDF Compact Database file into your project, then compile/build it. You will get your SDF file output into your bin directory or wherever your output directory is located.
You may also want to read on ClickOnce: ClickOnce Deployment for Windows Forms
After you're through with these, you shall be able to properly deploy your app.
Hope this helps!
If you right click on the .sdf file in the Solution Explorer, it should be set to 'Content' and 'Copy if newer' (or 'Copy always').
As Will outlined, the best is to use ClickOnce... It will allow you to download the pre-requirements and add all the resources (DB, ...) to your application.
Now I have to deploy a C# application but I still failed because of 2 reasons:
I can't set images icon for application.
My application needs to read and write to a config.txt files, but after installed, my application failed to run because the application directory unwriteable,
I have found some tutorial in deploying application in NET project deployment but its video quite simple: http://www.youtube.com/watch?v=No1paeGvBtw
I'll find solutions. Hope to know your advise about this. Thank you
can I develop a c# application which uses Microsoft.Office.Interop.MSProject to create msProject files and then deploy that application on PCs which doesn't have microsoft project installed on them ?
if yes please explain how .
No, you can't automate the application unless it has been installed on the machine.
Edit: However, there is a open source project to manipulate project files and I don't think that needs to have MS Project installed so might be worth looking at that here: MPXJ