• 9
• 9
• 11
• 13
• 9

# [.net] Parse ASP.NET page to a System.String?

This topic is 4470 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello.. I'm kinda new to .NET, but here's what I want to do.. I want to parse an ASP.NET page, and place the result in a String, using C++/CLI.. What I don't understand is what the ApplicationHost.CreateApplicationHost() does.. Is it needed? When I try to use it, I get a System.IO.FileNotFoundException on this line:
		MyAppHost ^host = (MyAppHost^)System::Web::Hosting::ApplicationHost::CreateApplicationHost(
MyAppHost::typeid,
"/",
"C:\\www");


It says it can't load my program or one of it's dependries? It's a dll.. The dll is an extension to an unmanaged application.. MyAppHost is a class defined by me, in the same .cpp file as that line.. Any ideas?