分析器错误在Web应用程序部署后 [英] Parser Error in Web Application after deploying

查看:206
本文介绍了分析器错误在Web应用程序部署后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到解析错误上传我的Web应用程序到我的服务器后。我有一个ASP.NET网站,但我迁移我的文件到一个Web应用程序项目。现在,当我完成了文件移动到新的项目,一切工作都在本地的权利,但不能在远程服务器上。

I get parse error after uploading my Web Application to my server. I had an ASP.NET Web Site, but I migrated my files into a Web Application Project. Now, after I completed moving the files to the new project, everything works all right locally, but not at the remote server.

现在afther我把它上传到服务器上我得到这个错误:
 

now afther i upload it to the server i get this error:

修改--------
这个问题只是保持回来甚至afther我试图在文件的.cs放命名空间
并重新发布该网站。
甚至afther我发布网站的所有codeBhind文件desapper所以我通过复制过去的添加它们自己。

EDIT-------- this problem just keeping coming back even afther i tried put namespaces on of the .cs files and republish the site. even afther i publish the site all the CodeBhind files desapper so i add them myself via copy-past.

这里怎么在Solution Explorer的外观和我的aspx 1。文件mybee你会看到的财产以后拨错我所做的:

here how the solution explorer look and 1 of my aspx. files mybee you will see somthing worng i did:


这里是我的配置文件code:

here is my config file code:

<?xml version="1.0"?>
 <configuration>
   <system.web>
    <compilation debug="true" targetFramework="4.0">
   </compilation>
  </system.web>
 </configuration>

修改-----------------------------------------
  我可以看到该网站现已开通,有什么我需要做的就是给所有的文件相同的命名空间,而不是使用了侧夹(巫婆我每次使用),我只是删除所有文件/在根目录文件夹谢谢大家!

EDIT----------------------------------------- i can see the site now online, what i needed to do is give all the files the same namespace, and not use a out side folder (witch i used every time) i just drop all the files/folders in the webroot thank you all!.

推荐答案

您可能必须设置命名空间为您的整个项目。看看从斯科特谷的博客此演练。这是用于Visual Studio 2005,但它是pretty大同小异。

You probably have to set up namespaces for your entire project. Look at this walkthrough from Scott Gu's blog. It's for Visual Studio 2005, but it's pretty much the same.

这篇关于分析器错误在Web应用程序部署后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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