Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys,

I am getting an JIT error while running my .net application from IIS directory..

it is showing the above given error msg..

i tried several ways to attach w3wp.exe to the pool .. but i failed..

can anybody suggest me the appropriate way to get rid of this problem...
Posted

1 solution

Is the .NET app compiled as Any CPU? If not, you'll have 32 bit vs 64 bit issues (if the app does not match the machine).
 
Share this answer
 
Comments
Harsha143 18-Nov-11 12:17pm    
Ty Nishant..

in that case what we need to do.. i mean with 32bit VS 64 bit
Harsha143 18-Nov-11 12:21pm    
Normally i am working as Any CPU mode only.. still i am getting that error
Nish Nishant 18-Nov-11 12:47pm    
Compile the app explicitly as 32 bit (or 64 bit as the case might be) to match the targe OS.
Harsha143 18-Nov-11 14:09pm    
how can we do that??
Nish Nishant 18-Nov-11 14:11pm    
VS 2010 has a drop down to set this. Can also be done from the properties dialog.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900