Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2015, 04:33 AM
Registered User
 
Join Date: May 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error when I am hosting my ASP.NET sites

My ASP.NET site coded in C# is running fine on my local system but when I uploaded the files on the httpdocs folder through plesk control panel. I have a shared accounts at http://hostforlife.eu and I got the following error:

Server Error in '/' Application.
________________________________________
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'mydomain' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 1: <%@ Application Language="C#" %>
Line 2: <%@ Import Namespace="mydomain" %>
Line 3: <%@ Import Namespace="System.Web.Optimization" %>
Line 4: <%@ Import Namespace="System.Web.Routing" %>

Source File: g:\PleskVhosts\mydomain.com\httpdocs\mydomain\Glob al.asax Line: 2

Show Detailed Compiler Output:


C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc .exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core .dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System .Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll " /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856a d364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Micr osoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Micros oft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\Sys tem.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System .EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a \System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\m scorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\S ystem.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35 \System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.D rawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\Sys tem.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35 \System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\ System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Activities\v4.0_4.0.0.0__31bf3856ad364e35\Syste m.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.d ll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856a d364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Runtime.Serialization\v4.0_4.0.0.0__b77a5c56193 4e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System .Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.d ll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\Sy stem.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c5619 34e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856a d364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System. Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\Sy stem.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31 bf3856ad364e35\System.ComponentModel.DataAnnotatio ns.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Syst em.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856a d364e35\System.ServiceModel.Activities.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319 \Temporary ASP.NET Files\root\ba70df64\8ad7fdd9\App_global.asax.8gpjf mvi.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Tem porary ASP.NET Files\root\ba70df64\8ad7fdd9\App_global.asax.8gpjf mvi.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Tem porary ASP.NET Files\root\ba70df64\8ad7fdd9\App_global.asax.8gpjf mvi.1.cs"


Microsoft (R) Visual C# Compiler version 4.0.30319.17929

for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.

g:\PleskVhosts\mydomain.com\httpdocs\mydomain\Glob al.asax(2,11): error CS0246: The type or namespace name 'mydomain' could not be found (are you missing a using directive or an assembly reference?)
g:\PleskVhosts\mydomain.com\httpdocs\mydomain\Glob al.asax(3,22): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
g:\PleskVhosts\mydomain.com\httpdocs\mydomain\Web. config(24,21): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)


________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056
 
Old May 11th, 2015, 08:41 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Is MyDomain just a folder or marked as an application in Plesk? Try marking it as an app, or move your site into httpdocs directly.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net hosting error compad ASP.NET 2.0 Professional 0 September 16th, 2008 03:25 AM
Hosting Asp.net 3.5 sites newbreed65 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 August 21st, 2008 11:17 PM
WEB HOSTING SITES? hunzian78@yahoo.com ASP.NET 1.0 and 1.1 Professional 0 June 21st, 2006 06:13 AM
Switching between ASP.Net and ASP sites MikeSchnell ASP.NET 1.0 and 1.1 Basics 2 April 3rd, 2004 11:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.