AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Syed Rizwan Muhammad Rizvi
Expertise
I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.

Experience
Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > vs 2005 appln on web server

Topic: VB.NET



Expert: Syed Rizwan Muhammad Rizvi
Date: 4/28/2007
Subject: vs 2005 appln on web server

Question
QUESTION: I have developed web application using vs 2005 - which works well on my PC as well as on IIS server on my PC. After publishing the same on web server I am gettint this error
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.
(E:\kunden\homepages\18\d120818312\website1\web.config
line 52)
Line in web.config is simply
<authentication mode="Windows"/>
which I changed to Forms, None also but same error reppeats
Do I make some changes in web.config file or some changes web master has to make at their end?
Regards
Vinod

ANSWER: goto IIS right click on the default website goto tasks and click on new virtual director. set the path to the folder where you have published your web service physically and a proper alias (same name as folder recommended).

---------- FOLLOW-UP ----------

QUESTION: Thanks for the solution - But I am publishing this via ftp to a web server - whether web master will have to do this?
ANSWER: that as well or if your host provides you a control panel for management then you can do it from there as well.

---------- FOLLOW-UP ----------

QUESTION: Thanks - it worked well, except for application where I am using modules which copy contents to Excel sheets -
With my file system, and IIS on local machine there are no problems. Only when it is run from web server modules with excel give error.
Do I need to make some changes - some where else.
ANSWER: First of All MS Excel runtime should be installed on the server.
Secondly the user you are running the application under must have the rights to execute COM objects.

Regards,
Rizwan

---------- FOLLOW-UP ----------

QUESTION: Thanks -
Excel runtime installation -
Is this webmaster's domain? -
or are there some control panels where developers can make those changes?
And whether this is applicable to all the website providers or few select ones?
Vinod  

Answer
"Normally" control panels do not provide this option, so you are better of asking the webmaster or whoever is managing the servers to install excel runtime and assign appropriate rights. Most of the hosting companies do not allow COM object installation.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.