Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sanjeev Jha 5 posts 25 karma points
    Jan 08, 2012 @ 04:08
    Sanjeev Jha
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 08, 2012 @ 10:58
    Jan Skovgaard
    0

    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

  • Sanjeev Jha 5 posts 25 karma points
    Jan 08, 2012 @ 12:53
    Sanjeev Jha
    0

    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!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 08, 2012 @ 17:40
    Jan Skovgaard
    0

    Hi Sanjeev

    You're very welcome - I'm happy to hear that.

    Remember to mark the topic as being solved :)

    /Jan

  • mark 6 posts 26 karma points
    Jan 28, 2013 @ 14:09
    mark
    0

    Thanks Jan i have the same problem and i just paste the global to bin and it worked thanks again... woo hoo

  • Charles Afford 1163 posts 1709 karma points
    Jan 28, 2013 @ 14:34
    Charles Afford
    0

    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.

  • mark 6 posts 26 karma points
    Jan 30, 2013 @ 09:11
    mark
    0

    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. :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 31, 2013 @ 22:32
    Jan Skovgaard
    0

    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

  • mark 6 posts 26 karma points
    Feb 01, 2013 @ 00:57
    mark
    0

    version is umbraco v 4.11.3

     

    its still error thanks for the support.

    btw i used webmatrix 2


  • Charles Afford 1163 posts 1709 karma points
    Feb 01, 2013 @ 08:50
    Charles Afford
    0

    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

  • Charles Afford 1163 posts 1709 karma points
    Feb 01, 2013 @ 08:51
    Charles Afford
    0

    Why are you trying to inherit Umbraco.Web.umbracoApplication?  

Please Sign in or register to post replies

Write your reply to:

Draft