I am working on an asp.net project.There is a subdir called
OSearch,with a few aspx pages in it which as all other pages on the
website use some controls.These controls are stored in a another
subdir as .ascx files.I made OSearch application in IIS ,because i
want all the pages in it with authentiacation.now these pages couldnt
load the controls ,because they were in a different application.i made
a controls folder in OSearch and copy/pasted all the needed controls
there.changed what the namespace in the ascx.cs and inherits=... in
the html part.now when i run it a Could not load type error appears
pointing at the page directive of a page,which was o.k. before
copy/pasting the controls.any idea what went wrong?
scheme of the project:
project
I
I
____controls directory
I
I
I
____OSearch directory = application in IIS
I
I
_____controls directory content = project.controls
copy/paste
I
thanks in advance 4 4034
Hi Bogosian,
This error is likely caused by the type not being compiled into your
assembly. After you copied over the files for your user controls, did you
recompile the project?
Jim Cheshire, MCSE, MCSD [MSFT]
Microsoft Product Support Services
ASP.NET Developer Support
This post is provided "as-is" and confers no rights.
-------------------- From: bo****@mailcity.com (Bogosian) Newsgroups: microsoft.public.dotnet.framework.aspnet Subject: Could not load type after copy/paste .ascx files into a directory
set as application in IISDate: 30 Dec 2003 04:38:53 -0800 Organization: http://groups.google.com Lines: 28 Message-ID: <ba**************************@posting.google.com > NNTP-Posting-Host: 213.240.195.228 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1072787934 18871 127.0.0.1 (30 Dec 2003
12:38:54 GMT)X-Complaints-To: gr**********@google.com NNTP-Posting-Date: Tue, 30 Dec 2003 12:38:54 +0000 (UTC) Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!newsfeed00.sul.t-online.de!t-online.de!newsfeed.wirehub.nl!news.tele
.dk!news.tele.dk!small.news.tele.dk!news-out.visi.com!hermes.visi.com!newsfe
ed2.dallas1.level3.net!news.level3.com!postnews1.g oogle.com!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:198825 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
I am working on an asp.net project.There is a subdir called OSearch,with a few aspx pages in it which as all other pages on the website use some controls.These controls are stored in a another subdir as .ascx files.I made OSearch application in IIS ,because i want all the pages in it with authentiacation.now these pages couldnt load the controls ,because they were in a different application.i made a controls folder in OSearch and copy/pasted all the needed controls there.changed what the namespace in the ascx.cs and inherits=... in the html part.now when i run it a Could not load type error appears pointing at the page directive of a page,which was o.k. before copy/pasting the controls.any idea what went wrong?
scheme of the project: project I I ____controls directory I I I ____OSearch directory = application in IIS I I _____controls directory content = project.controls copy/paste I
thanks in advance
Happy new year and thanks for paying attention to my question,Jim.
Yes i did compile it and it didn,t work again.I searched in the
forums about my problem before posting and most usual explanation for
such an error was exactly this but its not in my case.Any other idea?
Bogosian,
It's hard to say without more information. Where did these controls come
from? Were they copied from a folder for a different application? Is it
possible you have a namespace problem?
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- From: bo****@mailcity.com (Bogosian) Newsgroups: microsoft.public.dotnet.framework.aspnet Subject: Re: Could not load type after copy/paste .ascx files into a
directory set as application in IISDate: 5 Jan 2004 00:32:00 -0800 Organization: http://groups.google.com Lines: 4 Message-ID: <ba**************************@posting.google.com > References: <ba**************************@posting.google.com >
<Qo*************@cpmsftngxa07.phx.gbl>NNTP-Posting-Host: 213.240.195.228 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1073291521 8484 127.0.0.1 (5 Jan 2004 08:32:01
GMT)X-Complaints-To: gr**********@google.com NNTP-Posting-Date: Mon, 5 Jan 2004 08:32:01 +0000 (UTC) Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!newsfeed00.su
l.t-online.de!t-online.de!npeer.de.kpn-eurorings.net!news.tele.dk!news.tele.
dk!small.news.tele.dk!news.maxwell.syr.edu!postnew s1.google.com!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:199657 X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Happy new year and thanks for paying attention to my question,Jim. Yes i did compile it and it didn,t work again.I searched in the forums about my problem before posting and most usual explanation for such an error was exactly this but its not in my case.Any other idea?
Jim,I solved the problem by removeing the folder from the solution and
creating a brand new project in the solution.I read yesterdey
somewhere that making a folder in a project a separate application is
not a good thing and decided to do make my folder a project.Now
evrething works fine.Thanks for paying attention to my newbie
questions. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rob Meade |
last post by:
Hi all,
I have just put together our organisations 'template' for our web
applications and have created 7 .ascx files which when dropped into my
template file work perfectly...however, I have a...
|
by: Wolfgang Kaml |
last post by:
I am not sure if this is more of an expert question, but I am sure that they
are out there.
I'd like to setup a general application or bin directory on my Win2003.Net
Server that will hold some...
|
by: darrel |
last post by:
What does that MEAN?
I'm working on a VS project with another person. We keep our DLLs and files
in sync with each other. Last week I hit a snag where i kept getting the
'could not load type'...
|
by: Holger (David) Wagner |
last post by:
Hi all,
I'd like to have several "skins" for an application that are
"structurally different" (i.e. controls at different locations, some
controls visible only in a particular "skin"). The...
|
by: Don Wash |
last post by:
Hi All!
I'm getting the following Error:
No DLLs has been compiled yet and nothing in the \bin directory. So it is
not the versioning problem or anything like that.
And here are the...
|
by: JD |
last post by:
Hello Everyone,
I am working on a asp.net application and I have encountered an error that
is confusing the heck out of me, this is the structure of the website
/root
/root/admin
If I hit...
|
by: Rob T |
last post by:
When I was using VS2003, I was able to compile my asp.net project locally on
my machine and copy it to the production server and it would run just fine.
I've now converted to VS2005. The project...
|
by: Rob Meade |
last post by:
Hi all,
I have an application which has been running successfully on our old Windows
2000 Server .Net 1.1.
We have on several occasions tried to rebuild our infrastructure, and even a...
|
by: Rotsey |
last post by:
Hi,
I have a Web app that dev in VS2003 using .net 1.1.
It runs fine.
I wanted create a copy of the site to dev with.
So I created a new web app then added items using Add Existing Item...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |