Umbraco works fine on IIS, get error when pointing to Visual Studio 2010
Details:
Umbraco Version: 4.7.1
ASP.NET Version: 4.0
Windows 7 Ultimate with IIS 7.5
Visual Studio 2010
Hi, I have installed Umbraco locally and it works fine with IIS. But I want to work on visual studio. When I copy the files over to Visual Studio, and point the IIS site to my folder where visual studio project is at - it keeps giving me the following error: When I point the IIS site back to folder where the umbraco was installed - it works fine again, but I really need to set it up with VS 2010 - please help me, many thanks is advance!
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of
a resource required to service this request. Please review the
following specific parse error details and modify your source file
appropriately.
Parser Error Message: Could not load type 'Umbraco.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Umbraco.Global" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
You should keep the site in IIS as it is and then instead create a new project in Visual Studio, which xcopies the files to your umbraco websites when you build the project.
Thank you Jan, I now have fixed the issue - In visual studio - I also had to move the Glsobal.asax and Global.asax.cs inside the bin folder and everything is working great now. Once again thanks for your reply and help!
Hello, just wondering if i should be doing this as opposed to opening the folder in inetpub as a website or simply createing a blank asp.net app and then pointing the build at the bin folder in the inetpub directory.
The easiest way to do this would just be to open the site as a website in visual studio. For DLL's that you would like to use with Umbraco create a class liabary and point the output directory of the build to intetpub/www/yourdir/bin
This is the way i am doing it at the moment :). Charlie
Umbraco works fine on IIS, get error when pointing to Visual Studio 2010
Details:
Umbraco Version: 4.7.1
ASP.NET Version: 4.0
Windows 7 Ultimate with IIS 7.5
Visual Studio 2010
Hi, I have installed Umbraco locally and it works fine with IIS. But I want to work on visual studio. When I copy the files over to Visual Studio, and point the IIS site to my folder where visual studio project is at - it keeps giving me the following error: When I point the IIS site back to folder where the umbraco was installed - it works fine again, but I really need to set it up with VS 2010 - please help me, many thanks is advance!
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Could not load type 'Umbraco.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Umbraco.Global" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Sanjeev
You should keep the site in IIS as it is and then instead create a new project in Visual Studio, which xcopies the files to your umbraco websites when you build the project.
Even though this article is from 2008 it has some good points, check it out: http://blog.leekelleher.com/2008/08/20/setting-up-visual-studio-to-work-with-umbraco/
Hope this helps.
/Jan
Thank you Jan, I now have fixed the issue - In visual studio - I also had to move the Glsobal.asax and Global.asax.cs inside the bin folder and everything is working great now. Once again thanks for your reply and help!
Hi Sanjeev
You're very welcome - I'm happy to hear that.
Remember to mark the topic as being solved :)
/Jan
Thanks Jan i have the same problem and i just paste the global to bin and it worked thanks again... woo hoo
Hello, just wondering if i should be doing this as opposed to opening the folder in inetpub as a website or simply createing a blank asp.net app and then pointing the build at the bin folder in the inetpub directory.
Charles.
hi jan i have the same problem im now using a webmatrix and it says the same as
Line1: <%@ApplicationCodebehind="Global.asax.cs"Inherits="Umbraco.Global"Language="C#"%>
When i tried to put the global to bin it still have an error page.
thanks in advence. :)
Hi Mark
What version of Umbraco are you using?
Since 4.10 (I think) the global.asax should be placed in the root of the folder containing your Umbraco installation - same level as the web.config.
Hope this helps.
/Jan
version is umbraco v 4.11.3
its still error thanks for the support.
btw i used webmatrix 2
The easiest way to do this would just be to open the site as a website in visual studio. For DLL's that you would like to use with Umbraco create a class liabary and point the output directory of the build to intetpub/www/yourdir/bin
This is the way i am doing it at the moment :). Charlie
Why are you trying to inherit Umbraco.Web.umbracoApplication?
is working on a reply...