在Visual Studio 2008中发布解决方案时出现问题 [英] Problem in publishing a solution in Visual Studio 2008

查看:75
本文介绍了在Visual Studio 2008中发布解决方案时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个项目的解决方案,我想发布此应用程序.发布成功,但是当我尝试安装时遇到问题.它说找不到我正在使用的txt文件.在我的应用程序中,我也使用了另外2个txt文件,对于这2个txt文件,它没有显示问题.错误如下所示.有谁知道可能是什么问题?提前谢谢!

有关调用即时(JIT)调试而不是此对话框的详细信息,请参见此消息的末尾.

**************异常文本**************

I have a solution with 2 projects and I want to publish this application. Publish is successful, but when I try to install I get a problem. It says that it can''t find a txt file I''m using. In my application, I use 2 other txt files, as well, and it doesn''t show a problem regarding those 2 txt files. The error is shown below. Does anyone know what the problem might be? Thank you in advance!

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.IO.FileNotFoundException: Could not find file ''C:\Users\Δημήτρης\AppData\Local\Apps\2.0\16302ORR.AW8\MB0AX4OD.0OL\auth..tion_4deb94c49aed6906_0001.0000_30081526368df596\checkStatus.txt''.
File name: ''C:\Users\Δημήτρης\AppData\Local\Apps\2.0\16302ORR.AW8\MB0AX4OD.0OL\auth..tion_4deb94c49aed6906_0001.0000_30081526368df596\checkStatus.txt''
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
   at AuthenticationApplication.Form1.Form1_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)




**************装配体**************




************** Loaded Assemblies **************

mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5444 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
AuthenticationApplication
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Δημήτρης/AppData/Local/Apps/2.0/16302ORR.AW8/MB0AX4OD.0OL/auth..tion_4deb94c49aed6906_0001.0000_30081526368df596/AuthenticationApplication.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

推荐答案

好吧,我假设您正在使用Visual Studio设置应用程序.因此,这是如何在设置程序包中包括其他文件和文件夹的步骤.

如何使用Visual Studio .NET创建安装程序包 [
Well, I am assuming that you are using Visual Studio Set Up application. So here are the steps how to include additional files and folder in you set up package.

How to create a Setup package by using Visual Studio .NET[^]


In addition to this, you have to make sure that how your application reads the file. When you implement your application, is it supposed to read from common files folder, shared folder , current user folder... Even operating system has impact for such case.

Good luck.


这篇关于在Visual Studio 2008中发布解决方案时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆