Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to ASP.NET web application deployment so this might seem like a noob question.

I have created an application using ASP.NET 4.5. Previously when I performed final testing, I used to copy my source code to IIS 8 (without publishing) and then test the app. All of the code worked perfectly.

Now I have started publishing my ASP.NET web app properly to IIS. The problem is, some of my code is now not working. For example, an upload control is not being able to upload file. The same code works perfectly in the unpublished version.

Since my app is published, I cannot debug the problem.
Posted
Comments
OriginalGriff 16-Jun-15 1:40am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
So we need to know (for example) what code you are using for your upload, and what it does that you didn't expect, or doesn't do that you did - without that, we are just guessing.
Use the "Improve question" widget to edit your question and provide better information.
Sinisa Hajnal 16-Jun-15 4:12am    
First thing, check that all your files really are published (including binaries and any dependencies). Other then this generic advice, I cannot help you without much more detail.
F-ES Sitecore 16-Jun-15 4:14am    
If a file isn't uploading my first place to look would be the permissions on the folder you're saving to and the path as well. Make sure the path is valid (ie you're using Server.MapPath, not hard-coding it) and that the account your code is running under has write permissions to that folder (unless the folder is app_data, by default you won't have write access).

Beyond that, as already said, you really need to post more info such as any error messages you are getting, relevant snippets of code etc.
virusstorm 16-Jun-15 17:16pm    
It is a huge miss conception that you cannot debug a published web application. In reality, you can. Take a look at this:
https://msdn.microsoft.com/en-us/library/233w9kd4.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900