求教!.cs编译dll出错!!!

问题描述

直接使用.cs好用,当将.cs编译dll出错.....C:>csc/t:library/out:cl.dll/R:dllsystem.dll/R:dllsystem.data.dll/R:dllsystem.web.dll/R:dllSystem.Drawing.dllcl.csMicrosoft(R)VisualC#2005Compilerversion8.00.50727.1433forMicrosoft(R)Windows(R)2005Frameworkversion2.0.50727Copyright(C)MicrosoftCorporation2001-2005.Allrightsreserved.cl.cs(34,6):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(36,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontextcl.cs(46,41):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(46,82):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(49,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontextcl.cs(54,1):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(55,18):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(55,59):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(58,4):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(58,64):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(173,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontextcl.cs(195,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontext说明.cs缺少uploadFile,lblErrInfo变量,但是在.aspx页面里我已定义并且好用,而在单独的.cs程序段里上下文联系不上,所以编译不成功,希望高人指点....急啊谢谢!

解决方案

解决方案二:
没人回答吗....顶!!1
解决方案三:
说明.cs缺少uploadFile,lblErrInfo变量,但是在.aspx页面里我已定义并且好用,编译的时候才不知道你的aspx呢你要定义在cs中啊,要不怎么编译呢在cs中定义接口,然后在页面使用分层开发啊,
解决方案四:
引用2楼virusplayer的回复:

说明.cs缺少uploadFile,lblErrInfo变量,但是在.aspx页面里我已定义并且好用,编译的时候才不知道你的aspx呢你要定义在cs中啊,要不怎么编译呢在cs中定义接口,然后在页面使用分层开发啊,

“但是在.aspx页面里我已定义并且好用!”编译可只编译.cs啊!
解决方案五:
怎么在cs中定义接口,能详细点吗,我的确是菜鸟...asp转型的,帮帮小弟吧.....谢谢!!
解决方案六:
我是菜鸟....希望得到一点点帮助
解决方案七:
up学习中
解决方案八:
ding....

时间: 2024-09-20 04:23:08

求教!.cs编译dll出错!!!的相关文章

含有Response.Cookies语句的.cs编译dll后,加载到页面出现错误,高人指点!

问题描述 cl.cs文件usingSystem;usingSystem.Net;usingSystem.Data;usingSystem.IO;usingSystem.Drawing;usingSystem.Drawing.Imaging;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls;usingSystem.Web.UI.WebControls;namespaceepttest{publicclassoutd

mfc 的出错-Debug Assertion failed! 编译提示出错

问题描述 Debug Assertion failed! 编译提示出错 当程序编译时的出错信息提示: Debug Assertion failed! Program: D:rgribintest.exe File:afxcoll.inl Line:376 在调试时的出错提示: First-chance exception in al.exe (MFC42D.DLL): 0xC0000005: Access Violation. First-chance exception in al.exe (

请教:关于从C#调用外部C++ DLL出错,二维指针参数不匹配

问题描述 请教:关于从C#调用外部C++ DLL出错,二维指针参数不匹配 我是新人,头一次发帖,如果这个问题太低级还请各位大神原谅! 我在写一段C#代码调用外部一个C++DLL,该DLL数据初始化部分接口是这样的: public unsafe void SetImage(ushort** slices, int xSize, int ySize, int zSize) 其中第2-4个参数分别是一个3维图像数据的长宽高,我们假定图像是512×512×400:而这个二维指针参数slices则是指向指

新手求助!树莓派内核编译时出错!求大神解答

问题描述 新手求助!树莓派内核编译时出错!求大神解答 树莓派编译时显示重复的case常量 找到相应代码有下面这样的说明,但是不知道该怎么改,有没有知道的大神,求教啊-- 解决方案 你的源码跟编译环境是否匹配

电脑开机soudmax.dll出错

  修改方法步骤 1.点击开始,打开运行窗口输入"regedit"回车,系统自动弹出注册表编辑器. 2.按照顺序依次打开HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun,在其中找到soundmax.dll相关的启动项,并删除. 3.点击开始,打开运行窗口输入"msconfig"回车,系统自动弹出系统配置程序. 4.在对话框上面选项卡中切换到"启动"

动态电用dll出错-动态调用Dll出错,服务模式

问题描述 动态调用Dll出错,服务模式 用MFC开发一个服务程序,服务程序在应用模式下,动态调用dll正常,然而变成服务模式,会导致服务停止.请问这是怎么回事,请大神指点. 解决方案 主要是你服务运行情况下,进程权限会变高,同时不能直接访问一些用户目录等.服务运行在SESSION0,这个可能会导致你的DLL处理有问题.你需要检查一下DLL的内部代码逻辑 解决方案二: http://www.cnblogs.com/duanshuiliu/archive/2012/07/05/2577402.htm

zlib-LAMP环境搭建 编译PHP出错

问题描述 LAMP环境搭建 编译PHP出错 编译命令:./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql 错误信息: configure: error: Try adding --with-zlib-dir= . Please check config.log for more informatio 添加--with-zlib-dir之后

visual studio-用VS2005新建的MFC智能设备应用程序空白项目,为什么编译会出错?请大神解答

问题描述 用VS2005新建的MFC智能设备应用程序空白项目,为什么编译会出错?请大神解答 1>------ 已启动生成: 项目: 0001, 配置: Debug HPC-3000 (ARMV4I) ------ 1>正在编译... 1>stdafx.cpp 1>C:Program Files (x86)Windows CE Toolswce600HPC-3000includeARMV4Imalloc.h(45) : error C2143: syntax error : miss

linux 并行-Linux下MPI+OpenMP程序编译运行出错

问题描述 Linux下MPI+OpenMP程序编译运行出错 如题,错误提示如下: [node65:03787] *** Process received signal *** [node65:03787] Signal: Segmentation fault (11) [node65:03787] Signal code: Address not mapped (1) [node65:03787] Failing at address: 0x44000098 [node65:03787] [ 0