Solved

when  I upload I got an error in web conf file

Posted on 2007-11-22
6
322 Views
Last Modified: 2009-02-07
sir,
  In local host  the project is working fine when I uploaded the project from filezilla to my host

 I am getting error in web conf file  
Parser Error Message: The value for the property 'level' is not valid. The error is: The string must be at least 1 characters long.
Line 19:   <system.web>
Line 20:     <compilation defaultLanguage="c#" />
Line 21:     <trust level="" />
Line 22:   </system.web>

 after uploading the project
 please help me in this
Line 23: </configuration>
<system.web>

		<!-- 

            Set compilation debug="true" to insert debugging 

            symbols into the compiled page. Because this 

            affects performance, set this value to true only 

            during development.

        -->

		<httpRuntime executionTimeout="180" maxRequestLength="15192"/>

		<compilation defaultLanguage="c#" debug="true">

   <assemblies>

    <add assembly="Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

   </assemblies>

  </compilation>

		<!--

            The <authentication> section enables configuration 

            of the security authentication mode used by 

            ASP.NET to identify an incoming user. 

        -->

		<authentication mode="Windows"/>

		<customErrors mode="Off">

		</customErrors>

		<!--

            The <customErrors> section enables configuration 

            of what to do if/when an unhandled error occurs 

            during the execution of a request. Specifically, 

            it enables developers to configure html error pages 

            to be displayed in place of a error stack trace.
 

        <customErrors mode="off" defaultRedirect="GenericErrorPage.htm">

            <error statusCode="403" redirect="NoAccess.htm" />

            <error statusCode="404" redirect="FileNotFound.htm" />

        </customErrors>

        -->

		<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" lockElements=" " cookieless="false" timeout="20"/>

	</system.web>

Open in new window

0
Comment
Question by:medapati
  • 2
6 Comments
 
LVL 7

Expert Comment

by:bungHoc
ID: 20333401
The problem is caused by ConfigurationElement initializes with some crappy default values.

There's a workaround for it here:
http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=94351

Hope this helps..
0
 

Author Comment

by:medapati
ID: 20333510
Can u tell me clearly I did not get  you I am getting error in web.config  file
0
 
LVL 7

Accepted Solution

by:
bungHoc earned 250 total points
ID: 20333668
Well.. the exception was thrown because your string is totally empty and it is not valid for the validator. So.. you need to assign a valid value.
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 250 total points
ID: 22585847
when i used ur system.web in my configuration file i found that lockElements does not exist in the MSDN documentation provided as a link below

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" lockElements=" " cookieless="false" timeout="20"/>

http://msdn.microsoft.com/en-us/library/h6bb9cz9(VS.71).aspx

if its ok to add it then you should be adding some value not keeping it clear or empty because parsing and compilation will throw an error
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
which object should i use (efficiency) 5 45
Connecting database in Xamarin? 6 50
What is Thread.Sleep? 5 45
ASP.net Run 3 sliders vertically as opposed to horizontally 9 18
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now