|
hi,
We are trying to convert our asp.net application from targeting to .net 2.0 to .net 4.0 or 4.5. For that what we have done is we changed the application pool to run under .net 4.0 and registered aspnet_regiis from VS2010 command prompt and
set the target framework property of the application in Visual Studio IDE to point to .Net 4.0.
Now the application is not building it is showing errors in xsd, xsds designer and xsds .cs file. I don't know when .Net can convert everything from 2.0 to 4.0 why it cant handle the xsd files.
Is there any ways to convert the xsd files from .net2.0 to .net4.0 automatically, without recreating the xsd files from the scratch, because it is giving the following errors. Please help in solving the problem. Thanks in advance.
Here is the error message:
Error 7 Missing partial modifier on declaration of type 'DIS.CnpWeb.XMLFiles.Model.SurveysDataTable'; another partial declaration of this type exists C:\Abdul\ZZFDPSource\ORFdpProd\XMLFiles\SurveyBalance.cs 319 22 ORFdpProd
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
The error itself doesn't say too much. But as a shot into the dark I'd say that some class has moved into another namespace than it was on .Net 2.0.
You could try to do an incremental update and update to 3.0 first, then to 3.5 and so on, if the error has to do with the framework you can either determine at which version the change affecting you has occured, or you might even see a "Blablabla was deprecated" warning if you are lucky.
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
Hi, you can try changing the web.config file from target framework node from pointing to 2.0 to 4.5 and try.
|
|
|
|
|
1. You answered to the wrong post.
2. Your answer is useless, since the OP already tried that, and THEN his code stopped compiling.
Veni, vidi, caecus | Everything summarizes to Assembly code
|
|
|
|
|
Already i have created live application for online exam but some problems my exam category is three type when i select dropdown exammode category so this related exam questions display there are three types of category..
1..MCQ
2..fill in the blanks..
3..true/false..
so please help me..
|
|
|
|
|
How can we help with this information .The Question is not clear.You mentioned some problem exist but you are not describing anything
Get the Selected value of dropdown in SelectedIndexchanged Event and display it.
To learn all there is to know. I know I'll be disappointed one day, but I've made a good start, and the eventual disappointment is likely to be brief.
-Roger Wright
|
|
|
|
|
|
Hello,
how can I calculate the percentage of the occurrences of each word in a text in c #? I would need to draw a graph using the canvasjs charts to represent the number of occurrences of data in general? Where can I find examples? Thank you.
|
|
|
|
|
Where is the problem? Define word borders? Count the total number of words? Count the occurences of a single word? Divide the occurence of a word by the total number of words and multiply with 100? ...?
|
|
|
|
|
hi..
You can use the linq to get the occurence of each word in a string like below ::
string aa = "hey how are you ? where are you going ?";
string[] a = aa.Split(' ');
var qry=from chld in a
select new { name = chld, cnt = (from r in a where r.Equals(chld) select r).Count() * (100 / a.Length) };
|
|
|
|
|
Ehm sorry for inconvenience.
Ehm i would calculate the percentage of values by field value. I will explain:
1) from db i'll select with c# all value from one field
var data = from db in contextDB.CERTIFICATES
where db.TYPEALGORITHM == "typeofalgorithm"
select db <== algorith is a field of my db
i made it for 4 differents algorithm ok?
well i want calculate number of each typeofalgorithm used and transform into percentage and put into pie javascript (I knowhow to do it) but i don't know how to do the percentage calculation and retrieve in
percentage to put into pie.
Thanks!!!
Very Much!
Sorry for my bad english!
|
|
|
|
|
I have to use share this page pluggin in all my web pages.
Can you pls tell me, how it like particular page.
|
|
|
|
|
The question is bit unclear. Can you please elaborate.
|
|
|
|
|
|
your Question is not a clear, I want clear you before post my answer if you have a some problem share more and clear information.I think not enough information understand your problem. I try help you without understand your problem. try this link http://api.jquery.com/category/ajax/[^].
|
|
|
|
|
Hello,
I am attempting to run a windows form on the web, per the CodeProject article "Using Windows Application on web". However, I am having some difficulty getting to run. I have followed the steps in the article and generate the register the assembly and clsid.
Here's a sample of the html code:
<object classid="CLSID:afc2cb95-132e-4643-b3e7-e5f335ce06c2"
="" style="WIDTH: 672px; HEIGHT:575px" height="672" width="575" <="" object="">
I have also tried including the CodeBase, but to no avail. The object will not show and no error is returned.
I have also tried adding a reference to the DLL; adding the assembly to the runtime tag in the web config file and lastly added the control to the Controls tag in web.config.
Any help is appreciated.
|
|
|
|
|
All articles have forums at the end where you can post questions which will be sent to the author.
Veni, vidi, abiit domum
|
|
|
|
|
|
Hi,
I have .Net 2.0 application I opened it in VS2012 its opening properly. I have set the target property v2.0 only and in IIS also I have set the application pool target to v2.0. But still I getting the following error when I am trying to run the application.
Please help me in resolving the error.
Server Error in '/apps/cnpweb/zzfdpsource/ORFdpProd' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +342
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52
[ConfigurationErrorsException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +351
System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +56
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +146
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1219
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +97
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231
[HttpException (0x80004005): Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8986035
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Though I am not very sure, but we had a similar problem in our project. If we choose the framewrok to 4.0 (the project was supposed to run in 3.5), we used to get these errors.
To resolve it go to your web.config file and change the 4.0.0.0 to 2.0.0.0. It worked for us!
Hope it helps
|
|
|
|
|
Hi,
Where in the Web config we have to change the version from 4.0.0.0 to 2.0.0.0, I am not seeing any where that I am setting it to 4.0.0.0.
Can you please point me the element name in the Web config I have to do it?
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Try searching in your web .config file.
Otherwise if possible please post the web .config file here.
So that I can have a look
|
|
|
|
|
This is the same problem I had two days ago and it took me way too long to figure out. If you right click the project in Visual Studio and go to Property Pages you will see the targeted framework. You have said that your's is targeted correctly however under MSBuild Options make sure that you do not have any of the checkboxes checked. It took me forever to figure out that I had one checked off and it was interfering with testing in the browser. Hope this helps.
|
|
|
|
|
hi ,
How to play MP3 music in whole background.
(I have 2 Master Pages)
continue to play from page to page. Example, when the first song is still playing and the visitor click on another page, I want that song to continue playing without reload.
and when in one page in stoped the music then stop when i go to other page.
and in i pause that it pause in other page and start when i clik play .
In Other word :
I am wondering how I make get an audio file to play 'continuously' on all pages. So if the audio file has played for 20 seconds, then when navigating on another page it will continue from where it left off. I also am trying to get the volume to decrease after navigating away from my home page
Thanks in advanced!
|
|
|
|
|
|