We have an CMS project, we will publish the project for deploying to PROD server,
However we found that if we changed aspx file content in published project, e.g. Modify label control text,
an error will error.
Is there are any contraint for pubsliehd .aspx and .dll?
Can we just just modify aspx file without re-publish and deploy it again?
Any help is appreciated.
Related
I got an asp.net web forms project developed from someone. When I check the httpdocs folder on server, I cannot find the aspx.cs files for the corresponding .aspx files. When I check the CodeBehind attribute, it shows like "[FILENAME].aspx.cs".
I also decompiled the dll of this project but even there the aspx.cs files were not present.
Please tell me where can I find the event handling files of this project.
I have a problem with a web form project.
The project is set to use the local IIS web server to run the application.
In the form, I have a file upload control defined in the aspx markup page.
However, when I try to upload a file, the program always thinks that the file is located in the IIS Express folder, whatever the location of the file actually is.
I have tried to change the settings to make it use the visual studio development server but I hit the same issue. The program then always thought that the file to upload was in the development server folder.
How can I fix that?
Thank you.
I have created a website and deploy it on the IIS server. I want to change some code on the
the default.aspx. After I change the code on my own computer. I copy the default.aspx and default.aspx.cs file to the server. But seems don't work on the server. But the website work perfectly on my own computer. I would like to ask do I need to copy files other than the default.aspx and default.aspx.cs? Thank you
Depending on the project type, you need to deploy the assembly into which the changes were compiled. If this is a web application, the web project should have a corresponding DLL.
Is it a web site or a web application project in VS? It sounds from your brief description that it maybe a web application (code behind file) so once C# code has changed then you will need to compile it put the default.aspx and the newly compiled dll up on your hosting.
HTH
You also need to compile your solution and put latest dll of the project containing Default.aspx file, in server's bin directory, since you have made changes to code behind file Default.aspx.cs.
upload dll if you change code behind and aspx if you change design
load your page on browser,if nothing has change press "ctrl + f5" to clear cache and refresh your page
I just publish an asp.net website then i made changes in its source code i added two .aspx files and then publish it again
The question is what I need to make this changes take effect on server. Do I have to replace all files or i can just add specific file?
I'm trying to add two aspx pages to the site that already exist on the server
and want to know which file i have to add beside the ordinary aspx file to take effect on site
Thanks
This depends on how you are deploying your code. Are you using the precompile option before publishing or just publishing with pre-compilation.
If you are just publishing then you can just replace the .aspx and aspx.cs files and the site will dynamically recompile.
If you have pre-compiled it then you are probably only left with .dll files and .aspx files so you would have to deploy a new copy of the .dll file for your site and the .aspx files. MSDeploy replaces the entire site by default.
If you have only changed the aspx file and not the code behind it is enough to publish those two files and on the server. If you have changed the code behind as well you also need to publish the dll files, in that case it's probably easier to replace all of the files.
I am able to execute my application fine using the Visual Studio IDE but when I create a release package and put it on the web server it can’t seem to find the code behind. However, if I copy the bin folder (which has the dll files) from the root directory and put it into the “root/reports” directory, everything works fine. The reports directory has all the .aspx web page files. What is causing this problem and what can I do to properly fix this problem?
Since you have published your website, that means your code files were compiled into a DLL. To work properly you have to put your DLL's into the bin folder on your host server.
For Details, Check this link:
An Overview of ASP.NET Code Generation and Compilation