Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i get compile error while hosting my website.
Is it because of a missing DLL reference? I have no idea as to which DLL.. kindly help me out. Thanks in advance !
Posted
Updated 19-Mar-15 8:52am
v2

1 solution

I found the solution finally....

Well First let me explain what really my problem was:
I developed a website application in .net framework 4.5 and hosted on Godaddy server.

My website application was working fine in local machine but on hosting it gave me 'Type or namespace could not be found' error.

Analysis: It had nothing to do with assembly reference. Problem was the wrong approach of hosting the website!

This website was a temporary one and i had to host it into the primary domain as a sample website.
What i did was, i created a folder inside my root directory of my hosting server and uploaded my sample website contents into that folder. And i tried to access that sample website using URL - http//mycompanyname.net/samplewebsite - which gave me the above mentioned error (as a newbie i wasn't aware of the right approach of getting it done. For experienced developers this will be something to laugh on i guess :D)

Solution: If you intend to host a sample website inside your primary domain..
1. create a subdomain.
2. Host your contents into the folder which was created with same name as of subdomain.

Ex: Suppose my root domain is mycompanyname.net
i created a subdomain with the name samplewebsite
uploaded my contents into the directory with the name 'samplewebsite' under the root directory in my hosting account in Godaddy
Finally my sample website was available and running in the URL - http://mycompanyname.net/samplewebsite

Inorder to create a subdomain in Godaddy refer this link https://support.godaddy.com/help/article/2290/how-do-i-create-a-subdomain-in-simple-control-panel[^]

Hope this saves a newbies time, who ends up here facing the same issue. Have a great day !
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900