ralphtrent
Programmer
Hope someone can help as this is annoying. I have been researching for hours and all the resolutions on the web about this topic have not helped me out.
I have created a mobilized version of a page by modifying the aspx page to display the data differently. I still have a normal page for non-mobile devices. I want to share the same code behind between these two pages.
I copied the one page, renamed him to "mobile", deleted the CodeFile that gets copied and modified the CodeFile attribute in the aspx page to point to the original file's code file. Doing so allows me to build and successfully test locally. When I attempt to publish the web app, I get the following error:
I have cleared out the temp internet dir and I have restarted IIS and VS2010. What irks me is that I am building for 3.5, not 4.0 so I am not sure why its trying to place in a 4.0 temp folder. Either way, I cannot get around this error unless I delete my mobilized pages.
any idea on how to resolve this? I assume what I want to do is pretty common, one codefile to multiple interfaces.
Thanks,
RalphTrent
I have created a mobilized version of a page by modifying the aspx page to display the data differently. I still have a normal page for non-mobile devices. I want to share the same code behind between these two pages.
I copied the one page, renamed him to "mobile", deleted the CodeFile that gets copied and modified the CodeFile attribute in the aspx page to point to the original file's code file. Doing so allows me to build and successfully test locally. When I attempt to publish the web app, I get the following error:
Code:
The type 'userControls_ticketWorknotes' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\onyxsupportreports\c8b6feb4\e5c61e59\App_Web_g40poipv.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\onyxsupportreports\c8b6feb4\e5c61e59\App_Web_4ytvvi52.dll' C:\inetpub\[URL unfurl="true"]wwwroot\OnyxSupportReports\tickets\getTicketDetails_Mobile.aspx[/URL]
I have cleared out the temp internet dir and I have restarted IIS and VS2010. What irks me is that I am building for 3.5, not 4.0 so I am not sure why its trying to place in a 4.0 temp folder. Either way, I cannot get around this error unless I delete my mobilized pages.
any idea on how to resolve this? I assume what I want to do is pretty common, one codefile to multiple interfaces.
Thanks,
RalphTrent