开发者

Updating a class in an ASP.NET website

开发者 https://www.devze.com 2022-12-21 16:43 出处:网络
I have a certain class in VB in my App_Code folder, I can\'t deploy it directly to the website because I have no permission to the FTP, and I was asked to change a certain VB.net class and s开发者_如何

I have a certain class in VB in my App_Code folder, I can't deploy it directly to the website because I have no permission to the FTP, and I was asked to change a certain VB.net class and s开发者_如何转开发end it so someone would replace it in the FTP folder.

What happens is: there is no App_Code folder in the FTP folder. and the class generates NO DLL to be sent and replace it in the bin folder (which exists).

Aditionally: The website deploys and runs normally in the localhost (and i can see it in the browser), but there is no data from the website in the c:\inetpub\wwwroot. nor anywhere else, where are de website files ?

Which file, or how could I send this class to be replaced in the running website?


You are going to be in trouble if you don't deploy this correctly.

First question: Is this a Web Application Project? I don't see how it could be if you don't have a DLL.

Therefore, we'll assume it's a Web Site project. In that case, you should just drop the new code-behind file (or the aspx if it's inline) over the existing one. (I shouldn't have to tell you to make a backup first)

If you drop a code file in App_Code and it duplicates a class already built in another place, you're in for trouble. Do not do this.


Ask someone to create an App_Code folder using FTP.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号