Last post Mar 03, 2012 07:36 AM by kattyjems
Nov 25, 2011 06:28 AM|Ollza|LINK
I have developed a web application with some class libaries. It works fine when i run it in my local computer but when i publish it on the server i get an Parser Error saying Could not load type "Myapp._Default". it is a windows 2008 server and it has recently
been uppgraded to .net 3,5. It is a web application in the IIS. What can be the problem?
Nov 25, 2011 10:31 AM|robwscott|LINK
look in your event viewer on the server. i'm guessing that since you upgraded your .NET framework, the event viewer will tell you that you can't run multiple versions of .net framework at the same time. i just answered a question regarding IIS and .net framework,
hopefully it'll help you. i know that you dont need to set up a new app pool in IIS, but maybe your configurations are incorrect.
Nov 28, 2011 10:57 PM|necro_mancer|LINK
the error message that you experience was caused by the fact that you did not properly "publish" your website to the server. I completely understand that your site works fine on your local PC, but when you publish it to the server, you have to use the "Publish"
option only. Please follow the guidelines below:
1. Please open your project via Visual Studio Tools
2. On the right-hand side of your VS tool, you will see a Solution Explorer window. Right click your project and select "Publish"
3. Please publish your site to a folder on your PC. Let us called it C:\Project
4. Next, you just have to upload whatever files you see on your C:\Project folder to the server and everything will work fine. If you notice carefully, you will not find any .cs or .vb files on this C:\Project folder.
If you need further assistance, you can contact
asphostcentral.com as this host fully supports any asp.net frameworks. Please mark this response as an "answer" if it helps you. Thanks heaps!
Nov 29, 2011 02:55 AM|Ollza|LINK
Thats what i have done. I published it on my local computer and then i moved the files to the correct folder. I have tried to publish it on another server where a ihave published before and there it works. So i guess that the problem is on the server.
Nov 29, 2011 04:28 AM|Ollza|LINK
I question. I develop in VS 2008 and tha is the .net 3.5. I have tried to publish this web app on another server just to se if it works and it does. But what i dont understand is that on the server where it works it runs with the default app pool in the
IIS and the default app pool has .net 2.0? How does that work if i have .net 3.5 in my web application made in vs 2008?
Nov 29, 2011 09:08 AM|robwscott|LINK
for the application in the website in IIS, right click the application and choose properties, you need to change the "Application pool" to "3.5", and in the tab that says "ASP.NET" you need to change the framework to 3.5. look at the link i posted above
Nov 30, 2011 10:50 PM|necro_mancer|LINK
I just want to confirm with you that you cannot select ASP.NET 3.5 on the application pool. ASP.NET 3.5 is a superset of ASP.NET2.0 and this is why you never ever see a selection of ASP.NET 3.5 on the application pool.
What you need to make sure here is that you need to download ASP.NET 3.5 and have it installed properly on your system. Next, go to your IIS application pool and change your ASP.NET version to ASP.NET2.0. Your site should work directly.
If you still have issues, please copy the error message here and I will check it out
Dec 18, 2011 01:30 AM|RachellGrace|LINK
Thank you for your good idea.
Mar 03, 2012 07:36 AM|kattyjems|LINK
Do you have changed application pool to 3.5 in IIS Manager?