Thursday 4 April 2013

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory

It is an error to use a section registered as   allowDefinition='MachineToApplication' beyond application level.  This error can be caused   by a virtual directory

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:\project\myproject\web.config 68


solution :-
If you are getting error like this and after  running your application you are getting error
liker <authentication mode="Forms"/> so  i have Solution just check your project or website
which you have opened . may be there will another web.config file.
where you have pasted your application or website folder open only than folder don't open
sub folder .


Example you  want to open your primenumberprogram website ,means  primenumberprogram  is
your website folder and there is web.config file , you kept your primenumberprogram   folder
in mywebsite folder and you are opening mywebsite folder instead of primenumberprogram  
folder then you will get erro like 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:\project\myproject\web.config.

so check acccurately where you have kept your website and from where you are opening that folder.
hope it will work

Monday 1 April 2013

Maximum request length exceeded. | asp.net | vb.net

Maximum request length exceeded. | asp.net | vb.net

i am designing crystal report , for single or less record its working proper ,
means it is displaying proper but at time of
displaying lacs record at a time its showing error

Maximum request length exceeded. 

so what i did , i just pasted one line code and its started working fine.
how to paste that code and where .
go into web.config file and search for <system.web>
 paste

<httpRuntime maxRequestLength="1000000" />
brfore closing system.web

<system.web>

other code ----------------
---------------------------
<httpRuntime maxRequestLength="1000000" />
</system.web>

i am sure it will work.

About maxRequestLength i think it will related something if we are posting  huge data to
server and it cause , so to avoid we provide  length='1000000'
The value must be inside the range 0-2097151.