473,379 Members | 1,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Strange webserver behaviour

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.dll 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
<authentication 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.

Jan 22 '07 #1
2 1492
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
misconfiguration.
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 <compilationsub-section in
<system.websection in web.config.

--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.org
www.edujini-labs.com
http://eduzine.edujinionline.com
-----------------------------------------
Jan 23 '07 #2
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
misconfiguration.


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 <compilationsub-section in
<system.websection 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 :-)

Jan 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
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,...
2
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...
1
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:...
3
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...
0
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...
1
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. ...
2
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...
8
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....
20
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 -----------------------------------...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.