I'm currently starting my first asp.net 2.0 app, and doing so on my
current webhotel proved to be somewhat of a challenge.
First I thought I had a problem with references, since it gave an error
when I added LuaInterface.dl l and tried using it:
"CS0246: The type or namespace name 'LuaInterface' could not be found
(are you missing a using directive or an assembly reference?)"
I then proceeded to create an App_Code folder, make a custom class
(Class1) and use that in on my Default.aspx page (code-behind)... Same
result:
"CS0246: The type or namespace name 'Class1' could not be found (are
you missing a using directive or an assembly reference?)"
....
Now all these things work fine if I run it locally on my own computer.
Furthermore, I also noticed I had to do quite a few changes to the
standard provided web.config file (created when you run the first
time). If I create a standard WebSite project (HTTP) and just try to
run it out-of-the-box (f5), it gives the following error:
"Unable to start debugging on the web server. Logon failure: unknown
user name or bad password. See help for information."
However, I was never asked about login credentials when trying to run -
but the user/password for logging on the server were correct when I
created the project (and the files are actually on the server).
Alright. Running without debugging (ctrl-f5) works. However, I have to
set customErrors to "off" in the web.config file and comment the
<authenticati on mode="Windows"/out for the whole thing to work.
But then, if running in HTTP mode, it's unable to add references or add
classes to App_Code, since it can't create a _vti_cnf folder, which
apparently already exists on the server. Argh! This works in FTP mode
though, strangely.
If I create a project that works perfectly locally and copy it up to
the webserver, I get exactly the same problems.
Does anyone have any idea of what's wrong - might be a trivial problem?
Frustrated thanks,
- Rasmus. 2 1509
However, I was never asked about login credentials when trying to run -
but the user/password for logging on the server were correct when I
created the project (and the files are actually on the server).
Check the "Security" options in IIS. It seems there is some
misconfiguratio n.
But then, if running in HTTP mode, it's unable to add references or add
classes to App_Code, since it can't create a _vti_cnf folder, which
apparently already exists on the server. Argh! This works in FTP mode
though, strangely.
What do you mean by "running in HTTP mode"?
_vti_cnf folder... forget about frontpage extensions, you don't need
them with VS2005.
If I create a project that works perfectly locally and copy it up to
the webserver, I get exactly the same problems.
Regarding your assembly-reference problem, just ensure the following:
1. You have a bin folder (you can right click on the project and select "Add
an ASP.Net Folder" -"Bin").
2. The assembly exists in the bin folder.
3. There is a reference to the assembly in the <compilations ub-section in
<system.websect ion in web.config.
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.org www.edujini-labs.com http://eduzine.edujinionline.com
-----------------------------------------
Answers embedded.
Gaurav Vaish (MasterGaurav) skrev:
However, I was never asked about login credentials when trying to run -
but the user/password for logging on the server were correct when I
created the project (and the files are actually on the server).
Check the "Security" options in IIS. It seems there is some
misconfiguratio n.
My problem is that this not my webserver, I don't have access to IIS
settings, but I wanted to check if I was doing something wrong before
contacting the webhosting company.
But then, if running in HTTP mode, it's unable to add references or add
classes to App_Code, since it can't create a _vti_cnf folder, which
apparently already exists on the server. Argh! This works in FTP mode
though, strangely.
What do you mean by "running in HTTP mode"?
_vti_cnf folder... forget about frontpage extensions, you don't need
them with VS2005.
I mean when creating the project, selecting either HTTP, FTP og
FileSystem. I get different errors with FTP and HTTP modes connecting
to the project.
If I create a project that works perfectly locally and copy it up to
the webserver, I get exactly the same problems.
Regarding your assembly-reference problem, just ensure the following:
1. You have a bin folder (you can right click on the project and select "Add
an ASP.Net Folder" -"Bin").
2. The assembly exists in the bin folder.
3. There is a reference to the assembly in the <compilations ub-section in
<system.websect ion in web.config.
My local copy works fine without a reference in the web.config. But the
other two are fullfilled.
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.org www.edujini-labs.com http://eduzine.edujinionline.com
-----------------------------------------
Thanks Gaurav :-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Frunzke |
last post by:
Hello,
I'm developing a php extension as a communication layer for a
proprietary database.
Now, when I run two different versions of this extension on the same
webserver (Apache 3, PHP 4.3.3, extension loaded via dl() ), I will get
strange segmentation faults - that occur somewhere in PHP (not in the
extension itself).
|
by: Paul Drummond |
last post by:
Hi all,
I am developing software for Linux Redhat9 and I have noticed some very
strange behaviour when throwing exceptions within a shared library.
All our exceptions are derived from std::exception. We have a base
class which all processes derive from which is always instantiated in
main surrounded by a try/catch(std::exception) which catches all
exceptions that have not be handled at a higher level. The catch block
cleans up and...
|
by: mdurliSPAMFILTER |
last post by:
Hello,
I developed a win32 .exe CGI that connects to a clustered SQLServer to
report some data.
The software is written with Borland C++Builder.
This is the oledb string:
Name=Provider=SQLOLEDB;Password=xxx;Persist Security Info=True;User
ID=xxxx;Data Source=xxxxx;Initial Catalog=xxxxx;Network
Library=dbmssocn
It suddendly stopped working on my customer network, so I made some
|
by: Sebastian C. |
last post by:
Hello everybody
Since I upgraded my Office XP Professional to SP3 I got strange
behaviour.
Pieces of code which works for 3 years now are suddenly stop to work
properly.
I have Office XP Developer (SP3 for Office, SP1 for developer,
JET40SP8) on Windows XP Home Edition (SP1). The same behaviour occurs
on Windows 98 too.
|
by: Neil Kimber |
last post by:
Hi,
I'm using the Cache object to persist some values between pages. I'm
setting the expiration for 2 minutes. I'm actually storing Bitmap streams in
the cache. In this way, one page can draw an image and store it and another
page can be responsible for streaming it to the browser.
This approach works well in that the Bitmap is correctly stored, the
other page can read the data and stream it correctly. Once streamed I do not
want to...
| |
by: Sandro |
last post by:
hello all
i'm just wondering if somebody has experienced the usage of the "Webserver
Behaviour" which
enables client-side script to invoke remote methods exposed by Web Services.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/webservice_node_entry.asp
any tips, hints, etc?
|
by: flits |
last post by:
LS
I have set up my first Linux box. But I experience some strange POST
behaviour. Maybe this is a know bug or maybe I have done something
wrong with my setup. But I just can't seem to find any solution about
it on google.
I have the following two scripts:
1.php:
|
by: Dox33 |
last post by:
I ran into a very strange behaviour of raw_input().
I hope somebody can tell me how to fix this.
(Or is this a problem in the python source?)
I will explain the problem by using 3 examples. (Sorry, long email)
The first two examples are behaving normal, the thirth is
strange.......
I wrote the following flabbergasting code:
#-------------------------------------------------------------
|
by: Pilcrow |
last post by:
This behavior seems very strange to me, but I imagine that someone will
be able to 'explain' it in terms of the famous C standard.
-------------------- code -----------------------------------
#include <stdio.h>
int main (void)
{
char xx="abcd";
char * p1 = xx;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |