Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9090537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:23:39+00:00 2026-06-16T22:23:39+00:00

Having some trouble with my view in asp.net mvc. My using directive’s namespace is

  • 0

Having some trouble with my view in asp.net mvc. My using directive’s namespace is clashing with the namespace of the view, causing compile errors in my Razor generated class. I had the same issue with the @model directive, but using the global:: alias fixed it. For some reason, doing the same on my @using causes a “The type or namespace ‘global’ could not be found…” error. Here is what I have right now:

@using SampleSpace.System.Items

@model global::SampleSpace.System.Items.Thing

I want to use

@using global::SampleSpace.System.Items

@model global::SampleSpace.System.Items.Thing

But the aforementioned error keeps occurring. Is there any trick to using global in a using directive in a view, or is there a reason it isn’t allowed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:23:41+00:00Added an answer on June 16, 2026 at 10:23 pm

    Turns out the simplest way to overcome this is to adjust the Custom Tool Namespace under the files Properties. You can change this to whatever you’d like to avoid any conflicts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ASP.NET MVC (1.0), Spark View Engine (1.0) and SubSonic (3.0.0.3). I'm having
I am having trouble making my ASP.NET MVC 3 View bind data back to
Just started on ASP.NET MVC, and I'm having some trouble applying datannotations to a
I'm having trouble with ASP.NET MVC and passing data from View to Controller. I
I'm having some trouble with ASP.NET MVC Beta, and the idea of making routes,
So I am having some trouble accessing my model errors within my Razor view.
I'm currently working with EF4 and asp.net mvc 3 and I'm certainly having some
I'm having some trouble updating records with the Codeigniter framework. I'm using the MVC
I am having trouble fixing a bug in an existing ASP.NET MVC web site.
I'm building my first ASP.NET MVC application and I am having some troubles with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.