为什么将 webform (asp.net-3.5) 从生产服务器复制到本地系统后显示为被排除?
我刚刚复制了一个使用 c# 在 asp.net 3.5 中开发的 Web 应用程序(Web 项目),现在工作正常,从实时服务器到我的本地主机。我的问题是,在实时服务器中可用的表单在从本地主机执行时不可用。然后我发现该表单被排除在项目之外,在解决方案资源管理器中查看。在项目中包含该表单并编译后,我遇到了错误,这些错误是
错误 1:frmUpdateNCR.aspx.cs 'EAudit.AUDIT_BAL.AuditRoleSubmit' 确实如此 不包含“Afpf_Editedby”的定义并且没有扩展方法 “Afpf_Editedby”接受类型的第一个参数 可以找到“EAudit.AUDIT_BAL.AuditRoleSubmit”(您是否缺少 使用指令还是程序集引用?)142 26 EAudit
错误 2:frmUpdateNCR.aspx.cs 'EAudit.AUDIT_BAL.AuditRoleSubmit' 确实如此 不包含“UpdateNCRAfterEditing”的定义并且没有扩展名 方法“UpdateNCRAfterEditing”接受类型的第一个参数 可以找到“EAudit.AUDIT_BAL.AuditRoleSubmit”(您是否缺少 使用指令还是程序集引用?)146 35 EAudit。
上传到生产服务器时,参数和函数已添加到类文件中,但在本地主机中的应用程序中不可用。
我确信我复制了正确的文件,但我不知道为什么会发生这种情况,有人能给我解决方案吗?抱歉,如果这个问题不在这里..
I have jsut copied one web apllication (web project) developed in asp.net 3.5 with c# and working fine now, from the live server to my local host. My question is The form which is avialble in live server is not avialble when executed from local host. then i found that form was excluded from project, viewed in solution explorer. i got erros after including that form in project and compiled, those errors are
Error 1 :frmUpdateNCR.aspx.cs 'EAudit.AUDIT_BAL.AuditRoleSubmit' does
not contain a definition for 'Afpf_Editedby' and no extension method
'Afpf_Editedby' accepting a first argument of type
'EAudit.AUDIT_BAL.AuditRoleSubmit' could be found (are you missing a
using directive or an assembly reference?) 142 26 EAuditError 2:frmUpdateNCR.aspx.cs 'EAudit.AUDIT_BAL.AuditRoleSubmit' does
not contain a definition for 'UpdateNCRAfterEditing' and no extension
method 'UpdateNCRAfterEditing' accepting a first argument of type
'EAudit.AUDIT_BAL.AuditRoleSubmit' could be found (are you missing a
using directive or an assembly reference?) 146 35 EAudit.
The parameter and function are already added in class file when uploaded into production server but same are not available in the applicaiton which is in local host.
I am sure i copied correct file but i dont know why this happened, could any one give me solution. sorry if this question is not to be here..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您从生产服务器复制它,它可能已被编译。如果找不到
[webform].aspx.cs
或[webform].aspx.designer.cs
文件,则代码已编译为 DLL BIN 文件夹,您将无法将其包含在您的项目中。如果有代码文件,请转到解决方案资源管理器并单击顶部的“显示所有文件”图标。找到 Web 表单(如果已排除,则应显示为灰色),右键单击它,然后单击“包含在项目中”,您应该已准备就绪。
If you're copying it down from the production server it's probably been compiled. If you can't find the
[webform].aspx.cs
or[webform].aspx.designer.cs
file, then the code has been compiled into a DLL in the BIN folder, and you won't be able to include it in your project.If there is a code file, then go to the solution explorer and click the "Show All Files" icon at the top. Find the web form (should be greyed out if it's excluded), right click on it and then click "Include In Project", and you should be all set.