-
Jul 30th, 2020, 08:18 PM
#1
[RESOLVED] Deploy Asp.Net webforms app.
I've just finished recreating a GUI in webforms (VS2008). I've managed to get it working with the codebehind class, a global module, and a few of the slightly modified core classes from my desktop app.
I've built the project and it works ok in debug mode, but i can't successfully deploy it. These are the classes i used...
I've tried deploying with the built .dll and the .aspx files, which doesn't work. My web hosting provide a web.config file behind the scenes.
I have another 3.5 framework webforms app. that runs fine on my hosting, but that is a much simpler app, consisting of just the .aspx, the codebehind, and the compiled .dll...
What files do i need to deploy?
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 30th, 2020, 08:23 PM
#2
Re: Deploy Asp.Net webforms app.
I haven't used Web Forms for a long time so I don't know all the ins and outs but can't you just right-click on the project and select Publish?
-
Jul 30th, 2020, 08:27 PM
#3
Re: Deploy Asp.Net webforms app.
Do you have access to IIS on your hosting machine? This may be outdated advice, but I know that back in previous versions of Windows Server (2003, 2008, etc.) if you "deploy" an ASP.NET project that contains dependencies to the server by simply copying all appropriate files to the server, the folder that the files get placed in to needed to be configured as an Application within IIS in order for all dependent .dll files to be loaded, etc.
I haven't touched anything relating to that kind of stuff on whatever the most recent Windows Server version is, so not sure if that process still is required.
-
Jul 30th, 2020, 08:37 PM
#4
Re: Deploy Asp.Net webforms app.
This is what I do when I publish my sample site to Someone.
1. Right Click Project and Publish to a folder in Release Mode.
2. Zip the content of the Publish folder.
3. Upload the zip file to Deploy location.
4. Unzip the files
5. Access the Web.
Where do you deploy the files(Hosting Provider)
Please mark you thread resolved using the Thread Tools as shown
-
Jul 30th, 2020, 08:40 PM
#5
Re: Deploy Asp.Net webforms app.
As I said, I have a simpler 3.5 framework web forms app. that I’ve had running on the same site for a few years. I remember from the time I deployed that app. that I needed to talk to my web hosting support people who helped me set it up. This time they’ve said they don’t see any problems. I’ll try the publish command...
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 30th, 2020, 09:16 PM
#6
Re: Deploy Asp.Net webforms app.
Sure. If you are facing the issue again, Share the error message.
Last edited by danasegarane; Jul 30th, 2020 at 09:22 PM.
Reason: changed content
Please mark you thread resolved using the Thread Tools as shown
-
Jul 30th, 2020, 09:40 PM
#7
Re: Deploy Asp.Net webforms app.
Ok. Here's the error page...
Attachment 178143
Here's the full size page...
http://www.scproject.biz/error_form.png
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 30th, 2020, 09:48 PM
#8
Re: Deploy Asp.Net webforms app.
That's the error if i upload web.config. Without the web.config file...
Attachment 178144
Here's the full size page...
http://www.scproject.biz/error_form2.png
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 31st, 2020, 12:44 AM
#9
Re: Deploy Asp.Net webforms app.
This is not giving full details of the error. Please modify the config file and find this tag
Code:
<configuration>
<system.web>
<customErrors mode="Off>
</system.web>
</configuration>
This will display full details of the error message.
Please mark you thread resolved using the Thread Tools as shown
-
Jul 31st, 2020, 01:03 AM
#10
Re: Deploy Asp.Net webforms app.
@danasegarane
Here's the full error now...
http://www.scproject.biz/error_form.png
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 31st, 2020, 01:23 AM
#11
Re: Deploy Asp.Net webforms app.
From the Error, I can see that the IIS folder is not setup correctly. The Server is not able to recognize the Asp.net Application. Also I see that the Version of .Net framework is configured as 4.0.
Either change the version of IIS in root directory of the application or in the Application Pool
Also do I clean and Rebuild , then deploy the project.
This is clearly a version mismatch error
Last edited by danasegarane; Jul 31st, 2020 at 01:27 AM.
Reason: Updated details
Please mark you thread resolved using the Thread Tools as shown
-
Jul 31st, 2020, 02:41 AM
#12
Re: Deploy Asp.Net webforms app.
Originally Posted by danasegarane
From the Error, I can see that the IIS folder is not setup correctly. The Server is not able to recognize the Asp.net Application. Also I see that the Version of .Net framework is configured as 4.0.
Either change the version of IIS in root directory of the application or in the Application Pool
Also do I clean and Rebuild , then deploy the project.
This is clearly a version mismatch error
Ok thanks for the explanation. I'll call my web hosting tech support later and sort this problem out...
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|