如何在asp.net安装项目中查找路径 [英] how to find path in asp.net setup project

查看:68
本文介绍了如何在asp.net安装项目中查找路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在asp.net中创建Windows应用程序.
我正在其中使用Microsoft报告报告
将报表绑定到报表查看器.这是我的代码

Hello All

I am creating a Windows application in asp.net.
I am using Microsoft reporting reports in it
to bind reports to report viewer. This is my code

LocalReport lr = reportViewer1.LocalReport;
lr.ReportPath = AppDomain.CurrentDomain.BaseDirectory +"..\\..\\"+ _path;



它工作正常,但是当我创建应用程序的安装程序时,它将显示以下消息:



It is working fine but when I create setup of my application then it is showing this message:

An error occured during local report processing.
The report definition for report ''C:\uusers\kirti\Desktop\..\..\Reports\rptHotelSale.rdlc'' has not been specified
Could not find the part of the path  ''C:\Users\Reports\rptHotelSale.rdlc'' 



谢谢



Thanks

推荐答案

OP:我正在asp.net中创建一个窗口应用程序

你不能.

坦白地说,在此行之后,我没有阅读其余的问题.在开发应用程序之前,您应该认真考虑基础知识.
您是否真的知道整个差异 [
OP: i am creating a window application in asp.net

You can''t.

Frankly speaking, I did not read the rest of the question after this line. You should seriously consider going through the basics before putting yourself for developing an applications.
Do you really know that there is a whole difference [^]between windows and ASP.Net applications?


这篇关于如何在asp.net安装项目中查找路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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